Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDN8ieSxiwT5yHg/Cu9I9ELeF7fYGauHbBhZBsrFSaHqIZTKQtxrNacg712xMnYBgZcAjPHeE0fuWtIgchhSeBOkhEXYnHMzsgHs/Uben9ylkszEUtEDEfqcxmvOzIbXlb+GFp7OTbY/KQljLfejSQO386v9rADgtkdUZw7O/9hk14zC+Zyzo1vlb71KMzWxixgf90cQp0zeft1sbH2s+AAaXIEp4c20g8mPrWGKMcBoTkWDYkxIiKBCCaylQh8KrES1PhbKgWciXHTMpIaFfsf1e+sNPdDHCAYk8ozgB204rArnXASY6sKRYAXII0v78cq9rZV1SnKApv7uDpfnIL7 |
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
# frozen_string_literal: true | |
require 'nokogiri' | |
require 'rest-client' | |
require 'json' | |
require 'securerandom' | |
require 'byebug' | |
PRESERVING_TAGS = ['code', 'pre'] | |
SOGOU_TRANSLATE_PRIVATE_API = 'http://XXXXXX' |
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
/***************** | |
* cellBlockA.js * | |
***************** | |
* | |
* Good morning, Dr. Eval. | |
* | |
* It wasn't easy, but I've managed to get your computer down | |
* to you. This system might be unfamiliar, but the underlying | |
* code is still JavaScript. Just like we predicted. | |
* |
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
scptmux() { | |
[ -z "$1" ] && { echo "Usage: $0 <host>"; return } | |
rsync -arv \ | |
--exclude='.tmux/resurrect' \ | |
~/.tmux.conf ~/.tmux "$1:~" | |
} | |
complete -A hostname scptmux | |
tssh() { | |
ssh -v -o "RequestTTY=force" "$@" \ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
if [ "$#" != 1 -a "$#" != 2 ]; then | |
echo Usage: | |
echo 🔒: $0 "<file>" | |
echo 🔓: $0 "<file>" "<password>" | |
fi | |
if [ "$#" = 1 ]; then | |
file="$1" |
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
cat > root.c << EOF | |
int getuid(){ return 0;} | |
int geteuid(){return 0;} | |
int getgid(){return 0;} | |
int setuid(int n){return 0;} | |
int seteuid(){return 0;} | |
int setegid(int n){return 0;} | |
EOF | |
gcc -o ./root.so -shared root.c |
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 | |
echo Installing packages | |
apt-key adv --keyserver hkp://pgp.mit.edu:80 \ | |
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
codename=$(sh -c 'eval `cat /etc/lsb-release` && echo $DISTRIB_CODENAME') | |
echo deb https://apt.dockerproject.org/repo ubuntu-$codename main \ | |
>> /etc/apt/sources.list.d/docker.list | |
apt-get update |
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 | |
# | |
# This script belongs to shouya/poi project | |
# \bash <(wget -O - https://gist.githubusercontent.com/shouya/19c963b55d2ae0a516a8/raw/poi.sh) | |
# | |
set -e | |
EXTRA_APPS=( |