Skip to content

Instantly share code, notes, and snippets.

View peppy's full-sized avatar

Dean Herbert peppy

View GitHub Profile
@peppy
peppy / mysql_osu.py
Last active August 29, 2015 13:55
datadog check for osu!-specific replication. uses scores table as a reference point and accounts for SQL_DELAY.
# stdlib
import subprocess
import os
import sys
import re
import traceback
# project
from checks import AgentCheck
from util import Platform
@peppy
peppy / run-on-all.sh
Created March 25, 2014 02:29
Run a command on all servers listed (space separated)
#!/bin/bash
SERVERS=""
for host in $SERVERS
do
echo -e "------------------------------------------------------"
echo -e "Running on \x1B[96m$host\x1B[0m"
echo -e "------------------------------------------------------"
ssh $host $@
done
@peppy
peppy / LICENCE.txt
Created April 11, 2014 06:17
osu! Skinnable Assets Licence
All osu! graphic and other game assets are copyright ppy Pty Ltd.
You are granted permission to use the elements contained within this archive as a template for creating your own skins. You can modify these in any way you see fit. Please do not include the resources if you haven't modified them; the defaults will automatically be used in this case.
You are NOT permitted to use these graphics outside of skins and/or beatmaps. This includes using them on other websites, games, products etc.
If you would like to use the resources outside of the scope provided above, please contact me at pe@ppy.sh
using System;
using System.IO;
using System.Text;
using ICSharpCode.SharpZipLib.BZip2;
using Ionic.Zlib;
/* uncomment this to use unsafe version of memcmp */
//#define MEMCMP_UNSAFE
namespace osu_common.Libraries
@peppy
peppy / BSDiffer.cs
Created May 8, 2014 01:09
http://www.daemonology.net/bsdiff/ ported by peppy/echo for osu! (no licence; use as you wish)
using System;
using System.IO;
using System.Text;
using ICSharpCode.SharpZipLib.BZip2;
using Ionic.Zlib;
/* uncomment this to use unsafe version of memcmp */
//#define MEMCMP_UNSAFE
namespace osu_common.Libraries
@loading-size: 140px;
#loading-area {
//display: none;
position: fixed;
width: @loading-size;
height: @loading-size;
margin-left: -@loading-size / 2;
margin-top: -@loading-size / 2;
top: 50%;
{
"auto_match_enabled": false,
"caret_style": "blink",
"color_scheme": "Packages/User/base16-ocean.dark (SL).tmTheme",
"detect_slow_plugins": false,
"dictionary": "Packages/Language - English/en_GB.dic",
"drag_text": false,
"draw_indent_guides": false,
"draw_white_space": "selection",
"file_exclude_patterns":
2014/05/29 03:23:12 Unsolicited response received on idle HTTP channel starting with "H"; err=<nil>
2014/05/29 03:23:16 Unsolicited response received on idle HTTP channel starting with "H"; err=<nil>
2014/05/29 03:23:26 Unsolicited response received on idle HTTP channel starting with "H"; err=<nil>
2014/05/29 03:23:53 Unsolicited response received on idle HTTP channel starting with "H"; err=<nil>
2014/05/29 03:23:53 Unsolicited response received on idle HTTP channel starting with "H"; err=<nil>
2014/05/29 03:23:53 Unsolicited response received on idle HTTP channel starting with "H"; err=<nil>
2014/05/29 03:23:53 Unsolicited response received on idle HTTP channel starting with "H"; err=<nil>
2014/05/29 03:23:53 Unsolicited response received on idle HTTP channel starting with "H"; err=<nil>
2014/05/29 03:23:55 Unsolicited response received on idle HTTP channel starting with "H"; err=<nil>
2014/05/29 03:23:56 Unsolicited response received on idle HTTP channel starting with "H"; err=<nil>
#include <SPI.h>
/* Pro Micro Test Code
by: Nathan Seidle
modified by: Jim Lindblom
SparkFun Electronics
date: January 20, 2012
license: Public Domain - please use this code however you'd like.
It's provided as a learning tool.
#include <SPI.h>
#define LED_COUNT 160
#define CSPIN 9
#define PACKET_SIZE (LED_COUNT * 3)
uint8_t buffer[PACKET_SIZE];
void setup()
{