Skip to content

Instantly share code, notes, and snippets.

View Hacksore's full-sized avatar
🚀
shipping

Sean Boult Hacksore

🚀
shipping
View GitHub Profile
{"19760546": [
{
"queue": "RANKED_SOLO_5x5",
"name": "Corki's Fists",
"entries": [{
"leaguePoints": 95,
"isFreshBlood": false,
"isHotStreak": false,
"division": "V",
"isInactive": false,
@Hacksore
Hacksore / expect.sh
Created March 27, 2015 12:44
Set vncpasswd with expect to remove the need for user input. Useful for automation scripts such as provisioning.
#!/usr/bin/expect
set PASS [lindex $argv 0];
spawn vncpasswd
expect "Password: "
send "$PASS\r"
expect "Verify: "
send "$PASS\r"
expect "Would you like to enter a view-only password (y/n)? "
send "n\r"
expect eof
#! /bin/sh
### BEGIN INIT INFO
# Provides: Xvfb
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop Xvfb - X virtual framebuffer.
# Description: Start or stop Xvfb - X virtual framebuffer.
param (
[string]$server = "http://example.com",
[string]$filename = "test.exe",
)
Invoke-WebRequest $server -OutFile %temp%\$filename
@Hacksore
Hacksore / southwest.js
Created December 21, 2016 01:26
Southwest Auto Checkin PoC
var rp = require("request-promise");
var fs = require("fs");
var db = JSON.parse(fs.readFileSync("db.json"));
var jar = rp.jar();
const CONFIG_EMAIL = "<insert email>";
checkIn({"confirmationNumber": "GGEZ69", "firstName": "Joe", "lastName": "Shmoe"});
function checkIn(user){
@Hacksore
Hacksore / place.md
Created April 2, 2017 18:23 — forked from odensc/place.md

r.setup

Relevant properties:

// amount of visitors 
"place_active_visitors": 50149,
// ???
"place_wait_seconds": 0,
// width of the canvas element
@Hacksore
Hacksore / place.md
Last active April 2, 2017 18:28 — forked from odensc/place.md

r.setup

Relevant properties:

// amount of visitors 
"place_active_visitors": 50149,
// ???
"place_wait_seconds": 0,
// width of the canvas element
@Hacksore
Hacksore / test.py
Created October 6, 2018 16:04
python bluetooth metadata with dbus
#!/usr/bin/env python
import time
import signal
import dbus
import dbus.service
import dbus.mainloop.glib
import gobject
import logging
import hashlib
@Hacksore
Hacksore / bluelinky.js
Last active August 2, 2021 20:11
test bluelinky
const express = require("express");
const BlueLinky = require("bluelinky");
const bodyParser = require("body-parser");
const config = {
validation_key: 'something you make',
username: 'username',
password: 'password',
vin: 'vin',
pin: 'pin',
@Hacksore
Hacksore / example.js
Last active March 19, 2020 13:41
bluelinky nodejs
const express = require('express');
const BlueLinky = require('bluelinky');
const bodyParser = require('body-parser');
const config = {
validation_key: 'something you make',
username: 'username',
password: 'password',
region: 'EU',
vin: 'vin',