Skip to content

Instantly share code, notes, and snippets.

Avatar

Shawn Wilkinson super3

View GitHub Profile
@super3
super3 / default
Last active Nov 19, 2019
Node App Setup
View default
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
@super3
super3 / github_repos.sh
Last active Sep 3, 2020
Github Archive
View github_repos.sh
#!/bin/bash
function users_from_file() {
# TODO: check rate limit
limit=$(curl -s "https://api.github.com/rate_limit" | jq -c '.rate.limit');
remaining=$(curl -s "https://api.github.com/rate_limit" | jq -c '.rate.remaining');
reset_time=$(curl -s "https://api.github.com/rate_limit" | jq -c '.rate.reset');
now=$(date +%s);
jq -r '.actor_login' $1 | while read user; do
echo "Github API Requests: ${remaining}/${limit}";
View gist:220c11c1c10c05ce53a75d0883328d08
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://cdimage.ubuntu.com
for dir in $(find /mnt/volume_nyc3_02/cdimage.ubuntu.com -type d); do
rm $dir/index.html?*
done
@super3
super3 / .tmux.conf
Last active Oct 4, 2019
Linux Default
View .tmux.conf
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
View .tmux.conf
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
@super3
super3 / readme.md
Last active Jul 21, 2020 — forked from jimmywarting/readme.md
Cors Proxies
View readme.md
Server SSL Metods Server country code Comments
[YaCDN][1] GET EU Unlimited size and unlimited requests (for now)
[crossorigin.me][2] GET US Require Origin header
2MB size limit
[cors-proxy.htmldriven][3] - CZ JSON response
don't work well with binary
[cors-proxy.taskcluster][4] POST US Only witelisted to taskcluster.net
Can send any header/method
[thingproxy][9] ANY US Limited to 100kb for both upload and download, max 10 req/sec
[whateverorigin][10] GET US Only supports JSONP
[cors.io][11] GET, HEAD US Only supports GET and HEAD request
[gobetween][12] GET US Only supports GET requests
@super3
super3 / benchmark.txt
Created Dec 4, 2018
Mixtape.Moe Tests
View benchmark.txt
super3@Book2:~/transfer.sh$ wget https://my.mixtape.moe/hwxzlz.mp4
Will not apply HSTS. The HSTS database must be a regular and non-world-writable file.
ERROR: could not open HSTS store at '/home/super3/.wget-hsts'. HSTS will be disabled.
--2018-12-04 12:14:22-- https://my.mixtape.moe/hwxzlz.mp4
Resolving my.mixtape.moe (my.mixtape.moe)... 206.81.100.99
Connecting to my.mixtape.moe (my.mixtape.moe)|206.81.100.99|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21563437 (21M) [video/mp4]
Saving to: ‘hwxzlz.mp4’
@super3
super3 / bench.sh
Last active Nov 19, 2018
Raiden Benchmark Scripts
View bench.sh
#!/bin/bash
echo "Start: `date +%m-%d-%Y\ %H:%M:%S\ %Z`.\n"
for i in `seq 1 $1`;
do
echo "\n\n$i/$1\n==========";
curl -i -X POST http://localhost:5001/api/1/payments/0x396764f15ed1467883A9a5B7D42AcFb788CD1826/0xBbE54C702A529DF85f2D412F8FC4012Ca0684ba3 -H 'Content-Type: application/json' --data-raw '{"amount": 1}'
done
echo "\nEnd: `date +%m-%d-%Y\ %H:%M:%S\ %Z`."
View README
Use: https://medium.com/@dave_lunny/sane-github-labels-c5d2e6004b63
Source: https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues