git checkout master
git pull --no-edit origin $(git rev-parse --abbrev-ref HEAD) --rebase --ff-only
git checkout -b new-feature
git commit ...
...
# sync history | |
history -a | |
history -w | |
# when leaving the console clear the screen to increase privacy | |
if [ "$SHLVL" = 1 ]; then | |
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q | |
fi |
nssm install Jenkins "%COMMONPROGRAMFILES(x86)%\Oracle\Java\javapath\java.exe" | |
nssm set Jenkins AppParameters -jar agent.jar -jnlpUrl https://<jenksins-server-url>/computer/<jenkins-worker-node>/slave-agent.jnlp -secret <worker-secret> -workDir "C:\jenkins\" | |
nssm set Jenkins AppDirectory C:\Jenkins | |
nssm set Jenkins AppStdout C:\Jenkins\jenkins.log | |
nssm set Jenkins AppStderr C:\Jenkins\jenkins.log | |
nssm set Jenkins AppStopMethodSkip 6 | |
nssm set Jenkins AppStopMethodConsole 1000 | |
nssm set Jenkins AppThrottle 5000 | |
nssm start Jenkins |
# Update this automation document: | |
# aws ssm update-document \ | |
# --name "StartStopInstances" \ | |
# --document-format YAML \ | |
# --content "file://./StartStopInstances-Automation.yml" \ | |
# --document-version '$LATEST' | |
# Execute this automation using IAM Service Role (https://gist.github.com/atheiman/021f1852997d0c42cd581d86aafc672f): | |
# aws ssm start-automation-execution \ | |
# --region us-gov-west-1 \ |
#!/bin/sh | |
ACTION=${1} | |
DEBUG=1 | |
func_res() { | |
[[ ${DEBUG:-0} -ge 1 ]] && set 2>&1 | logger -t vpnc-script | |
# how to get cidrs: http://kyxap.org.ua/articles/google_ip_range | |
CIDRS="$(cat /opt/home/admin/cidrs/*.txt)" | |
EXCLUDE="$(cat /opt/home/admin/cidrs/exclude/*.txt)" |
kind: StorageClass | |
apiVersion: storage.k8s.io/v1 | |
metadata: | |
name: st1 | |
annotations: | |
storageclass.kubernetes.io/is-default-class: "false" | |
provisioner: kubernetes.io/aws-ebs | |
parameters: | |
type: st1 | |
fsType: ext4 |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<dict> | |
<key>SuccessfulExit</key> | |
<true/> | |
</dict> |
youtube.com##.ytp–ce–element | |
youtube.com##.ytp–ce–covering–overlay | |
youtube.com##.ytp–ce–element–shadow | |
youtube.com##.ytp–ce–covering–image | |
youtube.com##.ytp–ce–expanding–image | |
youtube.com##.ytp–ce–element.ytp–ce–channel.ytp–ce–channel–this.ytp–ce–element–show.ytp–ce–bottom–right–quad.ytp–ce–size–640 | |
youtube.com##.ytp–ce–element.ytp–ce–video.ytp–ce–element–show | |
youtube.com##.ytp–expand | |
youtube.com##.ytp–pause–overlay | |
youtube.com###watch7-sidebar-contents |
git checkout master
git pull --no-edit origin $(git rev-parse --abbrev-ref HEAD) --rebase --ff-only
git checkout -b new-feature
git commit ...
...
#!/bin/sh | |
### Custom user script | |
### Called after internal VPN client connected/disconnected to remote VPN server | |
### $1 - action (up/down) | |
### $IFNAME - tunnel interface name (e.g. ppp5 or tun0) | |
### $IPLOCAL - tunnel local IP address | |
### $IPREMOTE - tunnel remote IP address | |
### $DNS1 - peer DNS1 | |
### $DNS2 - peer DNS2 |
rm -rf /var/lib/cloud/instance && rm -rf /var/lib/cloud/instances/* && rm -rf /var/lib/cloud/sem/* | |
cloud-init init && cloud-init modules --mode config && cloud-init modules --mode final |