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
# Change the dir to remove duplicate files from - and the directory to read from | |
cd dirToRemoveDupesFrom && for f in *.c ; do find ../dirToCheckIfFileExistsAlready -name $f -exec rm $f \; ; done" | |
# Makefile equivalent | |
bash -c "cd $(RMD) && for f in *.c ; do find $(SRCD) -name \$$f -exec rm \$$f \; ; done" |
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
{"version":1,"resource":"file:///Users/ilankleiman/Desktop/l2-ntf-gamestop-balance/testing.py","entries":[{"id":"2eCK.py","timestamp":1666714347186},{"id":"VioY.py","timestamp":1666714367182},{"id":"PCq7.py","timestamp":1666714803800},{"id":"XcW4.py","timestamp":1666714885704},{"id":"e25y.py","timestamp":1666714904041},{"id":"GxFr.py","timestamp":1666714943982},{"id":"FXVm.py","timestamp":1666715109656}]} |
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
/** | |
* Open "https://www.twitch.tv/<YOUR USERNAME>/following" | |
* Keep scrolling down on the page until you've loaded all the people you follow. | |
* Open the console via developer tools, | |
* Paste this script and press enter | |
*/ | |
for (let i = 0; i < document.getElementsByClassName("follow-btn follow-btn--following").length; ++i) document.getElementsByClassName("follow-btn follow-btn--following")[i].click(); |
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
// adapted & updated from: https://stackoverflow.com/questions/48874382/how-to-unsubscribe-from-all-the-youtube-channels-at-once/48874466#48874466 | |
var i = 0; | |
var myVar = setInterval(myTimer, 1000); | |
function myTimer () { | |
console.log("here we go!"); | |
var els = document.getElementById("grid-container").getElementsByClassName("ytd-expanded-shelf-contents-renderer"); | |
if (i < els.length) { | |
els[i].querySelector("[aria-label^='Unsubscribe from']").click(); |
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
<iframe id="myIframe"></iframe> | |
<script> | |
var ifrm = document.getElementById('myIframe'); | |
ifrm = ifrm.contentWindow || ifrm.contentDocument.document || ifrm.contentDocument; | |
ifrm.document.open(); | |
ifrm.document.write('<script>alert("hello world");<\/script>'); | |
ifrm.document.close(); | |
</script> |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $dir = 'rename_these/'; | |
opendir(DIR, $dir) or die $!; | |
while (my $file = readdir(DIR)) |