Skip to content

Instantly share code, notes, and snippets.

View exinmusic's full-sized avatar
👂

David Dolan exinmusic

👂
View GitHub Profile
@exinmusic
exinmusic / noSession_flaskLogin_.py
Created June 20, 2017 01:12
FLASK: Plain Text Cookies Login
#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))
@exinmusic
exinmusic / sonos_poison.py
Created June 21, 2017 00:39
PYTHON: Sonos Prankware
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')

🔐 Cryptopals Challenge

🐍 in Python 2.7

Cryptopals Website

Challenge Set 1

  • Convert hex to base64
  • Fixed XOR
  • Single-byte XOR cipher
  • Detect single-character XOR
  • Implement repeating-key XOR
_____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: []
@exinmusic
exinmusic / .md
Created May 24, 2018 19:52
angular cheats

HttpClientModule

import { HttpClientModule } from '@angular/common/http';

#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
@exinmusic
exinmusic / card_deck.py
Last active November 9, 2018 15:27
Create a class that represents a deck of playing cards. Must be able to shuffle and pull cards from the deck.
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):
@exinmusic
exinmusic / gist:2b7749b8e1e258470ac9272765a6ce67
Last active November 23, 2018 21:36
django bootstrapping / init procedure
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
@exinmusic
exinmusic / django_cheats.txt
Last active November 2, 2019 00:04
Django Bootstrapping Notes
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
@exinmusic
exinmusic / lambda_custom_deps.txt
Created April 24, 2019 07:22
Python AWS Lambda Cheat Codes
1. Create a directory
2. Install in current directory
`pip install Pillow --target .`
3. static binaries can be placed in a /bin dir