This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uplink | |
set interfaces ge-0/0/0 unit 0 family ethernet-switching |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript | |
(* Set Volume to 100 *) | |
set volume 100 | |
tell application "System Preferences" | |
activate | |
set current pane to pane "com.apple.preference.sound" | |
reveal (first anchor of current pane whose name is "output") | |
end tell | |
tell application "System Events" | |
launch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/node | |
// use puppeteer 0.12.0 | |
// since puppeteer has problems in socks5 | |
// use polipo as a http proxy, which parent proxy is tor (localhost:9050) | |
var time = require('time'); | |
var sleep = require('sleep'); | |
const random_max = 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get namespace annoying-namespace-to-delete -o json > tmp.json | |
# Edit tmp.json, and remove contents in finalizers with empty array [] | |
curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json https://kubernetes-cluster-ip/api/v1/namespaces/annoying-namespace-to-delete/finalize |
- Write Raspbian image to SD card
- Enable SSH access by Putting 'ssh' to boot directory
touch /Volumes/boot/ssh
- Configure network by using
- Wire (with DHCP support)
- WiFi (/Volumes/boot/wpa_supplicant.conf), and sample
country=TW
-
Install Oracle Linux in VirtualBox
-
Before shutdown, be aware to do these things
- Edit /etc/default/grub
- Remove splash & quiet & rhgb
- Add console=ttyS0,38400n8d
- Update grub
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
- Edit /etc/default/grub