- Convert hex to base64
- Fixed XOR
- Single-byte XOR cipher
- Detect single-character XOR
- Implement repeating-key XOR
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
#Login method for remote auth using plain text cookies for testing. Replaced w/ session. | |
# LOGIN REQUIRED | |
def login_required(f): | |
@wraps(f) | |
def wrap(*args, **kwargs): | |
ticketId = request.cookies.get('_id') | |
ticketKey = request.cookies.get('key') | |
url = " " | |
response = requests.get(url, auth=(ticketId, ticketKey)) |
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 soco | |
from soco import SoCo | |
from soco.data_structures import DidlItem, DidlResource | |
from soco.music_services import MusicService | |
from soco.compat import quote_url | |
import os | |
os.system('clear') | |
os.system('tput setaf 4') |
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
_____PORTAL EVENT SCRIPT_____ | |
Below is the event script that is used to populate the LISL portal with this streams details. | |
For help visit lostinsound.live/api/pes | |
realname: [] (Prefered name or alternate alias) | |
skill: [] (What the stream is showcasing) | |
format: [] | |
avatar: [grab] (grab, 300x300 please) | |
soundcloud: [] |
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
#include "Particle.h" | |
#include "neopixel.h" | |
SYSTEM_MODE(AUTOMATIC); | |
// IMPORTANT: Set pixel COUNT, PIN and TYPE | |
#define PIXEL_PIN D2 | |
#define PIXEL_COUNT 162 | |
#define PIXEL_TYPE WS2812B |
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
from pprint import pprint | |
from random import shuffle | |
# A deck class initializes with 52 cards in order. | |
class deck: | |
# Builds a single card in the form of a dictionary. | |
def card_gen(self,index,suit_name): |
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
1 - Create project folder | |
(Usually initialize via github with ignores and established remote codebase) | |
2 - Setup a virtual enviroment in project folder. | |
virtualenv -p python3 venv (for python3) | |
3 - Start venv and install dependencies. | |
pip install Django | |
4 - Initialize Django project |
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
1. Create a directory | |
2. Install in current directory | |
`pip install Pillow --target .` | |
3. static binaries can be placed in a /bin dir |
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
https://gist.github.com/rupakg/e70377a16805c15f73aa4edd1bf964a1 | |
https://lobster1234.github.io/2017/12/03/run-tasks-with-aws-fargate-and-lambda/ | |
1. Build a Dockerfile | |
FROM jrottenberg/ffmpeg | |
LABEL maintainer="fin <xn@kys.lel>" | |
WORKDIR /tmp/workdir |
OlderNewer