This file contains hidden or 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 io.d2a.eeee.Starter; | |
| import io.d2a.eeee.annotation.annotations.common.Range; | |
| import io.d2a.eeee.annotation.annotations.generate.Generate; | |
| import io.d2a.eeee.annotation.annotations.prompt.Entrypoint; | |
| import io.d2a.eeee.annotation.annotations.prompt.Prompt; | |
| import io.d2a.eeee.generate.random.RandomFactory; | |
| import java.util.Arrays; | |
| public static class EEEE { |
This file contains hidden or 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 | |
| # change me | |
| BROADCAST_ID: str = "" | |
| CLIENT_ID: str = "" | |
| # --- | |
| START_URL: str = f"https://api.twitch.tv/v5/videos/{BROADCAST_ID}/comments?content_offset_seconds=0" |
This file contains hidden or 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 | |
| # required: tar, curl, openssl, jq | |
| # Backup Settings | |
| TARGET_DIR="~/" # change me | |
| TARGET="export/". # change me | |
| ENCRYPTION_PASS="xVyA..." # change me | |
| OUT_DIR="/tmp/" # change me | |
| OUT_FILE="$(date +%Y-%m-%d).tar.gz.enc" # change me |
This file contains hidden or 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/local/bin/python3 | |
| import requests | |
| import re | |
| import sys | |
| import subprocess | |
| # INPUT | |
| URL: str = "" | |
| if len(sys.argv) >= 2: | |
| URL = sys.argv[1] |
This file contains hidden or 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 dns.resolver | |
| import requests | |
| import tqdm | |
| import re | |
| # SETTINGS | |
| # english | |
| WORDS = 'https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt' | |
| # german | |
| # WORDS = 'https://gist.github.com/MarvinJWendt/2f4f4154b8ae218600eb091a5706b5f4/raw/36b70dd6be330aa61cd4d4cdfda6234dcb0b8784/wordlist-german.txt' |
This file contains hidden or 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 pynotifier import Notification | |
| from pycoingecko import CoinGeckoAPI | |
| from time import sleep | |
| # init api | |
| cg = CoinGeckoAPI() | |
| COIN_ID: str = "dogecoin" | |
| VS_CURR: str = "eur" | |
| DELAY: int = 15 * 60 # in seconds |
This file contains hidden or 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
| public static int weirdAbs(int num) { | |
| return Math.abs(num) << 1 | (num < 0 ? 1 : 0); | |
| } | |
| public static int weirdAbsP(int abs) { | |
| return (abs >> 1) * (abs & 1) == 1 ? -1 : 1; | |
| } |
This file contains hidden or 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 | |
| # ============================================================================================================== # | |
| # # | |
| # wget -qO- https://gist.github.com/darmiel/219bfb6ee51b4257cb6a9993d96f4994/raw/jsvr.sh | sudo bash # | |
| # # | |
| # ============================================================================================================== # | |
| P_DOWNLOAD_URL="https://gist.github.com/darmiel/219bfb6ee51b4257cb6a9993d96f4994/raw/jsvr.sh" | |
| P_BIN_PATH="/bin/jsvr" | |
| # Cancel script if something goes wrong |
This file contains hidden or 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 | |
| # Cancel script if something goes wrong | |
| set -e | |
| # Settings | |
| P_PRIV="sudo" | |
| P_TIMEZONE="Europe/Berlin" | |
| P_PORT="22124" | |
| P_VOLUME="-v $(pwd)/jam:/jam" |
This file contains hidden or 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 math | |
| class KeyboardLayout(): | |
| def __init__(self, keys: list): | |
| self.keys = keys | |
| self.key_map = {} | |
| # create character map | |
| for row in range(len(keys)): | |
| for column in range(len(keys[row])): |
NewerOlder