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/sh | |
| # | |
| tunctl -u dx -t tap0 | |
| ifconfig tap0 102.168.100.1 up | |
| # qemu-kvm -hda nixos-disc.img -m 1024 -net nic -net tap,ifname=tap0,script=no | |
| # *** Inside the Qemu guest *** | |
| # ip addr set 192.168.100.2 dev ens3 |
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
| awk '$4 != "?" && NR > 1 { split($4,arr,"/");p = arr[2];if (p<50) {L[$1]=p;}} END{for (k in L) {printf("%-30s %-10s\n",k,L[k]) }}' coverage_report.csv |
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
| # Thinkpad T440 | |
| # postconditions: | |
| # 1) status should be enabled: | |
| # cat /proc/acpi/ibm/fan | |
| # 2) No errors in systemd logs: | |
| # journalctl -u thinkfan.service -f | |
| services = { | |
| thinkfan = { |
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
| https://gist.github.com/f198e4889c5727f2bc6d9efda689b302 | |
| https://gist.github.com/8079bcef27a01181f2c0f27fef34cf3a | |
| https://gist.github.com/6960b7436c092efd7022af94e760e5fd | |
| https://gist.github.com/63d98b821d73093f8e9f266ee3cc43b8 | |
| https://gist.github.com/463eb5c8a9c0ac31df020195869d33ed | |
| https://gist.github.com/4f85e0ea43cffb55db3101fc61d9a8d5 | |
| https://gist.github.com/90fd10ddb847ef958ebbcd7aad65b1ee | |
| https://gist.github.com/b5e21edf5c313623d891d15a8c2c430d | |
| https://gist.github.com/d56e7339c98b958e0c50cea5f5522fab | |
| https://gist.github.com/09e21c01f385428775a39f27dca3d728 |
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
| include: | |
| c: | |
| memcpy,memset: string.h | |
| lseek: [sys/types.h,unistd.h] | |
| printf: stdio.h | |
| realloc: stdlib.h | |
| assert: assert.h | |
| exit: stdlib.h | |
| c++: | |
| cout: iostream |
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
| var EXAMPLE = { | |
| foo: 'hello', | |
| hello: 42, | |
| payload: new Buffer('a'), | |
| meh: { | |
| b: { | |
| tmp: { | |
| baz: 1000 | |
| } |
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
| message SearchRequest { | |
| required string query = 1; | |
| optional int32 page_number = 2; | |
| optional int32 result_per_page = 3 [default = 10]; | |
| enum Corpus { | |
| UNIVERSAL = 0; | |
| WEB = 1; | |
| IMAGES = 2; | |
| LOCAL = 3; | |
| NEWS = 4; |
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 x509 -text -noout -in cert.txt |
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
| inotifywait -mr --exclude '.git' -e create somefolder/ |
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
| pip install pyyml | |
| python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' < docker-compose.yml > /tmp/docker-compose.json | |
NewerOlder