Skip to content

Instantly share code, notes, and snippets.

🌳
Napping under a binary tree.

Jason White jasonwhite

🌳
Napping under a binary tree.
Block or report user

Report or block jasonwhite

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jasonwhite
jasonwhite / pulsetest.cc
Created Jan 7, 2015
A simple PulseAudio test program for monitoring volume changes on the default sound sink.
View pulsetest.cc
/**
* Author: Jason White
* License: Public Domain
*
* Description:
* This is a simple test program to hook into PulseAudio volume change
* notifications. It was created for the possibility of having an automatically
* updating volume widget in a tiling window manager status bar.
*
* Compiling:
@jasonwhite
jasonwhite / joystick.c
Last active Jan 16, 2020
Reads joystick/gamepad events on Linux and displays them.
View joystick.c
/**
* Author: Jason White
*
* Description:
* Reads joystick/gamepad events and displays them.
*
* Compile:
* gcc joystick.c -o joystick
*
* Run:
@jasonwhite
jasonwhite / filemonitor.c
Created Nov 13, 2014
Windows file monitoring implemented in C and D.
View filemonitor.c
/*
* This is a short test program that prints a message when a file is added,
* removed, modified, or moved from any directory below that of the program's
* working directory.
*/
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <tchar.h>
#include <stdint.h>
@jasonwhite
jasonwhite / desktopogra.py
Created Nov 11, 2014
Downloads all wallpapers from the Desktopography exhibitions.
View desktopogra.py
#!/usr/bin/python3
"""
Desktopography provides no way of downloading all of their wallpapers at once.
This script will scrape the Desktopography website and download all of the
wallpapers for the specified resolutions and years. Wallpapers that have already
been downloaded are skipped.
Usage: ./desktopogra.py [DIR]
The wallpapers are saved in the following format:
@jasonwhite
jasonwhite / vlcopen.sh
Last active Dec 25, 2016
Opens a youtube-dl supported video URL in your clipboard in VLC (or another video player).
View vlcopen.sh
#!/bin/bash
# Opens the video on your clipboard and plays it in VLC. I recommend binding
# this to a keyboard shortcut.
#
# This script is based on:
# https://gist.github.com/swarminglogic/0cd2f6d55390243e693b
#
# Usage: vlcopen.sh
#
You can’t perform that action at this time.