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 | |
sudo stop shill | |
sudo start shill BLACKLISTED_DEVICES=tun0 | |
openvpn $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
#!/usr/bin/env sh | |
_install() { | |
curl -O https://prerelease.keybase.io/keybase_amd64.deb ~/Downloads/keybase_amd64.deb | |
sudo enter-chroot -n xenial sudo -S sh -c "sudo dpkg -i ~/Downloads/keybase_amd64.deb && sudo apt-get install -f" | |
} | |
_install |
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
#!/usr/bin/env sh | |
if test -t 1; then | |
exec 1>/dev/null | |
fi; | |
if test -t 2; then | |
exec 2>/dev/null | |
fi; |
This file has been truncated, but you can view the full file.
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
#!/usr/bin/env python | |
# | |
# Hi There! | |
# You may be wondering what this giant blob of binary data here is, you might | |
# even be worried that we're up to something nefarious (good for you for being | |
# paranoid!). This is a base85 encoding of a zip file, this zip file contains | |
# an entire copy of pip. | |
# | |
# Pip is a thing that installs packages, pip itself is a package that someone | |
# might want to install, especially if they're looking to run this get-pip.py |
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
# IP Spoofing protection | |
net.ipv4.conf.all.rp_filter = 1 | |
net.ipv4.conf.default.rp_filter = 1 | |
# Ignore ICMP broadcast requests | |
net.ipv4.icmp_echo_ignore_broadcasts = 1 | |
# Disable source packet routing | |
net.ipv4.conf.all.accept_source_route = 0 | |
net.ipv6.conf.all.accept_source_route = 0 |
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
[[ -z $OS ]] && export OS=$(uname -a | awk '{print $(NF)}') | |
export ZSH=/data/data/com.termux/files/home/.oh-my-zsh | |
ZSH_THEME="robbyrussell" | |
plugins=(git ssh-agent) | |
source $ZSH/oh-my-zsh.sh |
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
typeset _agent_forwarding _ssh_env_cache | |
function _clear_agent() { | |
rx="^ssh-" | |
tmp="/data/data/com.termux/files/usr/tmp" | |
_ssh_env_cache="$HOME/.ssh/environment-$SHORT_HOST" | |
. $_ssh_env_cache > /dev/null | |
SSH_CHECK_AGENT_PID=$(ps x | grep ssh-agent | grep -v "grep " | awk '{print $1}') | |
if [[ -z $SSH_CHECK_AGENT_PID || $SSH_CHECK_AGENT_PID != $SSH_AGENT_PID ]]; then | |
if [[ -e $_ssh_env_cache ]]; then |
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
pkg install python python-dev libjpeg-turbo-dev libcrypt-dev ndk-sysroot clang | |
LDFLAGS="-L/system/lib/" CFLAGS="-I/data/data/com.termux/files/usr/include/" pip install wheel pillow | |
pip install rainbowstream |
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
main() { | |
# Use colors, but only if connected to a terminal, and that terminal | |
# supports them. | |
if which tput >/dev/null 2>&1; then | |
ncolors=$(tput colors) | |
fi | |
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then | |
RED="$(tput setaf 1)" | |
GREEN="$(tput setaf 2)" | |
YELLOW="$(tput setaf 3)" |
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
[Unit] | |
Description="Chrome Remote Desktop host daemon" | |
[Service] | |
ExecStart=/usr/bin/crd --start | |
ExecStop=/usr/bin/crd --stop | |
ExecReload=/usr/bin/crd --reload | |
Restart=always | |
TimeoutStopSec=10 |