Skip to content

Instantly share code, notes, and snippets.

View opsxcq's full-sized avatar
☢️
Testing...

opsxcq

☢️
Testing...
View GitHub Profile
@opsxcq
opsxcq / links.txt
Created November 4, 2022 21:17
Download Brazil Election data
Download with
`for ll in $(cat links.txt); do wget --user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" $ll & done;`
18.179.58.207
95.216.29.159
173.249.21.93
104.152.45.99
52.53.225.38
144.76.71.57
185.75.76.61
18.222.166.56
45.125.32.202
18.191.66.14
### Keybase proof
I hereby claim:
* I am opsxcq on github.
* I am terminator (https://keybase.io/terminator) on keybase.
* I have a public key whose fingerprint is 66ED 4A9A 4D70 D36F E481 9641 9AD7 30FE 9CDE 5661
To claim this, I am signing this object:
@opsxcq
opsxcq / bookmarklet.js
Last active September 24, 2017 22:15
Bookmarklet to generate bibtex references from current website
javascript:function%20copyToClipboard(text)%20{%20window.prompt("Copy%20to%20clipboard:%20Ctrl+C,%20Enter",%20text);%20}%20var%20title%20=%20document.title;%20var%20url%20=%20document.URL;%20var%20author_tag%20=%20document.querySelector("[name=author]");%20var%20author%20=%20(author_tag%20==%20null)%20?%20""%20:%20author_tag.content;%20var%20today%20=%20new%20Date();%20var%20dd%20=%20today.getDate();%20var%20mm%20=%20today.getMonth()%20+%201;%20var%20yyyy%20=%20today.getFullYear();%20if%20(dd%20<%2010)%20{%20dd%20=%20'0'%20+%20dd;%20}%20if%20(mm%20<%2010)%20{%20mm%20=%20'0'%20+%20mm;%20}%20var%20urldate%20=%20yyyy%20+%20"-"%20+%20mm%20+%20"-"%20+%20dd;%20var%20title_key%20=%20title.replace(/%20/g,%20"_");%20var%20re%20=%20/[\0-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u
var buff= [1068,1105,1109,1032,1074,1065,1071,1066,1079,1089,1067,1074,1089,1073,1013,1010,1068,1105,1109,1032,1116,1101,1109,1112,1013,1010,1068,1105,1109,1032,1078,1084,1082,1090,1078,1083,1083,1076,1069,1075,1013,1010,1068,1105,1109,1032,1118,1101,1114,1115,1013,1010,1068,1105,1109,1032,1069,1071,1073,1066,1085,1086,1075,1077,1077,1065,1013,1010,1068,1105,1109,1032,1077,1071,1076,1073,1080,1068,1079,1083,1088,1073,1013,1010,1083,1101,1116,1032,1077,1071,1076,1073,1080,1068,1079,1083,1088,1073,1032,1061,1032,1067,1114,1101,1097,1116,1101,1079,1098,1106,1101,1099,1116,1040,1032,1034,1087,1083,1099,1114,1105,1112,1116,1046,1083,1104,1101,1108,1108,1034,1032,1041,1013,1010,1074,1065,1071,1066,1079,1089,1067,1074,1089,1073,1032,1061,1032,1077,1071,1076,1073,1080,1068,1079,1083,1088,1073,1046,1069,1120,1112,1097,1110,1100,1069,1110,1118,1105,1114,1111,1110,1109,1101,1110,1116,1083,1116,1114,1105,1110,1103,1115,1040,1032,1034,1037,1083,1121,1115,1116,1101,1109,1082,1111,1111,1116,1037,1034,1032,1041,1013,1010,111
### Keybase proof
I hereby claim:
* I am opsxcq on github.
* I am terminator (https://keybase.io/terminator) on keybase.
* I have a public key whose fingerprint is 66ED 4A9A 4D70 D36F E481 9641 9AD7 30FE 9CDE 5661
To claim this, I am signing this object:
@opsxcq
opsxcq / voices.sh
Created November 19, 2016 22:17
Test all voices for "say" command in Mac OS X
for voice in $(say -v ? | awk '{print $1}'); do echo 'Using voive '$voice; say -v $voice "$(say -v ? | grep $voice | cut -d '#' -f 2)"; done;
@opsxcq
opsxcq / gist:4563273b29db5d6a9fa314e0b4a3a3ae
Created September 30, 2016 21:48
Ionic and sass not working
If ionic isn't compiling sass, just add it to gulp.js
gulp.task('serve:before', ['default','watch']);
and be sure that in your watch task you compile your scss file
### Keybase proof
I hereby claim:
* I am opsxcq on github.
* I am terminator (https://keybase.io/terminator) on keybase.
* I have a public key whose fingerprint is C482 44B0 F04D C72C DB1C 7016 3E98 3A97 552C 1B1D
To claim this, I am signing this object:
@opsxcq
opsxcq / bash
Created April 7, 2016 20:48
Renice with pooling
name="XXX"
while true;
do
for pid in $(ps -def | grep "$name" | awk '{print $2}');
do
renice -n 20 $pid;
done;
sleep 10;
done;