Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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;
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;
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 net.rayherring;
public class OnlinePlayersSQLConfig
{
OnlinePlayersSQL plugin;
public OnlinePlayersSQLConfig(OnlinePlayersSQL plugin)
{
this.plugin = plugin;
}
package me.coldguy101.bukkit.FFGessentials;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import org.bukkit.ChatColor;
enabledSigns:
#- color
#- balance
#- buy
#- sell
#- trade
#- free
#- disposal
#- warp
#- kit
@blha303
blha303 / Groups.yml
Last active December 10, 2015 18:18 — forked from anonymous/Groups.yml
# Group inheritance
#
# Any inherited groups prefixed with a g: are global groups
# and are inherited from the GlobalGroups.yml.
#
# Groups without the g: prefix are groups local to this world
# and are defined in the this groups.yml file.
#
# Local group inheritances define your promotion tree when using 'manpromote/mandemote'
@blha303
blha303 / Game.java
Created October 13, 2012 05:46
TheCherno Rain
package com.thecherno.rain;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferStrategy;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferInt;