Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Using GitHub

Jason Salaz VxJasonxV

💻
Using GitHub
  • Castle Rock, CO, USA
View GitHub Profile
@VxJasonxV
VxJasonxV / mbz.rb
Last active Apr 29, 2021
ONESEVENTY Releases 51-100
View mbz.rb
require 'wavefile'
include WaveFile
releases = Dir.glob("/Volumes/ONESEVENTY/Singles/*")
releases.each do |r|
tracklist = []
catno, album_artist, album_name = File.basename(r).split(' - ')
tracks = Dir.glob("#{r}/*.wav")
tracks.sort_by! { |f| f.match("Radio Edit") ? 0 : 1 }
tracks.each_with_index do |t, i|
@VxJasonxV
VxJasonxV / make-par.bash
Last active Jan 30, 2021
How to tame a mess of unnamed (and unextension named) files from Usenet, on a Synology NAS. Requires SABnzbd installed.
View make-par.bash
# For every file in a given directory
for x in *
do
if [ "`file $x |cut -d' ' -f 2-`" == "Parity Archive Volume Set" ] # If the file is determined to be a PAR file
then
# Print the filename and file type again as a confirmation
file $x
mv $x ${x}.par2 # Rename it to have a .par2 extension
fi
done
@VxJasonxV
VxJasonxV / mbz.rb
Last active Dec 11, 2020
ONESEVENTY Releases 1-50
View mbz.rb
require 'wavefile'
include WaveFile
releases = Dir.glob("/Volumes/ONESEVENTY/Singles/*")
releases.each do |r|
tracklist = []
catno, album_artist, album_name = File.basename(r).split(' - ')
tracks = Dir.glob("#{r}/*.wav")
tracks.sort_by! { |f| f.match("Radio Edit") ? 0 : 1 }
tracks.each_with_index do |t, i|
@VxJasonxV
VxJasonxV / qrgc.js
Created Mar 1, 2016
jQuery QRCode generator that only works for machines
View qrgc.js
$.ajax({
url: "https://chart.googleapis.com/chart?cht=qr&chs=200x200&chl=" + this.window.location,
context: document.body
}).done(function(data) {
$( this ).append( data );
});
View parse_tree.md

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHUAAAC2CAYAAADneMKmAAALiklEQVR4Xu2dbWxVRRrH/32hLS9tgSywsBXSBgJoVqhAERsDFpC0NhaISl3i+qGQsIhfMEujEKsJqIlm3f2gUbAE0qwQNRZJNcUaFiVCG0qh9SUUsbAlsBQo0IaW21LanTmXe3sutL333Dtzzpy5z5D7pcx5Zp7/b55z58ydZ05MHyugopUCMQRVK56GMwRVP6YEVUOmBJWg6qiAhj7RdypB1VABDV2iSCWoGiqgoUsUqQRVQwU0dIkilaBqqICGLlGkElT1Fbh8Gbh9G4iPB8aPZ79YxKjfZ9E91CZS6+qAF14Afv21X6LkZKC0FHjmmeiCqwXUc+eA9HQvzDfeAB59FPjlF+CVV7x/27ULePFF0fGgrj0toH76KbB6NfDDD8Djj/eL/dNPwMMPA089BXz1FRAXpy4IkT3TAupLLwFffAGcPg2kpgbKw/+vshKorwdGjRIpnbq2tIC6cydQVAQUFgLFxcD06cDw4eqKLrtnWkC9csX7PdrU1C/X0qVAfj6wZAnw4IOyZVTLvhZQuaQ9PcDRo0BVlfdTXd0v9LZtwGuvqSW8zN5oAbW9HRgxwvts6ittbcCRI8CGDd4I5rPhaIlY10Pt6PDOcBcvBrZvv3/8f/458NxzwLFjwNy5MuNDHduuh+rxAPPnA5cuAT/+CEydGijuO+8Ar77qnf1y+NFQXA+VQ9q3D1ixwouLryDNnu2F/NlnwO7dQHY2cOhQ4O1ZZ7haQOWAKiq8jzV87ddc+CPOpk3A2LE6Ywz0TRuo3K3ubuD8ee+C/rBhwIQJ0bPgYMaqFdToicWhPSWoGo4EgkpQNVRAQ5e0itRU9hNNO19eAvoKCwtj2AcFBQUaYtP8O9UE0vA0JSXFALtnzx7s3bsXBw4cYL/eFBqfZcuWRQVgV0bqQCDb+GLv3RLDNib5Tj3wsCUnDpd/ampq/IAX

View gist:1a8fdafd4efdbaa76c3c
javascript: {
var color = null;
var c = $('canvas.sketchpad')[0];
var swidth = 32;
var sheight = 32;
var emojiX = 0;
var emojiY = 0;
function changeColor(newColor) {
View beatport.pl
#!/usr/bin/perl
use warnings;
use strict;
use feature ':5.10';
use Carp qw(croak);
sub strip_non_main_artists
{
View table-list.md
One Two Three

|

  • one
  • two
  • three
    | two | three |
One Two Three
View keybase.md

Keybase proof

I hereby claim:

  • I am VxJasonxV on github.
  • I am vxjasonxv (https://keybase.io/vxjasonxv) on keybase.
  • I have a public key whose fingerprint is A785 914E B2F0 40BC 9271 6590 7200 058C E5BE 5C1D

To claim this, I am signing this object: