Skip to content

Instantly share code, notes, and snippets.

View VxJasonxV's full-sized avatar
💻
Using GitHub

Jason Salaz VxJasonxV

💻
Using GitHub
  • Castle Rock, CO, USA
View GitHub Profile
@VxJasonxV
VxJasonxV / mbz.rb
Last active April 29, 2021 18:51
ONESEVENTY Releases 51-100
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 January 30, 2021 23:18
How to tame a mess of unnamed (and unextension named) files from Usenet, on a Synology NAS. Requires SABnzbd installed.
# 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 December 11, 2020 21:46
ONESEVENTY Releases 1-50
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 March 1, 2016 05:01
jQuery QRCode generator that only works for machines
$.ajax({
url: "https://chart.googleapis.com/chart?cht=qr&chs=200x200&chl=" + this.window.location,
context: document.body
}).done(function(data) {
$( this ).append( data );
});
We couldn’t find that file to show.
javascript: {
var color = null;
var c = $('canvas.sketchpad')[0];
var swidth = 32;
var sheight = 32;
var emojiX = 0;
var emojiY = 0;
function changeColor(newColor) {
#!/usr/bin/perl
use warnings;
use strict;
use feature ':5.10';
use Carp qw(croak);
sub strip_non_main_artists
{
@VxJasonxV
VxJasonxV / 2580.session
Created June 30, 2014 07:36
Serato Session File
One Two Three

|

  • one
  • two
  • three
    | two | three |
One Two Three
@VxJasonxV
VxJasonxV / keybase.md
Last active August 29, 2015 13:59
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: