Skip to content

Instantly share code, notes, and snippets.

View bburky's full-sized avatar

Blake Burkhart bburky

View GitHub Profile
@bburky
bburky / prototypes.json
Created March 17, 2015 04:51
HashID prototypes to JSON
[
{
"regex": "^[a-f0-9]{4}$",
"modes": [
{
"john": null,
"hashcat": null,
"extended": false,
"name": "CRC-16"
},
@bburky
bburky / whitehats.py
Created May 1, 2015 00:07
Find reddit whitehats
#!/usr/bin/env python3
import asyncio
import aiohttp
import lxml.html
CDX_API_URL = 'http://web.archive.org/cdx/search/cdx'
# This uses an (undocumented?) flag 'id_' to force getting unmodified original files
DOWNLOAD_URL_PATTERN = 'http://web.archive.org/web/{timestamp}id_/{original}'
@bburky
bburky / lanyrd.py
Created December 12, 2015 01:08
Scrape a list of all conference talk PDFs from Lanyrd.com
#!/usr/bin/env python3
'''Scrape a list of all conference talk PDFs from Lanyrd.com
Usage: ./lanyrd.py > talks.json
This script searches Lanyrd for all talks with PDF slides and extracts the data
into nicely formatted JSON.
'''
import sys
@bburky
bburky / MainActivity.java
Created May 1, 2016 17:14
Google CTF 2016 - Little Bobby Application solution
package com.bburky.bobbyapplication_exploit;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
@bburky
bburky / 1-osx-normal.log
Last active May 27, 2016 00:18
kiibohd/controller OSX boot debugging
©SB INIT
CONTROL - pid:0xD, count:0x80034 - bmRequestType:0x80, bRequest:0x6, wValue:0x100, wIndex:0x0, len:0x8 -- 0x1000680 0x80000
desc:0x100
Desc found, 0x1FFFEF3E,0x12,120100020000
setup send 0x1FFFEF3E,0x12 0x1 0x0 0x2 0x0 0x0 0x0 0x40 0x11 0x1C 0x4D 0xB0 0x0 0x1 0x1 0x2 0x3 0x1 ,0x12
CONTROL - pid:0x9, count:0x80064 - PID=IN:0x8
CONTROL - pid:0xD, count:0x80034 - bmRequestType:0x0, bRequest:0x5, wValue:0x1C, wIndex:0x0, len:0x0 -- 0x1C0500 0x0
setup send 0x0,,0x0
CONTROL - pid:0x9, count:0x64 - PID=IN:0xC
set address: 0x1C
@bburky
bburky / coursera.sh
Last active June 30, 2016 17:30
Automatically configure a VM download Coursera courses
#!/bin/bash
# Automatically configure a VM download Coursera courses.
# This script works as a user data file for use with a cloud VM.
# This script will resume downloading if the VM is restarted.
# This script works with Debian jessie (or possibly Ubuntu with systemd).
# You must enroll in each course and accept the Honor of Code of each course
# before you can download them.
@bburky
bburky / Uptown23rd retweeted users.ipynb
Last active November 7, 2018 01:58
Uptown23rd retweeted users
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Function Convert-FromUnixDate ($UnixDate) {
[timezone]::CurrentTimeZone.ToLocalTime(([datetime]'1/1/1970').AddSeconds($UnixDate))
}
function global:SteamLastPlayed()
{
$steamGuid = [Guid]"CB91DFC9-B977-43BF-8E70-55F46E410FAB"
$app = [PlayniteUI.App]::CurrentApp
$steamLibrary = $app.Extensions.LibraryPlugins[$steamGuid].Plugin
# HACK HACK HACK: We want to access the Steam plugin's settings to access the user id
@bburky
bburky / README.md
Last active August 24, 2023 03:09
Get Steam Cover Images Playnite Extension

Get Steam Cover Images Playnite Extension

Replaces the cover image of the selected games with the Steam header image for the game. If the game is not a Steam game, the game's links will be parsed for a Steam store link to guess the game's AppID.

Setting game's covers to an internet URL may be slow to load, so enabling "Asynchronous image loading" in Playnite's settings is suggested.

I recommend first running "Tools" → "Download Metadata" with "Only download metadata for games missing them" unchecked and select only:

  • Cover Image "Offical Store > IGDB"
  • Links "IGDB > Offical Store"
@bburky
bburky / discord.ps1
Last active October 26, 2019 02:37
Import Installed Discord Games Playnite Extension
$discordApplications = Invoke-RestMethod "https://discordapp.com/api/v6/applications"
function InstalledDiscordGames {
# Some reason GetUnistallProgramsList has duplicates, is that normal?
foreach ($program in [Playnite.Common.System.Programs]::GetUnistallProgramsList()) {
if ($program.UninstallString -match "cmd /c start discord:///library/(\d+)/uninstall") {
$id = $matches[1]
$game = [Playnite.SDK.Models.Game]::new($program.DisplayName)
$game.Source = "Discord"
$game.GameId = $id