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 ruby | |
# Sometimes, you realize you have really rubbish songs in your library for some reason. | |
# This script allows you to get rid of them just by hitting ./mpd-delete-current-song.rb on your command line. | |
# It will backup the file to TRASH, then remove it from MPD's library and finally skip to next song. | |
# https://gist.github.com/1341895 | |
require 'socket' | |
require 'fileutils' |
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 | |
server="/mnt/charles/farmstore/content/${1}s" | |
url="http://farmpolice.com/content/${1}s" | |
imageEncoding=".png" | |
videoEncoding=".webm" | |
imagetake="/usr/share/sounds/freedesktop/stereo/screen-capture.oga" | |
videotake="/usr/share/sounds/freedesktop/stereo/complete.oga" | |
name=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 8) | |
pidFile="/tmp/seen_record.pid" |
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 | |
# Usage: ./mtgCardScraper.sh [search terms] | |
# Example: ./mtgCardScraper.sh "zombie" "angel" | |
# Searching for zombie.. | |
# Grabbed Zombie Apocalypse.jpg | |
# Searching for angel.. | |
# Grabbed Angel of Despair.jpg | |
# Please use responsibly. |
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 | |
if [ -d "~/Pictures" ]; then | |
mkdir -p ~/Pictures | |
fi | |
TIME=$(date +"%s") | |
maim -s --opengl --shader=hippie -n ~/Pictures/${TIME}.png | |
if [ $? == 1 ]; then | |
if [ -f /usr/share/sounds/freedesktop/stereo/dialog-error.oga ]; then | |
cvlc /usr/share/sounds/freedesktop/stereo/dialog-error.oga -q --play-and-exit | |
fi |
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
{ | |
"reagents": [ | |
{ | |
"id": "booster_enzyme", | |
"mix_phrase": "The solution shows signs of life, forming shapes!", | |
"name": "Booster Enzyme", | |
"required_reagents": { | |
"carbon": 1, | |
"diethylamine": 1, | |
"ethanol": 1, |
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
## | |
# @file catme.py | |
# @brief Quickly bruteforces a mind-numbing test on catme.org, | |
# # Install | |
# Requires python-selenium and python. | |
# # To Use | |
# Simply run the file through a python interpreter with the first argument being your catme email, | |
# and the second argument being your catme password. (eg. `python catme.py [email protected] myPassword123`) | |
# | |
# @author Dalton "naelstrof" Nell |
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 | |
# This script intercepts specific user selections and replaces them with monitor geometry. | |
# The specific user selection is when they click on the root window, or attempt to select the whole X screen. | |
# Currently there is a bug, clicking and dragging the entire screen will still proc the replacement, | |
# and only screenshot the monitor that the mouse is on after the drag. There's no way around this without | |
# changing slop to indicate when a user clicked or dragged. (Which might be done if people care enough.) | |
# Get a normal selection | |
read -r X Y W H G ID < <(slop -f "%x %y %w %h %g %i") |
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 | |
MONITORS=$(xrandr | grep -o '[0-9]*x[0-9]*[+-][0-9]*[+-][0-9]*') | |
# Get the location of the mouse | |
XMOUSE=$(xdotool getmouselocation | awk -F "[: ]" '{print $2}') | |
YMOUSE=$(xdotool getmouselocation | awk -F "[: ]" '{print $4}') | |
for mon in ${MONITORS}; do | |
# Parse the geometry of the monitor | |
MONW=$(echo ${mon} | awk -F "[x+]" '{print $1}') |
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
// VRChatHelper.cs, a tool to help test your model without launching VRChat. | |
// Made by naelstrof ([email protected]) | |
// Some eye tracking advice to help prevent this tool from yelling at you: https://docs.google.com/document/d/1BvX_OdEilbJ7wEcvd5MRA1g29NGCAp3G3nHGp73t_CQ/edit?usp=sharing | |
#if UNITY_EDITOR | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; |
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
#if UNITY_EDITOR | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Text.RegularExpressions; | |
public class CopyAvatarData : ScriptableWizard { | |
public GameObject from; | |
public GameObject to; |
OlderNewer