Skip to content

Instantly share code, notes, and snippets.

@kerrickstaley
kerrickstaley / parse_serato_crates.py
Created March 22, 2019 17:02
Functions for parsing Serato DJ crates
import struct
def decode_struct(data):
ret = []
i = 0
while i < len(data):
tag = data[i:i+4].decode('ascii')
length = struct.unpack('>I', data[i+4:i+8])[0]
value = data[i+8:i+8+length]
value = decode(value, tag=tag)
@JakubPetriska
JakubPetriska / quotes.csv
Last active April 26, 2024 16:25
Motivational quotes
Author Quote
Thomas Edison Genius is one percent inspiration and ninety-nine percent perspiration.
Yogi Berra You can observe a lot just by watching.
Abraham Lincoln A house divided against itself cannot stand.
Johann Wolfgang von Goethe Difficulties increase the nearer we get to the goal.
Byron Pulsifer Fate is in your hands and no one elses
Lao Tzu Be the chief but never the lord.
Carl Sandburg Nothing happens unless first we dream.
Aristotle Well begun is half done.
Yogi Berra Life is a learning experience, only if you learn.
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 16:25
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@echandler5956f
echandler5956f / extract_frames.py
Created April 26, 2024 16:24
Extract keyframes from video: A simple python script using OpenCV and scikit-learn to extract keyframes from all mp4 files in the current directory, placing them in new directories them into new folders
# Extract keyframes from video:
# A simple Python script using OpenCV and scikit-learn to extract keyframes
# from all mp4 files in the current directory
import os
import cv2
import numpy as np
from sklearn.cluster import KMeans
def extract_frames_from_mp4(mp4_file, num_frames=10):
@hauthorn
hauthorn / postman.desktop
Last active April 26, 2024 16:24
Postman desktop entry
[Desktop Entry]
Categories=Development;
Comment=Supercharge your API workflow
Exec="/home/hauthorn/Programs/Postman/Postman"
Icon=/home/hauthorn/Programs/Postman/app/resources/app/assets/icon.png
Name=Postman
Terminal=false
Type=Application
Version=1.0
These keys are for Office Professional Plus 2019
Version: Office19_RTM19_ProPlus2019VL_MAK_AE
BN8D3-W2QKT-M7Q73-Y3JWK-KQC63 (Activation left: 5000+)
PNB29-Y9TKP-BJFD2-RBCXR-DJ4XQ (Activation left: 1500+)
Download Link: ed2k://|file|cn_office_professional_plus_2019_x86_x64_dvd_5e5be643.iso|3775004672|1E4FFA5240F21F60DC027F73F1C62FF4|/
or please download from trusted source!