Skip to content

Instantly share code, notes, and snippets.

@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();
@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
@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"],
@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]
#!/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
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;
package me.masterejay.gorobo;
import com.darkprograms.speech.microphone.MicrophoneAnalyzer;
import com.darkprograms.speech.recognizer.GoogleResponse;
import com.darkprograms.speech.recognizer.Recognizer;
import javax.sound.sampled.AudioFileFormat;
import java.io.File;
/**
@kyledrake
kyledrake / ferengi-plan.txt
Last active June 14, 2025 22:48
How to throttle the FCC to dial up modem speeds on your website using Nginx
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {
@pklaus
pklaus / ddnsserver.py
Last active June 16, 2025 03:04 — forked from andreif/Simple DNS server (UDP and TCP) in Python using dnslib.py
Simple DNS server (UDP and TCP) in Python using dnslib.py
#!/usr/bin/env python
"""
LICENSE http://www.apache.org/licenses/LICENSE-2.0
"""
import argparse
import datetime
import sys
import time
import threading
@glamrock
glamrock / torrc_options
Created August 25, 2014 02:17
All valid torrc options
yahtzee@fagballs:~# tor --list-torrc-options
Aug 24 22:16:31.701 [notice] Tor v0.2.4.20 (git-0d50b03673670de6) running on Linux with Libevent 2.0.21-stable and OpenSSL 1.0.1f.
Aug 24 22:16:31.701 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
AccountingMax
AccountingStart
Address
AllowDotExit
AllowInvalidNodes
AllowNonRFC953Hostnames
AllowSingleHopCircuits