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 os | |
| import re | |
| BEARER = 'nope' | |
| URL = 'https://api.bitbucket.org/2.0/repositories/retro42/freshtomato-arm/downloads' | |
| ARTIFACT_DIR = f'{os.environ["WORKSPACE"]}/release/src-rt-6.x.4708/image/' | |
| def main(): | |
| upload_artifacts() |
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 json | |
| import boto3 | |
| import ipaddress | |
| SECRET='geturownsecret' | |
| REQUIRED_PARAMS=[ | |
| 'secret', | |
| 'domain', | |
| 'subdomain', | |
| 'ip' |
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 mido | |
| from pynput import keyboard | |
| from threading import Thread | |
| from time import sleep | |
| KEYMAP="1!2@34$5%6^78*9(0qQwWeErtTyYuiIoOpPasSdDfgGhHjJklLzZxcCvVbBnm" | |
| MIDI_PORT='loopMIDI Port 0' | |
| MIDDLE_C_OFFSET=36 | |
| def map_note_to_key(note, keymap=KEYMAP, offset=MIDDLE_C_OFFSET): |
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
| class dictObj(object): | |
| def __init__(self, inObj: dict = dict()): | |
| self.__load__(inObj) | |
| def __load__(self, inObj): | |
| if inObj: | |
| self.__clear__() | |
| for obj in inObj: | |
| if issubclass(type(inObj[obj]), (dictObj, dict)): |
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 websocket | |
| from threading import Thread | |
| import json | |
| import logging | |
| import finnhub | |
| import time | |
| import datetime | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import influxdb_client |
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 http.server import HTTPServer, BaseHTTPRequestHandler | |
| from socketserver import ThreadingMixIn | |
| import json | |
| import requests | |
| import xml.etree.ElementTree as ET | |
| from threading import Thread | |
| from subprocess import Popen | |
| HOST='localhost' | |
| PORT=3527 |
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
| serverprivkey=/jffs/wg/server/private.key | |
| clientpubkeydir=/jffs/wg/clients | |
| wgaddress=192.168.3.1/24 | |
| devname=wg0 | |
| port=51820 | |
| allowedips=0.0.0.0/0 | |
| retry=10 | |
| usage="Usage: $0 up/down" |
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/bin/env python | |
| import subprocess | |
| import json | |
| import os | |
| import argparse | |
| ffmpegCommand = "ffmpeg" | |
| conv_ratio = 2/3 |
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/bin/env python | |
| import streamlink | |
| import pychromecast | |
| import re | |
| import argparse | |
| from simple_term_menu import TerminalMenu | |
| def selectCCbyName(castname): |
NewerOlder