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
| url_parts=$(echo "$1" | sed 's/.*\/\([^/]*\)\/thread\/\([0-9]*\)\/.*/\1 \2/') | |
| board=$(echo "$url_parts" | cut -d ' ' -f 1) | |
| thread=$(echo "$url_parts" | cut -d ' ' -f 2) | |
| curl -s "https://a.4cdn.org/$board/thread/$thread.json" | jq -r '.posts[] | select(.ext==".webm") | "https://is2.4chan.org/'"$board"'/\(.tim).webm"' | xargs -n 1 -P 5 curl -O |
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
| clear | |
| printf "\e]2;TK2DL Farmer\a" | |
| [ ! -d "tk2dl_farm" ] && mkdir "tk2dl_farm" | |
| while :; do | |
| values=$(curl -s https://tk2dl.com/t/recent.html | grep -o 'value="[^"]*"' | cut -d'"' -f2) | |
| for x in $values; do | |
| if ls -1 tk2dl_farm/*.mp4 | awk '{ print $2 }' | grep $x >/dev/null; then continue; fi | |
| du -ah tk2dl_farm | awk 'END {printf "%d - %s\r", NR-1, $1}' | |
| response=$(curl -s -X POST -d "x=$x" -H "Referer: https://tk2dl.com/t/recent.html" https://tk2dl.com/t/playtw.html) |
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
| find . -type f -exec sh -c 'ldd "$1" | grep -q "/lib64/" && echo "$1 atualizado" && patchelf --set-interpreter /lib/ld-linux-x86-64.so.2 "$1"' sh {} \; 2>/dev/null |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <dirent.h> | |
| #include <X11/Xlib.h> | |
| #include <Imlib2.h> | |
| #include <unistd.h> | |
| int main(int argc, char *argv[]) { | |
| if (argc < 4 || argc > 5) { | |
| fprintf(stderr, "Usage: %s <image_folder> <frame_delay> <screen_number> [1 for infinite loop, optional]\n", argv[0]); |
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
| const test = "imbecile kkk imbecile kkk imebicle kkk"; | |
| const results = {}; | |
| for (let i = 0; i < test.length; i++) { | |
| for (let j = i + 1; j <= test.length; j++) { | |
| const sequence = test.slice(i, j); | |
| if (sequence === test.slice(j, j + sequence.length)) { | |
| if (sequence in results) { | |
| results[sequence]++; | |
| } else { | |
| results[sequence] = 1; |
NewerOlder