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 requests | |
import datetime | |
import argparse | |
from gtts import gTTS | |
import math | |
import subprocess | |
import hashlib | |
import os.path | |
import tempfile |
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 requests | |
import subprocess | |
def get_latest(): | |
response = requests.get("https://github.com/atom/atom/releases/latest") | |
return response.url[response.url.rfind("/")+2:] | |
def get_current(): | |
output = subprocess.check_output(["atom", "--version"]) |
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 ( | |
"archive/tar" | |
"bytes" | |
"compress/gzip" | |
"crypto/sha1" | |
"flag" | |
"fmt" | |
"io" |
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
import requests | |
import json | |
import sys | |
def get_game_hours(profile_id): | |
r = requests.get("https://steamcommunity.com/profiles/" + str(profile_id) + "/games/?tab=all") | |
hours = [] | |
for line in r.text.splitlines(): | |
if line.lstrip().startswith("var rgGames"): |
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 | |
ENABLE=1 | |
CONFIG_REPO=phibedy.config_auto_drive.d6c3c3 | |
ARGS="-c new_car --flags norender,sendData" | |
USER=odroid | |
if [ $ENABLE -eq 1 ]; then | |
daemon --name=lms --user=$USER --attempts=1 --delay=5 --output=/tmp/lms.log --respawn -- /home/$USER/$CONFIG_REPO/run $ARGS | |
fi |
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 BetterFavicon | |
// @namespace YoloSwaghettiGroup | |
// @description A better favicon for google | |
// @include https://*.google.com/* | |
// @include http://*.google.com/* | |
// @include https://*.google.de/* | |
// @include http://*.google.de/* | |
// @grant none | |
// @author Deine Mudda |
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 sys, requests | |
USER_AGENT = 'Mozilla/5.0 (Windows NT 6.3; rv:44.0) Gecko/20100101 Firefox/44.0' | |
if __name__ == '__main__': | |
if len(sys.argv) != 2: | |
print('Usage: urlextender.py <url>') | |
sys.exit(1) |
NewerOlder