Skip to content

Instantly share code, notes, and snippets.

View paperbenni's full-sized avatar

paperbenni

View GitHub Profile
@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();
#!/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 / 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"
@paperbenni
paperbenni / config.yml
Created July 2, 2018 11:51
BungeeCord Config
ip_forward: true
network_compression_threshold: 256
stats: cb845839-3ba0-4a52-b9f2-171eec10794b
groups:
md_5:
- admin
Heinz007:
- admin
servers:
lobby:
var sum = "";
var suk = "";
var col = "white";
var sup = "";
var suf = "";
var check = "";
@paperbenni
paperbenni / glibc.sh
Created May 15, 2018 15:39
install glibc on
apk --no-cache add ca-certificates wget
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.27-r0/glibc-2.27-r0.apk
apk add glibc-2.27-r0.apk
apk add glibc-bin-2.27-r0.apk glibc-i18n-2.27-r0.apk
/usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8
[user]
email = [email protected]
name = BuildTools
[core]
editor = nvim
[credential]
helper = cache --timeout=36000
[push]
default = simple
#!/bin/bash
if [ -d "spigotjar" ]; then
git clone https://minegloryspigot:[email protected]/minegloryspigot/spigotjar.git
mv spigotjar/spigot.jar spigot/spigot.jar
fi
java -jar spigot.jar
2018-04-09T12:11:40.178503+00:00 app[web.1]: [12:11:40 INFO]: Pumpkin Growth Modifier: 100%
2018-04-09T12:11:40.178822+00:00 app[web.1]: [12:11:40 INFO]: Sapling Growth Modifier: 100%
2018-04-09T12:11:40.179216+00:00 app[web.1]: [12:11:40 INFO]: Wheat Growth Modifier: 100%
2018-04-09T12:11:40.179538+00:00 app[web.1]: [12:11:40 INFO]: NetherWart Growth Modifier: 100%
2018-04-09T12:11:40.179829+00:00 app[web.1]: [12:11:40 INFO]: Vine Growth Modifier: 100%
2018-04-09T12:11:40.180132+00:00 app[web.1]: [12:11:40 INFO]: Cocoa Growth Modifier: 100%
2018-04-09T12:11:40.180484+00:00 app[web.1]: [12:11:40 INFO]: Mob Spawn Range: 4
2018-04-09T12:11:40.180921+00:00 app[web.1]: [12:11:40 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16 / Tiv true
2018-04-09T12:11:40.181356+00:00 app[web.1]: [12:11:40 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
2018-04-09T12:11:40.181786+00:00 app[web.1]: [12:11:40 INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
#!/usr/bin/env bash
# Examples:
# ix hello.txt # paste file (name/ext will be set).
# echo Hello world. | ix # read from STDIN (won't set name/ext).
# ix -n 1 self_destruct.txt # paste will be deleted after one read.
# ix -i ID hello.txt # replace ID, if you have permission.
# ix -d ID
ix() {