Skip to content

Instantly share code, notes, and snippets.

enabledSigns:
#- color
#- balance
#- buy
#- sell
#- trade
#- free
#- disposal
#- warp
#- kit
package me.coldguy101.bukkit.FFGessentials;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import org.bukkit.ChatColor;
package net.rayherring;
public class OnlinePlayersSQLConfig
{
OnlinePlayersSQL plugin;
public OnlinePlayersSQLConfig(OnlinePlayersSQL plugin)
{
this.plugin = plugin;
}
package me.blha303;
import java.util.logging.Logger;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
package me.blha303;
import java.io.IOException;
import com.dwarfscraft.config.BungeeConfig;
import com.google.common.eventbus.Subscribe;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.connection.ProxiedPlayer;
@blha303
blha303 / battleship.c
Created March 20, 2013 00:47
battleship.c, modified to work on Linux
/* - Battle Ship - */
/* - By Simplicity - */
#include <stdio.h>
//#include <conio.h>
#include <stdlib.h>
#include <termios.h>
static struct termios old, new;
@blha303
blha303 / spCSVParse.py
Last active October 24, 2020 02:50
Export Spotify playlists to CSV script
#!/usr/bin/env python2
# Spotify URI list to CSV with track information
# by blha303 <[email protected]>
# Licensed under the zlib license:
# Copyright © 2013 Steven Smith
# This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
# Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
# 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
# 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
@blha303
blha303 / checkminidlna.py
Created May 20, 2013 03:48
MiniDLNA status checker
#!/usr/bin/python2.7
import urllib
def getInfo():
audio, video, image = urllib.urlopen("http://localhost:8200").read()[111:-22].split("<br>")
audiod = audio.split(" files: ")
videod = video.split(" files: ")
imaged = image.split(" files: ")
info = {audiod[0]: int(audiod[1]),
videod[0]: int(videod[1]),
@blha303
blha303 / agdq2012get.py
Last active December 18, 2015 00:29
Awesome Games Done Quick 2012-2013 file selector || Usage: agdq2013get.sh <1-129> / agdq2012get.sh <1-109>
import sys
files = {1: "http://archive.org/download/AwesomeGamesDoneQuick2012/AwesomeGamesDoneQuick2012_part001_Psychonauts_HQ.mp4",
2: "http://archive.org/download/AwesomeGamesDoneQuick2012/AwesomeGamesDoneQuick2012_part002_Portal2_HQ.mp4",
3: "http://archive.org/download/AwesomeGamesDoneQuick2012/AwesomeGamesDoneQuick2012_part003_YoshisIsland_HQ.mp4",
4: "http://archive.org/download/AwesomeGamesDoneQuick2012/AwesomeGamesDoneQuick2012_part004_YoshisStory_HQ.mp4",
5: "http://archive.org/download/AwesomeGamesDoneQuick2012/AwesomeGamesDoneQuick2012_part005_DeusExHumanRevolution_HQ.mp4",
6: "http://archive.org/download/AwesomeGamesDoneQuick2012/AwesomeGamesDoneQuick2012_part006_Vanquish_HQ.mp4",
7: "http://archive.org/download/AwesomeGamesDoneQuick2012/AwesomeGamesDoneQuick2012_part007_MetalGearSolidTheTwinSnakes_HQ.mp4",
8: "http://archive.org/download/AwesomeGamesDoneQuick2012/AwesomeGamesDoneQuick2012_part008_ResidentEvil4_HQ.mp4",
@blha303
blha303 / getcovers.sh
Created June 11, 2013 16:56
TV show cover downloader | Uses thetvdb.com's api | Run ./getcovers.sh in your TV show root folder
#!/bin/bash
apikey="APIKEY HERE"
folderlist=`ls -d -- */`
while read p
do
echo "$p"
url=`python /media/audvid/sorted/Videos/TV/getposterurl.py $apikey $p`
cd "$p"