Skip to content

Instantly share code, notes, and snippets.

▒████▓▓▓▓▓▓▓▓▓▓▓▓▓▓█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▓▓▒▒▓▓▓▓▓▓▒▒▒▒▒▒▒▓▓▒▒▒▒▓▓▓▒▒▓▓▓▒▒▒▒▒▒▒▒▒▓▒▒▒▒▓▒▒▓▒▒▒▒▓▒▒▒▒░▒░▓▒▒▒▒░▒▒▒▒▒▒▒▒▒▒▒▒
▒▒████▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒▓▓▒▒▓█▓▓▓▒▒▒▒▒▓▒▒▓▓▒▒▓▒▓▓▓▓▒▓▓▓▒▒▒▒▓▒▒▒▒▒▓▒▒▒▒▓▒▒▓▒▒▒▒▓▒▒▒▒▒▒░▒▒▒▒▒░░▓▒▒▒▒▒▒▒▒▒▒
▒▒▒████▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒█▓▓▓▒▒▓▒▒▒▒▒▓▒▒▒▒▒▓▓▓▓▓▓▓▓▓▒▒▒▓▒▒▒▒▒▓▒▒▒▒▓▒▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▓████▓▓▓▓▓▓▒▓▒▒▒▒▓▒▒▒▒▒▒▒▒▒▒▓▒▒▓▒▓▓▒▒▒▒▓▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▒▒▒▓▓▓▒▓▓▓▓▒▒▒▓▒▒▒▒▓▒▒▒▒▒▒▒▒▓▓▒▒▒▒▒▒▓▒▒▒▒▒▓▓░░░░▒░▓▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒███▓▓▓▓▓▓▓▒▒▒▒▓▓▒▒▓▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒░▓▒▒▒▒▒▒░░▓▓▒▒▒▓▒▒▓▒▓▓▓▒▓▓▓▒▒▒▓▒▒▒▒▓▒▒▒▒▒▓▒▒▓▓▒▒▒▒▓▒▒▓▒▒▒▒▒▓▓▒▒░░░▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒░░░▓▒▓▓▓▓▓▒▒▒▒▓▓▒▒▓▒▒▒▒▒▒▒▓▒▓▓██████████▓▒▒▒░░░█▒▒▒▒▒░▒▒▓▓▓█▒▓▓▓▒▒▓▒▒▒▒▓▒▒▒▒▒▒▒▒▓▒▓▒▒▒▒▓▒▒▓▒▒▒▒▒▒▓▒▒▒▒░▒░▒▒▒▒▒▒▒▒▒
▒▒░░░░░░▒▒▓▒▓▓▒▒▒▒▓▓▒▒▒▓▒▒▒▒▒▒▒▒▒▓▒█▓▒▒▒▒▒██████████▓▒▒▒▓░░▓▒▒▓▓▓▓▓▓▓▒▒▓▒▒▒▓▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▓▒▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒░▓▓▒▒▒▒▒▒▒▒
░░░░░░░░▒▒▓▒▓▓▓▒▒▓▓▓▒▒▓▒▒▒▒▒▒▒▓▒▒▒▓▓▒░░░▒█▓███████████▓▒░░░▓▒▒▓▓▓▓▓▓▓▒▓▒▒▒▓▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▓▒▒▒▒▒▒▒▒▓▒▓▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒
▓▒▒░░░░░▒▒▓▓▒▓▒▒▓▒▓▒▒▒▓▒▒▒▒▒▒▒▒▒▒▒▓▒▒░░░░░░▒▓▓██▓▓██▓▒▓█░░░▒▒░▓▓
@fuerbringer
fuerbringer / gist:bc772e93769018093ebbbc194ea7ae1f
Last active April 16, 2018 19:32
Mixed channel NixOS derivations
# Have different channels added
$ nix-channel --list
beta https://nixos.org/channels/nixos-16.09
nixos https://nixos.org/channels/nixos-unstable
# Install derivation(s) for current user
$ nix-env -qaP | grep pirate-get
beta.python35Packages.pirate-get python3.5-pirate-get-0.2.8
nixos.python35Packages.pirate-get python3.5-pirate-get-0.2.9
@fuerbringer
fuerbringer / gist:5e0cace2ab0f52f9f88a9779bd4d6125
Created February 14, 2018 19:09
Firefox textboard request 66f79a11e0e5fce2ab004875797dddbf0f5dd53e
Host: localhost:8080
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr-CH,en-US;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://localhost:8080/
Cookie: asc_auth_key=bHtbprIdkWNGBBeCLtZ+cAo7tYyEhcdD8tqaxkc4kxxZXsd0JY12MvY9kbpyOb1UoJaTfddlJVN/sBvFtf6juST5yxdtDYYsuAmotYMrlfsaliU5IMWFx7/JmTAfGqej2qOZzSlLzHMQIdi9UQkwO==; _ga=GA1.1.99106486.1517512548
Connection: keep-alive
Upgrade-Insecure-Requests: 1
DNT: 1
@fuerbringer
fuerbringer / gist:9bfb7ea1c70d47768efa06006e580882
Created February 14, 2018 18:45
Textboard database at 66f79a11e0e5fce2ab004875797dddbf0f5dd53e
id,author,subject,comment,created_time,parent
0,anon,1232,Wow &#58;o&#13;<br>&#x30b7;&#x30ea;&#x30a2;&#x30eb;&#x30a8;&#x30af;&#x30b9;&#x30da;&#x30ea;&#x30e1;&#x30f3;&#x30c4;&#x30ec;&#x30a4;&#x30f3;,1518631522,&
1,anon,&,intermediate post,1518631988,0
2,anon,&,&#62;&#62;1&#13;<br>&#62;implying&#13;<br>owo?,1518632006,0
3,&#x30ec;&#x30a4;&#x30f3;,&,&#94; unicode name,1518632531,0
4,anon,&,&#62;.&#60;,1518632707,0
5,anon,a new post,without unicode,1518632823,&
@fuerbringer
fuerbringer / gist:503758a23963ff199047a9b40450d71f
Created February 14, 2018 18:38
Firefox textboard response at 66f79a11e0e5fce2ab004875797dddbf0f5dd53e
Content-Type: text/html
Content-Length: 1297
Date: Wed, 14 Feb 2018 18:36:23 GMT
@fuerbringer
fuerbringer / gist:1e6316043312d7dcade2779bd64638f4
Created February 10, 2018 12:24
Update a fork to be equal to upstream
git remote add upstream /url/to/original/repo
git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force
[sev@orbit:~/git/tldr-nerthil]$ tldr --render pages/osx/autopkg
autopkg
Automation framework for OS X software packaging and distribution
- Run autopkg recipe
autipkg run recipe_identifier
- Run autopkg with in verbose mode
[sev@orbit:~/git/tldr-nerthil]$ ~/.npm/bin/tldr-lint ./pages/osx/autopkg
./pages/osx/autopkg:3: TLDR004 Command descriptions should end in a period
./pages/osx/autopkg:5: TLDR005 Example descriptions should end in a colon
./pages/osx/autopkg:9: TLDR005 Example descriptions should end in a colon
./pages/osx/autopkg:19: TLDR103 Command example is missing its closing backtick
./pages/osx/autopkg:26: TLDR005 Example descriptions should end in a colon
# SOURCE: https://stackoverflow.com/questions/44639182/nginx-proxy-amazon-s3-resources/44749584#44749584
worker_processes 1;
daemon off;
error_log /dev/stdout info;
pid /usr/local/var/nginx/nginx.pid;
events {
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
restart: always
network_mode: bridge
ports:
- "8080:80"
volumes: