Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Kros Dai xdanger

🎯
Focusing
View GitHub Profile
View docker-pull-all-images.sh
docker images | awk '(NR>1) && ($2!~/none/) {print $1":"$2}' | xargs -L1 docker pull
@xdanger
xdanger / inject.javascript.js
Last active Oct 6, 2018 — forked from girlcheese/inject.javascript.js
Inject jQuery into a page
View inject.javascript.js
%%javascript
function injectJavaScript(url) {
var tag = document.createElement('script');
tag.src = url;
tag.type = 'text/javascript';
tag.async = 'true';
var hookTag = document.getElementsByTagName('script')[0];
hookTag.parentNode.insertBefore(tag, hookTag);
}
@xdanger
xdanger / obsshd-client.sh
Created Feb 10, 2014
obfuscated-openssh deployment scripts
View obsshd-client.sh
#!/bin/bash
# run as root
if [ $(id -u) != "0" ]; then
printf "Error: You must be root to run this tool!\n"
exit 1
fi
clear
printf "
View 鸡汤浓度.js
javascript:var%20r%20=/%20/;r.compile("爱|微笑|十年以后|慈祥|最后他终于成为一名伟大的|在惊讶之余|感恩|泪水|安静|午后的房间|一位修女|殷切的目光|轻轻地转过头去|愧疚|充满泪水|幸福|圣洁的光芒|永留|深信|鼓起勇气|平凡|哭了|挚爱|力量|永远不会忘记|尊敬|不灭|爱因斯坦小时候|十分罕见|颤抖的声音|榜样|瞬间我的眼睛模糊了|鼓舞|沉默了片刻|爸爸我爱你|温馨|阅读|哲学|彻底改变|从此像变了一个人|路边的一位老者|获得了满分|赞美|谢谢|真的很|千万不能|眼睛顿时发亮|纯洁|天真|握着他的手|强忍悲伤|微笑地咽下最后一口气|轻声地说|坚决地说|乞求|悄悄地|有一天黄昏|困惑|很大的伤害|嘲笑|平静|震撼了世界|似乎不可逾越的障碍|做回你自己|感动|灵魂深处|即使是世上所有的财富|互相包容|上帝|最柔软的地方|难忘|十分糟糕|我很高兴你能这么想|美妙的礼物|离婚的边缘|丰富的情感|特蕾莎嬷嬷|毕竟她只是个孩子|惊喜地发现|善解人意地说|有点害羞地说|这首诗|竟敢|胸口的重量|抱紧|一封来自战壕的信|毫不吝啬的赞美|时间仿佛停止了|这一刻如此珍贵|作为世界知名的指挥家|两天后父亲去世了|暖和的外套|勇气|崇拜的目光|小声地说|世上最大的秘密|年轻的心|眼角流露出喜悦|有趣的是|非常特别的女人|生命尽头|白头偕老|当你|手术后的存活率只有|捐款|一位智者曾经说过|小时候家里的经济很紧张|亲爱的|闭上双眼|饿晕在大街上|耸了耸肩|我暗自发誓|老船长那刻满皱纹的脸|鼓励的目光|可望而不可及的梦想|苍白的面孔|营养不良的孩子|有些不妙|大家沉默了|心与心的交流|失望的神情|紧紧地拥抱|心底的承诺|轻抚|那还是祖父刚到俄亥俄州的时候|会意地笑了|哦那太可怕了|老祖母的苹果派|无力地|机智地|惊人的|温暖了我的心|不禁惊呆了|亲爱的妈妈|整整一年过去了|无穷的力量|仁波切|一直与我们同在|吃惊地说|残酷|来到这个世界|像一把熊熊燃烧的火炬|街区|终于获得了诺贝尔奖|他的心一沉|欣喜若狂|夺眶而出的泪水|空空如也的双手|啧啧称奇|一段不为人知的历史|其实我们都是|墓志铭|十六世纪著名的|语气坚定地说|我愣住了|最杰出的|加倍努力|不起眼的流浪汉|不幸的人|最特别的平安夜|后来|没有人在乎|表现优异|爹地|妈咪|那三个神奇的字|悄悄放在她的枕头下|看着他的眼睛说|细心地|强忍住眼
@xdanger
xdanger / Safari.css
Created Jul 24, 2012
Safari 6.0 默认字体样式表
View Safari.css
@font-face {
font-family: sans-serif;
src: local("Droid Sans");
}
@font-face {
font-family: serif;
src: local("Droid Serif");
}
View rsa.xdanger.pub
ssh-dss AAAAB3NzaC1kc3MAAACBAJH5r5M2smissLb4cFFJK5qH9JHzAEnEqd3+ONN0YNEpcof1tgL8xIijlLQ9Ss9xsIxEbJe+LQbGU9FvPHUsnCXjFPG5kxCxSDKX4BQsue3GO61MLxEHjqRKf5VQ7sUGRvezn0VFj1oaCWYncHTEnjFgej5ULEm38NFZ0WSgb9FHAAAAFQDeQBXnVx0dFbvs5aNm8wutqTORrwAAAIBuJUA8rwQ88iudWIAnmpAZ+CMQJ89G+HDCsfzLdXZzPG48klJqySafEkFZ2zTDg0I3+tan4vRjtev3ZKRCAAlxGpCa43NDdu7BSiuiTkob0Q9bW7UcDBw1vKbi3nRbr3a4SLZQ/kFNXyvgK/vgr7k2UFOEpmezcFmWysG2p9x7fQAAAIB7duef61Ho/8x97ctNAPtjmTp+GJ6r1UvFnC/pGH0A2FNLMz2ocky3mkuNYhsfjyBKUW3mLw+1tjVRL4dQn4wtc5x15wg9S5JOc5QgjhW+eArrfudsD7NiUz9Swo0+jKyR/6D+QiyVCKEFDy/jSuPsAywH6ah5YbodLva4JLoqfA== xdanger@gmail.com
@xdanger
xdanger / flush-dns-cache.sh
Created May 14, 2010
Mac flush dns cache
View flush-dns-cache.sh
# for snow leopard
sudo dscacheutil -flushcache
# for tiger
lookupd -flushcache
View fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
View package.keywords
www-servers/nginx ~amd64
app-admin/apache-tools ~amd64
www-servers/spawn-fcgi ~amd64
dev-lang/php ~amd64
dev-php/PEAR ~amd64
net-analyzer/cacti ~amd64
net-analyzer/cacti-spine ~amd64
net-misc/memcached ~amd64
dev-php5/eaccelerator ~amd64
dev-db/phpmyadmin ~amd64
We couldn’t find that file to show.
You can’t perform that action at this time.