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
const fs = require('fs'); | |
const process = require('process'); | |
const { authenticate } = require('@google-cloud/local-auth'); | |
const { google } = require('googleapis'); | |
const SCOPES = ['https://www.googleapis.com/auth/drive']; | |
const credentials = JSON.parse(fs.readFileSync('./clientsecret.json')); | |
console.log('Auth...') |
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 | |
date_today=$(date +"%d_%m_%Y") | |
akkoma_workdir="/home/$USER/akkoma" | |
akkoma_db_img_name="akkoma-db" | |
backup_temp_dir="/home/$USER/backup_tmp" | |
backup_zip_dir="/home/$USER/backups" | |
# check working directory | |
echo "Verifying working directory..." |
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 | |
REGEX_URL="https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&\/=]*)" | |
PASTEBIN_DATA="$(curl https://pastebin.pl/view/raw/0ce85bfa 2>/dev/null)" | |
# Create the out directory if not exists | |
mkdir -p dl_output | |
while [[ ${PASTEBIN_DATA} =~ (${REGEX_URL}) ]]; do | |
# HTTPS enforce |
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/sh | |
if [ "$USER" != "root" ]; then | |
echo "Not running as root. PC speaker disabled."; | |
fi | |
while :; do | |
TEMP=$(sysctl -a | grep "hw.sensors"); | |
TEMPRAW=${TEMP%".00 degC"*}; |
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
// ==UserScript== | |
// @name z0r.de download button | |
// @include https://z0r.de/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
window.addEventListener('load', function(){ | |
// New element |
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/python3 | |
# Ungoogled Chromium webstore extensions install utility | |
# Made by _kana ( http://cyberhangar.org ) | |
import sys, urllib.request, urllib.parse, subprocess, os, re | |
_cfg = { | |
# Download directory (without / on the end). Make sure that you have read, write permissions. | |
# Leave empty to download to script's working directory. |
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/python3 | |
import requests, sys, os | |
zorde_flash_url = 'https://z0r.de/L/z0r-de_{}.swf' | |
flashes_count = 7911 # as of 07.08.2018 | |
request_headers = { | |
'User-Agent': 'NotABot/1.0 (Just archiving on my disk don\'t ban me thanks.)' | |
} |
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/python3 | |
import time, random | |
sentences = [ | |
'Is there a time limit on fortune cookie predictions?', | |
'I know the voices in my head aren\'t real, but sometimes their ideas just absolutely awesome!', | |
'I got a job at a bakery because I kneaded dough.', | |
'“Work fascinates me” I can look at it for hours!', | |
'How come cats butts go up when you pet them?', |
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
// ==UserScript== | |
// @name z0rdeOnWaterfox | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description makes z0r.de work on waterfox | |
// @author Noone | |
// @match https://*.z0r.de/* | |
// @grant none | |
// ==/UserScript== |
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
javascript:window.location=document.getElementsByTagName('video')[0].src; | |
/* Create a new bookmark and put this code in the URL. When you're on Vidlii video website you can just click on that bookmark | |
and it will easily let you download the video. Will work only with HTML5 players. */ |