This file contains 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 <time.h> | |
int main(int argc, char *argv[]) { | |
srand((unsigned)time(NULL) * getpid(NULL)); | |
char* resultString = argv[rand()%argc]; | |
if (resultString == argv[0]) { resultString = "try again"; } | |
printf("result: %s\n", resultString); | |
return 0; } |
This file contains 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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"os" | |
"time" | |
) | |
//player=0 ; computer=1 |
This file contains 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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.firefox.options import Options | |
from stem import Signal | |
from stem.control import Controller | |
import time | |
# you need geckodriver and tor | |
option = 1 # what to vote |
This file contains 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/env python3 | |
import glob | |
import os | |
import random | |
import shutil | |
from google_images_download import google_images_download | |
from InstagramAPI import InstagramAPI | |
keyw = ["turtles", "cats", "dogs", "birds", "landscape", "skyline", "satellite images", "exoplanets", "lakes", "hippos", "exotic animals"] | |
path2img = "" |
This file contains 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
adb shell cmd package uninstall -k --user 0 com.android.chrome | |
adb shell cmd package uninstall -k --user 0 com.android.calendar | |
adb shell cmd package uninstall -k --user 0 com.miui.calculator | |
adb shell cmd package uninstall -k --user 0 com.android.browser | |
adb shell cmd package uninstall -k --user 0 com.miui.analytics | |
adb shell cmd package uninstall -k --user 0 com.google.android.youtube | |
adb shell cmd package uninstall -k --user 0 com.google.android.apps.photos | |
adb shell cmd package uninstall -k --user 0 com.miui.notes | |
adb shell cmd package uninstall -k --user 0 com.miui.player | |
adb shell cmd package uninstall -k --user 0 com.duokan.phone.remotecontroller |
This file contains 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
/* firefox's "copy > css selector" feature is seriously awesome */ | |
/* sidebar elements (more from yt, footer, etc) */ | |
ytd-guide-section-renderer.style-scope:nth-child(3) { | |
display: none; | |
} | |
ytd-guide-section-renderer.style-scope:nth-child(4) { | |
display: none; | |
} |
This file contains 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/bash | |
# hugendubel ladenvorrat checker | |
# usage: ./instock.sh <ISBN13> | |
set -e -o pipefail | |
[[ -z "$1" ]] && echo -e "error: no isbn\n usage: ./instock.sh <ISBN13>" && exit 1 | |
# check if $1 matches ISBN13 format | |
[[ ! $(grep -P '978[0-9\-]{10}' <<< "$1") ]] && echo "error: that's not an ISBN" && exit 1 |
This file contains 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
# print all href links in list, however deep. use devtools, rightclick > copy > selector | |
document.querySelectorAll(" SELECTOR ").forEach(y=>console.log(y.href)) |
This file contains 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/bash | |
set -eu -o pipefail | |
FEEDTITLE="" # feed title (as displayed in rss readers) | |
FEEDLINK="" # link to the .rss file, publicly accesible | |
RSSLINKTO="" # where the feed links to (ex: website) | |
FEEDIMAGEURL="" # use this as the feed image | |
FEEDDESCRIPTION="" # short feed description | |
RSSFILE="./feed.rss" | |
RSSDATE="$(date +%a,-%d-%b-%Y-%T-%z | sed -e 's/-/ /g')" |
This file contains 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/bash | |
# usage: ./genbooklist WISHLIST_ID | |
# please make sure to set $FILE to the desired output file | |
set -eu -o pipefail | |
ID="$1" | |
FILE="" | |
# if you're not from germany, change the tld | |
URL="https://www.amazon.de/hz/wishlist/printview/""$ID" |
OlderNewer