Skip to content

Instantly share code, notes, and snippets.

package me.masterejay.gorobo;
import com.darkprograms.speech.microphone.Microphone;
import com.darkprograms.speech.microphone.MicrophoneAnalyzer;
import com.darkprograms.speech.recognizer.GoogleResponse;
import com.darkprograms.speech.recognizer.Recognizer;
import javaFlacEncoder.FLACFileWriter;
import javax.sound.sampled.AudioFileFormat;
import java.io.File;
#!/usr/bin/python
# Connects to servers vulnerable to CVE-2014-0160 and looks for cookies, specifically user sessions.
# Michael Davis ([email protected])
# Based almost entirely on the quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import select
@pascalduez
pascalduez / SassMeister-input.scss
Last active February 15, 2025 07:07
Some Sass string functions: capitalize, ucwords, camelize, ...
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
// Capitalize string
// --------------------------------------------------------------------------------
// @param [string] $string
// --------------------------------------------------------------------------------
// @return [string]
@ayanamist
ayanamist / config.json
Last active January 6, 2017 22:58
Proxy Pac Server
{
"local": "127.0.0.1:8124",
"remote": [
{
"proxy": "direct",
"rules": [
["10.0.0.0", "255.0.0.0"],
["100.64.0.0", "255.192.0.0"],
["127.0.0.0", "255.0.0.0"],
["172.16.0.0", "255.240.0.0"],
@sk89q
sk89q / lastfm_scrobbles_to_spotify.py
Created October 26, 2013 19:44
Fetches the recent tracks of a last.fm user within a date range and converts it to a list of Spotify URLs (to be copied directly into the Spotify program) sorted descending by play count
#!/usr/bin/env python2.7
import requests
import datetime
import calendar
import time
import json
from pprint import pprint
@isitgeorge
isitgeorge / javascript_timer.html
Last active December 24, 2015 20:48
more efficient
<script>
var seconds = 00;
var minutes = 00;
var hours = 00;
function count(str) {
str = parseInt(str);
str = str + 1;
str = str.toString();
<tutorial>
<stage title="Capture the Wool">
<message>
<line>`7This map is a `b`lCapture the Wool `r`8(`bCTW`8) `7map.</line>
<line>`7The objective is to grab the wool on the other team's side and return it to your base.</line>
</message>
<teleport>
<point yaw="180" pitch="45">85,45,103</point>
</teleport>
</stage>
@azenla
azenla / TPSigns.java
Last active December 21, 2015 20:29
New Annotation Based Plugins
package com.github.kaendfinger.tpsigns;
import org.minetweak.plugins.Plugin;
import org.minetweak.plugins.PluginInfo;
import org.minetweak.plugins.event.PluginEnableEvent;
import org.minetweak.util.TweakLogger;
@Plugin
public class TPSigns {
@Plugin.Instance
@md-5
md-5 / Rules.md
Created May 6, 2013 06:49
#spigot IRC rules

Please follow these rules at all times. The general rule of thumb is two kicks and a ban. A ban will be at a length determined by md_5, and never be more than a week. If you have any complaints or feel you have been unfairly banned, please message md_5.

  • Keep the chat at a PG-13 level. If you think it might be inappropriate, don't say it.
  • Racism, sexism, bigotry, harassment, threats, etc. are strictly prohibited. Do not use racial slurs, or bigoted remarks. Do not harass or threaten any user or use this channel as a place to coordinate attacks on others.
  • No trolling, flaming, or flame-baiting. Keep discussion civil. Acting like a goof will get you removed.
  • No excessive profanity. Every now and then is fine, but if every other word that comes out of your mouth is profane, that's not ok.
  • Do not flood or spam the channel, abuse bots, or abuse chat color. It is impossible to hold a conversation when the channel is filled with inane chatter. Bots are here to provide information and preform other useful
# Newbie Programmer
def factorial(x)
if x == 0
return 1
else
return x * factorial(x - 1)
end
end
puts factorial(6)
puts factorial(0)