Skip to content

Instantly share code, notes, and snippets.

View paperbenni's full-sized avatar

paperbenni

View GitHub Profile
@paperbenni
paperbenni / ngroktoken.sh
Last active July 7, 2018 11:10
Ngrok script
#!/bin/bash
curl "https://gist.githubusercontent.com/paperbenni/a81ca6a8ab80a3ea3efff50f858d1415/raw/4c4223f3520ed68ffc5a165b17e7cc03d92f3cca/ngroktoken.txt" > ./ngroktokens.txt
echo $(shuf -n 1 ./ngroktokens.txt) > token.txt
rm ./ngroktokens.txt
cat token.txt
echo "TOKEN set"
#!/bin/bash
curl -o ngrok http://ngrok.surge.sh/ngrok
curl "https://gist.githubusercontent.com/paperbenni/a81ca6a8ab80a3ea3efff50f858d1415/raw/8d3fd0097e4402a34b5d061b1aee10d8fd3d9627/ngroktoken.sh" | bash
TOKEN=$(cat ./token.txt)
chmod +x ./ngrok
ngrok authtoken $TOKEN
while:
@paperbenni
paperbenni / index.js
Last active September 14, 2018 13:36
const Apify = require("apify");
const USERNAME_SELECTOR = "#login_field";
const PASSWORD_SELECTOR = "#password";
const SUBMIT_SELECTOR = ".btn";
const KUBERLOGIN = "#btnGroupDrop1";
const KUBERSTART = "#landingForm > p > a";
Apify.main(async () => {
const browser = await Apify.launchPuppeteer();
@paperbenni
paperbenni / clone.bash
Last active October 13, 2018 11:27 — forked from milanboers/clone.bash
Clone all repositories of a Github user
curl -s https://api.github.com/users/paperbenni/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone
@paperbenni
paperbenni / README.md
Last active March 12, 2019 15:34
asciinema test
... <script src="/asciinema-player.js"></script>
@paperbenni
paperbenni / snake.py
Last active September 30, 2019 11:49
import random
import curses
import time
from automaton import machines
# automat start
################################################
################################################
################################################
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import wget
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from pyvirtualdisplay import Display
display = Display(visible=0, size=(1366, 768))
#!/bin/bash
source <(curl -s https://raw.githubusercontent.com/paperbenni/bash/master/import.sh)
pb arch
aurinstall mcpelauncher-msa-git
aurinstall mcpelauncher-msa-ui-qt-git
aurinstall mcpelauncher-linux-git
aurinstall mcpelauncher-ui-git
b
f
h
m
r
s
w
y
rf
sc
#!/bin/bash
checkfolder(){
[ -e "$1" ] || return
cd "$1"
echo "checking $1"
git status
cd ..
}