Skip to content

Instantly share code, notes, and snippets.

@alexwh
alexwh / pushbullet_key_shit.py
Last active November 15, 2023 11:27
pushbullet manual accesstoken registry encryption to bypass dysfunctional localhost:20807 server
#!/usr/bin/env python3
import sys
import struct
import base64
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.primitives import padding
key = [26, 81, 131, 250, 10, 187, 159, 184, 11, 73, 15, 155, 49, 88, 34, 42, 208, 18, 72, 255, 54, 63, 172, 106, 238, 47, 139, 16, 106, 105, 155, 41]
key = struct.pack(">" + "B"*len(key), *key)
iv = [189, 12, 193, 53, 87, 80, 242, 83, 178, 140, 144, 17, 190, 48, 4, 143]
{
"Maps": [
{
"displayName": "Standoff",
"mapName": "Bunkerworld"
},
{
"displayName": "Sandtrap",
"mapName": "Shrine"
},
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
#!/bin/bash
# run from src/ansible-git directory
cd ../..
makepkg -esfi --noconfirm
# to avoid bisect complaining about generated docs being overwritten when changing commit
cd src/ansible-git
git checkout .
@alexwh
alexwh / gist:2c143efe8ef3164f2786
Created September 12, 2014 17:37
mpv mozplugger log
[cplayer] mpv 0.5.3 (C) 2000-2014 mpv/MPlayer/mplayer2 projects
[cplayer] built on 2014-09-11T03:57:36
[cplayer] ffmpeg library versions:
[cplayer] libavutil 52.92.100
[cplayer] libavcodec 55.69.100
[cplayer] libavformat 55.48.100
[cplayer] libswscale 2.6.100
[cplayer] libavfilter 4.11.100
[cplayer] libavresample 1.3.0
[cplayer]
[cplayer] mpv 0.5.1 (C) 2000-2014 mpv/MPlayer/mplayer2 projects
[cplayer] built on 2014-08-27T16:59:00
[cplayer] ffmpeg library versions:
[cplayer] libavutil 52.92.100
[cplayer] libavcodec 55.69.100
[cplayer] libavformat 55.48.100
[cplayer] libswscale 2.6.100
[cplayer] libavfilter 4.11.100
[cplayer] libavresample 1.3.0
[cplayer]
[cplayer] mpv git-98ef68b (C) 2000-2014 mpv/MPlayer/mplayer2 projects
[cplayer] built on 2014-08-30T15:45:45
[cplayer] ffmpeg library versions:
[cplayer] libavutil 52.92.100
[cplayer] libavcodec 55.69.100
[cplayer] libavformat 55.48.100
[cplayer] libswscale 2.6.100
[cplayer] libavfilter 4.11.100
[cplayer] libavresample 1.3.0
[cplayer]
@alexwh
alexwh / rtorrent.rc
Created November 6, 2012 17:47
rtorrent.rc
# custom
check_hash = yes
encryption = allow_incoming,try_outgoing,enable_retry
encoding_list = UTF-8
#scgi_local = /tmp/rtorrent.sock # yields same result as port
scgi_port = :5000 # also tried "localhost:5000", "127.0.0.1", etc
schedule = chmod,0,0,"execute=chmod,777,/tmp/rtorrent.sock"
xmlrpc_dialect=i8