Skip to content

Instantly share code, notes, and snippets.

🔋
Charging

Abreto FU Abreto

🔋
Charging
Block or report user

Report or block Abreto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Abreto
Abreto / environment
Last active Jun 27, 2019
Use proxy of host-machine
View environment
# /etc/environment
ALL_PROXY="socks://192.168.98.1:6153"
HTTP_PROXY="http://192.168.98.1:6152"
HTTPS_PROXY="http://192.168.98.1:6152"
NO_PROXY="localhost,127.0.0.0/8,::1,.local,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,100.64.0.0/10"
@Abreto
Abreto / Caddyfile
Last active Jun 11, 2019
HTTP/2 Https Proxy
View Caddyfile
[Host] {
# push (?)
gzip
log / stdout "{combined} | {scheme}://{host} {>Connection} {>Upgrade}"
proxy / [to]
forwardproxy {
basicauth [user] [password]
hide_ip
hide_via
probe_resistance [secretlink.tld]
View convert-cpbitmap.js
/**
* $ npm i jimp
*
* Copied from https://stackoverflow.com/a/48158807
*/
const fs = require('fs')
const util = require('util')
const Jimp = require('jimp')
View ubuntu-get-docker-ce.sh
#!/usr/bin/env bash
# !!! This script requires root privileges !!!
#
# Usage:
# # ./ubuntu-get-docker-ce.sh
# or
# $ sudo ./ubuntu-get-docker-ce.sh
if [ ! $(id -u) -eq 0 ]; then
@Abreto
Abreto / certbot-wildcard.sh
Created Mar 26, 2019
for wildcard domains
View certbot-wildcard.sh
certbot certonly --manual --preferred-challenges=dns-01 --server=https://acme-v02.api.letsencrypt.org/directory
@Abreto
Abreto / Dockerfile
Last active Mar 25, 2019
Dockerfile entrypoint example for flexible cli arguments
View Dockerfile
ENTRYPOINT [ "/entrypoint.sh" ]
@Abreto
Abreto / play.js
Created Jan 25, 2019
game-cheating
View play.js
// cheater for http://www.cuishuai.cc/game/
// use it in console of Chrome DevTools
function play() {
const box = document.getElementById('box')
const girds = box.children
const num = box.childElementCount
@Abreto
Abreto / checkproxy.sh
Created Dec 5, 2018
ssh proxy scripts
View checkproxy.sh
#!/usr/bin/env bash
ps aux | grep "[0-9] ssh -qTfNn -D 7070"
@Abreto
Abreto / pull-all.sh
Created Jul 9, 2018
pull all remote branches to local
View pull-all.sh
#!/usr/bin/env bash
cd $1
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
You can’t perform that action at this time.