Skip to content

Instantly share code, notes, and snippets.

View scramble45's full-sized avatar
💭
🐛💥🔫

Rowan Hamilton scramble45

💭
🐛💥🔫
View GitHub Profile
@scramble45
scramble45 / pipewire_audio_switch.sh
Created October 15, 2022 17:20
Switch between multiple pipewire audio, to be used with hotkey
#!/bin/bash
# Rowan Hamilton 2022
# This is a simple script to change between two audio devices
# additional cases can be added to fit your needs
# Use this with a keyboard hotkey to quickly jump between devices
# Exact names must be used as sinks change on reboot
# can get these names by using: $ pactl get-default-sink
DEFAULT=alsa_output.pci-0000_0d_00.4.analog-stereo
HEADSET=alsa_output.usb-SteelSeries_Arctis_7_-00.analog-stereo
const _ = require('lodash')
, moment = require('moment')
, discord = require('discord.js')
, eshop = require('nintendo-switch-eshop')
;
const bot = new discord.Client()
const clientId =
const token = ''
CVE-2016-2775 bind9-host (remotely exploitable, medium urgency)
CVE-2016-2776 bind9-host (remotely exploitable, high urgency)
CVE-2016-8864 bind9-host (remotely exploitable, medium urgency)
CVE-2016-9131 bind9-host (remotely exploitable, medium urgency)
CVE-2016-9147 bind9-host (remotely exploitable, medium urgency)
CVE-2016-9444 bind9-host (remotely exploitable, medium urgency)
CVE-2017-3135 bind9-host
CVE-2017-3136 bind9-host
CVE-2017-3137 bind9-host
CVE-2017-3138 bind9-host
@scramble45
scramble45 / livestream-pi.sh
Created September 5, 2017 16:08 — forked from daniel-j/livestream-pi.sh
Livestream raspicam to RTMP server with audio (optional, uses an ALSA capture device).
#!/bin/bash
# created by djazz (@daniel_hede)
# Video
width=640
height=360
fps=25
vkbits=128
# Audio
r0r0@debx1:~/Desktop/tmk_keyboard/converter/adb_usb$ make -f Makefile.teensy KEYMAP=m0116
sh: 1: dfu-programmer: not found
sh: 1: dfu-programmer: not found
-------- begin --------
avr-gcc (GCC) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#include "keymap_common.h"
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Default Layer: plain keymap
* +-------+
* | power |
* +-------+
* |----------------------------------------------------------. ,---------------.
* |ESC| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backspa| |Ins|Hom|End|Mut|
@scramble45
scramble45 / html5-video-streamer.js
Created September 30, 2016 16:37 — forked from lleo/html5-video-streamer.js
This is an enhancement to Gist#1993068 https://gist.github.com/paolorossi/1993068 . I found what was needed to demonstrate a functioning video stream was a HTML file with a <video> tag pointing to the streamer.
#!/usr/bin/env node
/*
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js
* Modified from https://gist.github.com/paolorossi/1993068
*/
var http = require('http')
, fs = require('fs')
, util = require('util')
@scramble45
scramble45 / basic_express_auth.js
Created September 28, 2016 18:43
Basic Auth Middleware for Express 4x
// basic auth
app.use(function(req, res, next) {
var auth;
// check whether an autorization header was send
if (req.headers.authorization) {
// only accepting basic auth, so:
// * cut the starting "Basic " from the header
// * decode the base64 encoded username:password
// * split the string at the colon