docker pull gcr.io/google_containers/kube-apiserver-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-controller-manager-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-proxy-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-scheduler-amd64:v1.5.0
docker pull weaveworks/weave-npc:1.8.2
docker pull weaveworks/weave-kube:1.8.2
This file contains 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
# Swift syntax highlighting for Vim | |
# Original Source: http://wingsquare.com/blog/swift-script-syntax-highlighting-and-indentation-for-vim-text-editor/ | |
# Another helpful article: https://billyto.github.io/blog/swift-syntax-vim | |
# More about Vim packages: http://vimcasts.org/episodes/packages/ | |
echo "--- creating ~/.vim/pack/bundle/start dir.." | |
mkdir -p ~/.vim/pack/bundle/start | |
echo "--- Cloning Apple's Swift repo.." |
This file contains 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
@echo off | |
:::::::::::::::::::::::::::: | |
set "params=Problem_with_elevating_UAC_for_Administrator_Privileges"&if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" | |
fsutil dirty query %systemdrive% >nul 2>&1 && goto :GotPrivileges | |
:: The following test is to avoid infinite looping if elevating UAC for Administrator Privileges failed | |
If "%1"=="%params%" (echo Elevating UAC for Administrator Privileges failed&echo Right click on the script and select 'Run as administrator'&echo Press any key to exit...&pause>nul 2>&1&exit) | |
cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%params%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs"&exit | |
:GotPrivileges | |
:::::::::::::::::::::::::::: | |
color 1F |
This file contains 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
interface "eth1" { | |
# 发送终端名,这个抓盒子发的包直接送出去就好了,是个32字节的字符串 | |
send host-name "00109199************************"; | |
# 发送机顶盒的MAC地址,我的华为的盒子是54:93:59开头的 | |
send dhcp-client-identifier "\054:93:59:**:**:**"; | |
# 电信用了Option60验证终端是否为盒子,按照抓包出来的字符串原样发送 | |
send vendor-class-identifier "SCITV"; | |
request subnet-mask, rfc3442-classless-static-routes, static-routes, | |
routers, domain-name-servers, host-name, domain-name, | |
interface-mtu, broadcast-address, ntp-servers, |
This file contains 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
#EXTM3U name="四川电信IPTV" | |
#EXTINF:-1,CCTV-1高清 | |
http://192.168.2.2/rtp/239.93.0.184:5140 | |
#EXTINF:-1,CCTV-2高清 | |
http://192.168.2.2/rtp/239.93.1.23:6000 | |
#EXTINF:-1,CCTV-3高清 | |
http://192.168.2.2/rtp/239.93.1.11:2223 | |
#EXTINF:-1,CCTV-5高清 | |
http://192.168.2.2/rtp/239.93.1.12:2224 | |
#EXTINF:-1,CCTV-6高清 |
This file contains 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
#!/bin/bash | |
# Reset VMware Fusion Networking | |
# Clear out the Configuration | |
sudo rm -f /Library/Preferences/VMware\ Fusion/networking* | |
sudo rm -f /Library/Preferences/VMware\ Fusion/*location* | |
sudo rm -rf /Library/Preferences/VMware\ Fusion/vmnet* | |
sudo rm -rf /var/db/vmware/vmnet-dhcpd-vmnet* | |
# Reconfigure Networking |
A simple script that resets latest MAMP PRO 4 trial validity, and keeps your data safe.
- Copy the code into a file OR download the script and save it as reset_mamp4.sh
- Open the Terminal app and write
chmod +x
then drag and drop the file on the Terminal. You should have something likechmod +x reset_mamp4.sh
. Press Enter to run it. - Now, run the file itself by dragging and dropping it on the Terminal (something like
reset_mamp4.sh
) then pressing Enter. - Open MAMP PRO and check if you have 14 days left now.
This file contains 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
" ------------------------------ | |
" Name: vimrc for windows | |
" Author: keelii | |
" Email: [email protected] | |
" ------------------------------ | |
" Startup {{{ | |
filetype indent plugin on | |
augroup vimrcEx |
Note: these instructions are for pre-Sierra MacOS. Sierra (10.12) and newer users see https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d by @gravitylow
If you are getting this in gdb on OSX while trying to run a program:
NewerOlder