git checkout <commit or branch> -- .
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
stdout = lambda x: sys.stdout.write(x + '\n') | |
stderr = lambda x: sys.stderr.write(x + '\n') | |
def sanitize_output(output): | |
output = re.sub( | |
r"[\"']?password[\"']?: ['\"a-z0-9A-Z]+", "'password': '###'", output | |
) | |
output = re.sub( |
https://gist.github.com/allen-munsch/63c2071103cbb04cbd82d10a47baf67e
nano /etc/ssh/sshd_config
sudo yum install update
sudo yum groupinstall -y "Development Tools"
sudo yum install -y python-devel libpng-devel freetype-devel gcc72-c++
If you want to use docker, you can use the following command:
docker run -it lambci/lambda:build-python3.7 bash
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
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 |
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
[io/elementary/appcenter/settings] | |
window-x=410 | |
reset-paid-apps=false | |
paid-apps=@as [] | |
window-y=185 | |
[org/gnome/settings-daemon/plugins/color] | |
night-light-schedule-automatic=false | |
night-light-schedule-to=3.0 | |
night-light-schedule-from=5.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 | |
function search_indexes() { | |
declare -a indexes=(/CC-MAIN-2018-39-index /CC-MAIN-2018-34-index /CC-MAIN-2018-30-index /CC-MAIN-2018-26-index /CC-MAIN-2018-22-index /CC-MAIN-2018-17-index /CC-MAIN-2018-13-index /CC-MAIN-2018-09-index /CC-MAIN-2018-05-index /CC-MAIN-2017-51-index /CC-MAIN-2017-47-index /CC-MAIN-2017-43-index /CC-MAIN-2017-39-index /CC-MAIN-2017-34-index /CC-MAIN-2017-30-index /CC-MAIN-2017-26-index /CC-MAIN-2017-22-index /CC-MAIN-2017-17-index /CC-MAIN-2017-13-index /CC-MAIN-2017-09-index /CC-MAIN-2017-04-index /CC-MAIN-2016-50-index /CC-MAIN-2016-44-index /CC-MAIN-2016-40-index /CC-MAIN-2016-36-index /CC-MAIN-2016-30-index /CC-MAIN-2016-26-index /CC-MAIN-2016-22-index /CC-MAIN-2016-18-index /CC-MAIN-2016-07-index /CC-MAIN-2015-48-index /CC-MAIN-2015-40-index /CC-MAIN-2015-35-index /CC-MAIN-2015-32-index /CC-MAIN-2015-27-index /CC-MAIN-2015-22-index /CC-MAIN-2015-18-index /CC-MAIN-2015-14-index /CC-MAIN-2015-11-index /CC-MAIN-2015-06-index /CC-MAIN-2014-52-index /CC-MAIN-2014-49 |
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
import sys;import requests;from requests import Request as R;sys.stderr.write(requests.Session().send(type("A", (R,), {"__init__": R.__init__})("GET", "http://reddit.com/").prepare()).content) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>homebrew.mxcl.dnsmasq</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/opt/dnsmasq/sbin/dnsmasq</string> | |
<string>--keep-in-foreground</string> |
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 | |
# usage: chmod +x ./foxinsock.sh && ./foxinsock.sh 123.456.789.012 | |
export PROXY=$1 | |
# assumes 1 default profile "*.default" | |
if [[ "$OSTYPE" == "darwin"* ]]; then | |
export FFPROFILE=/Users/$USER/Library/Application\ Support/Firefox/Profiles/*.default/ | |
else | |
export FFPROFILE=$HOME/.mozilla/firefox/profiles/*.default |