View reddit-wallpaper.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Uses the Reddit API to get the top wallpaper from a specified subreddit. | |
""" | |
import urllib.request | |
import json | |
import subprocess | |
import shutil |
View syscalls.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"num": 0, | |
"name": "sys_read", | |
"params": [ | |
[ | |
"unsigned int", | |
"fd" | |
], | |
[ |
View stremio.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
pkgs ? import <nixpkgs> {}, | |
}: | |
with pkgs; | |
with builtins; | |
let | |
serverJS = fetchurl { | |
url = "https://s3-eu-west-1.amazonaws.com/stremio-artifacts/four/master/server.js"; |
View pulsetest.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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: |
View joystick.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author: Jason White | |
* | |
* Description: | |
* Reads joystick/gamepad events and displays them. | |
* | |
* Compile: | |
* gcc joystick.c -o joystick | |
* | |
* Run: |
View filemonitor.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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> |
View desktopogra.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
View vlcopen.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |