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
Fags, Mags And Bags - S01 - E01 - Raising Keenan.mp3: | |
title: FMB S01 E01 Raising Keenan | |
date: 8 dec 2012 | |
synopsis: Fags, mags and bags' first episode! | |
tags: | |
- fags | |
- mags | |
- bags | |
two.mp3: | |
title: Episode Two |
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 | |
require 'yaml' | |
require 'pp' | |
require 'erubis' | |
require 'mp3info' | |
require 'aws/s3' | |
require 'digest' | |
def reload_config |
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
# EDIT: this can actually be done more simply like this: | |
Dir.foreach("path/to/directory/**/*") do |item| | |
next if File.directory? item | |
# Do whatever with item now | |
end | |
# Define this somewhere | |
def each_file(dir = ".", &block) | |
Dir.foreach(dir) do |item| |
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
function separateLines (input, chars) { | |
var lines = []; | |
while (input.length > chars) { | |
var text = input.substr(0, chars); | |
var i = text.lastIndexOf(" "); | |
if (i == -1) { | |
i = chars - 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
/* Dropbox Screenshot Tool Thingy | |
* ============================== | |
* David Robertson - http://davidr.me/ | |
* | |
* Dependencies: | |
* - ImageMagick | |
* - Magick++ | |
* - xclip (on linux - on a mac, be sure to change the COPY part of the settings below) | |
* - xdotool (required for taking screenshots of the active window only) | |
* - notify-send (for on-screen notification that a screenshot has just been taken) |
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
package me.davidr.fixadventure; | |
import org.bukkit.GameMode; | |
import org.bukkit.plugin.java.JavaPlugin; | |
import org.bukkit.event.Listener; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.EventPriority; | |
import org.bukkit.event.block.BlockBreakEvent; | |
import org.bukkit.event.block.BlockPlaceEvent; | |
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 __STDC_VERSION__ < 199001L | |
#error DEAR MARKER: This program must be compiled in C99 mode - see instructions in report (-std=c99) | |
#endif |
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
'NATASHA'S (TASHOLOGY) MYSQL SAVING SYSTEM! | |
'CHANGE THIS TO YOUR SETTINGS | |
Dim conn As String = "Server=epsilon.davidr.me;Database=tashdb;Uid=tashdb;Pwd=nLEYmTSYEQZzN483;" | |
Dim connect As MySqlConnection | |
Try | |
'Create the connector | |
connect = New MySqlConnection(conn) | |
'Open the database |
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
// Stealify | |
// | |
// A wee HTTP proxy to steal MP3 files from https://play.spotify.com | |
// By David Robertson | |
console.log("Stealify started! Instructions:"); | |
console.log("1. Set http://localhost:8080 as your HTTP proxy"); | |
console.log("2. Go to http://play.spotify.com in your browser and start playing music"); | |
console.log("3. Wonder at all the stolen music appearing in this directory! Woo!"); | |
console.log("Remember to reverse the HTTP proxy settings when you're done :P\n"); |
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 file is automatically compiled by Webpack, along with any other files | |
// present in this directory. You're encouraged to place your actual application logic in | |
// a relevant structure within app/javascript and only use these pack files to reference | |
// that code so it'll be compiled. | |
require("@rails/ujs").start() | |
require("turbolinks").start() | |
require("@rails/activestorage").start() | |
require("channels") |