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
| #!/bin/bash | |
| set -x | |
| # common shortcuts | |
| git config --global alias.co checkout | |
| git config --global alias.ci commit | |
| git config --global alias.st status | |
| git config --global alias.br branch | |
| git config --global alias.rb rebase |
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
| # apt-get install -f docker-engine | |
| Reading package lists... Done | |
| Building dependency tree | |
| Reading state information... Done | |
| Some packages could not be installed. This may mean that you have | |
| requested an impossible situation or if you are using the unstable | |
| distribution that some required packages have not yet been created | |
| or been moved out of Incoming. | |
| The following information may help to resolve the situation: |
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
| [Unit] | |
| Description=Beanstalkd is a simple, fast work queue | |
| [Service] | |
| User=nobody | |
| Restart=always | |
| RestartSec=500ms | |
| ExecStart=/usr/local/bin/beanstalkd -b /var/lib/beanstalkd | |
| LimitNOFILE=10240 |
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
| curl -sSL http://public-dns.info/nameserver/cn.txt | perl -MList::Util=shuffle -e 'print shuffle<STDIN>' | head -n10 | xargs -L1 -I{} echo "server={}" |
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
| #!/bin/sh | |
| # Usage: | |
| # wget -O- https://gist.githubusercontent.com/ifduyue/dea03b4e139c5758ca114770027cf65c/raw/install-proxychains-ng.sh | sudo bash -s | |
| set -eu | |
| version=4.14 | |
| wget https://github.com/rofl0r/proxychains-ng/archive/v$version.tar.gz | |
| tar xf v$version.tar.gz |
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
| from __future__ import print_function | |
| import threading | |
| import xxhash | |
| import os | |
| import time | |
| from itertools import repeat | |
| def work(which, input, cycle): | |
| x = getattr(xxhash, which)(input) | |
| for i in repeat(None, cycle): |
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
| "苦" 34:33510:34 | |
| "è¦" 34:232:139:166:34 | |
| Wide character in say at -e line 1. | |
| "苦" 34:33510:34 | |
| "苦" 34:232:139:166:34 | |
| "苦" 34:232:139:166:34 | |
| "è¦" 34:195:168:194:139:194:166:34 | |
| "è¦" 34:232:139:166:34 | |
| "è¦" 34:195:168:194:139:194:166:34 |
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/env perl | |
| use strict; | |
| use warnings; | |
| use Getopt::Long 2.24, qw( :config bundling no_ignore_case no_auto_abbrev ); | |
| my ( $N, $EXT, @EXT, @USE, $DECODE, $ENCODE ); | |
| sub compile { eval shift } # defined early to control the lexical environment | |
| my $msglevel = 0; |
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
| #!/bin/bash | |
| awk '!/^($|#)/' no-proxy.txt | tee no-proxy-generated.txt |
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
| t timeline $(t whoami | perl -ne 'print $1 if /^Screen name\s+@(.+)/') --csv --number | |
| 99999 | perl -lne 'print $1 if /^(\d+),/' | xargs -L99 t delete status -f | |
| t timeline @yourid --csv --number 99999 | egrep -o '^[0-9]+' | xargs -L99 t delete status -f |