Skip to content

Instantly share code, notes, and snippets.

View bored-engineer's full-sized avatar
🔥
This is fine.

Luke Young bored-engineer

🔥
This is fine.
View GitHub Profile
@bored-engineer
bored-engineer / te2st.md
Created August 23, 2016 03:55
Hello World

Hello Worlddsf

@bored-engineer
bored-engineer / bugcrowd.py
Created February 3, 2016 18:58
Parse bugcrowd submissions to a csv
import requests
import sys
import json
from bs4 import BeautifulSoup
# Create a session
s = requests.Session()
# Establish a session
sys.stderr.write("Getting authenticity_token...\n")
@bored-engineer
bored-engineer / getSongs.js
Created September 17, 2014 19:13
Grabs the list of all thumbed up songs on Pandora.
var results = {};
var stations = prompt("Stations:", "").split(",");
function requestThumbs(i, index) {
var id = stations[i];
if (!id) { console.log(results); return; }
console.log(id, index);
$.get(
"http://www.pandora.com/content/station_track_thumbs?stationId=" + id + "&page=true&posFeedbackStartIndex=" + index + "&posSortAsc=false&posSortBy=date&cachebuster%3A=" + new Date().getTime(),
function(data) {
var page = $("<div>" + data + "</div>");
@bored-engineer
bored-engineer / 0-url.txt
Last active December 24, 2015 19:29
Method auth.partnerLogin
/services/json/?method=auth.partnerLogin
"+alert(1)+"
@bored-engineer
bored-engineer / getQuote.js
Last active December 23, 2015 01:59
Pick a random quote relating to programming, and send to stdout.
// Create array of possible quotes
var quotes = [
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies. — C.A.R. Hoare, The 1980 ACM Turing Award Lecture"
];
// Get a random quote index
var i = Math.floor(Math.random()*quotes.length);
// Print a random quote
console.log(quotes[i]);
@bored-engineer
bored-engineer / getCountries.js
Created September 8, 2013 18:13
Download the different country codes from the app store.
// Load deps
var request = require("request");
var jsdom = require("jsdom");
// Request the country change page
request({
url: "https://itunes.apple.com/WebObjects/MZStore.woa/wa/countrySelectorPage",
headers: {
"User-Agent": "iTunes/11.0.0 node-appstore"
}
mask_in = open('masked_key.png','rb')
key = bytearray(mask_in.read(983040-64))
mask= bytearray(mask_in.read(64))
for x in range(983040-64):
key[x] ^= mask[x%64]
key_out = open('unmasked_key.png','wb')
key_out.write(key)
key_out.close()
<?php
$im = imagecreatefrompng("data.png");
$binary = "";
for($i=0; $i<imagesx($im); $i++){
$rgb = imagecolorat($im, $i, 0);
$r = ($rgb >> 16) & 0xFF;
$g = ($rgb >> 8) & 0xFF;
$b = $rgb & 0xFF;
@bored-engineer
bored-engineer / Tree
Last active December 17, 2015 11:49
.
├── bureaubot
│   ├── Desktop
│   ├── Documents
│   │   └── do_not_show_to_irs.txt
│   ├── Music
│   │   └── office_space.theme.mp3
│   ├── Pictures
│   └── Public
│   └── taxes.txt