Skip to content

Instantly share code, notes, and snippets.

@clyang
clyang / gist:9e2e04299d51cc11e29a010e2c430480
Created August 11, 2017 05:52
Edgerouter解決PPPoE重新連線後, IPv6無法使用的問題
(本操作需要有基本使用vi的能力)
1. ssh登入Edgerouter後, sudo vi /etc/ppp/ip-down.d/remove_invalidv6.sh 貼上下列內容
#!/bin/sh
/sbin/ifconfig switch0 | grep -ivE 'fe80' | grep 'inet6' | awk '{print $3}' | while read -r ipv6addr ; do
echo "Removing $ipv6addr from switch0" >> /tmp/ipv6_remove.log
/sbin/ip -6 addr del $ipv6addr dev switch0
done
/etc/init.d/radvd restart
@datagrok
datagrok / README.md
Last active August 16, 2024 10:32
What happens when you cancel a Jenkins job

When you cancel a Jenkins job

Unfinished draft; do not use until this notice is removed.

We were seeing some unexpected behavior in the processes that Jenkins launches when the Jenkins user clicks "cancel" on their job. Unexpected behaviors like:

  • apparently stale lockfiles and pidfiles
  • overlapping processes
  • jobs apparently ending without performing cleanup tasks
  • jobs continuing to run after being reported "aborted"