Skip to content

Instantly share code, notes, and snippets.

@cowboy
cowboy / gyazo.php
Created October 6, 2009 21:30
PHP upload for Gyazo
<?PHP
/*
* PHP upload for Gyazo - v1.2.1 - 3/13/2011
* http://benalman.com/news/2009/10/gyazo-on-your-own-server/
*
* Copyright (c) 2011 "Cowboy" Ben Alman
* Licensed under the MIT license
* http://benalman.com/about/license/
*/
@tnaka
tnaka / 1.README.mkd
Created May 23, 2010 12:46 — forked from naoto/1.README.mkd
TwitterIrcGateway で自分と同じ ScreenName を持つ tweet の BroadcastUpdate を中止する DLR

他クライアントからのtweetが全てのチャンネルに表示されて困っている人向け。 ドロップされるべきtweetもチャンネル#Twitterには表示するようにした。 UserStream使ってる人で、topicをtweetにしている場合、topicの更新が二度になってしまうかも。

TwitterIRCGateway

  1. Twitter に UserStream 機能が搭載されたことにより TwitterIRCGateway にも UserStream AddIn が作られました. 2. しかし,現状では BroadcastUpdate を false にしてもすべてのチャンネルにエコーされてしまいます.
@saiten
saiten / rec_radiko.sh
Last active December 2, 2021 05:57
簡易radiko録音ツール。要swftools
#!/bin/sh
playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf
cookiefile=./cookie.txt
playerfile=./player.swf
keyfile=./authkey.png
if [ $# -eq 1 ]; then
channel=$1
output=./$1.flv
@zonuexe
zonuexe / hello.h_hiro
Created June 9, 2011 03:25
プログラミング言語 H.Hiro
もみもみもみもみもみもみもみもみもみひろえっちもみもみもみもみもみ
もみもみもみえっちもみもみもみもみもみもみもみもみもみもみもみ
えっちもみもみもみもみもみ/////////導線ヤリキレナイえっち火暴えっち
もみもみ火暴もみもみもみもみもみもみもみ火暴火暴もみもみもみ火暴
えっち導線火暴導線導線導線導線導線導線導線導線導線導線導線導線
火暴///もみもみもみもみもみもみもみもみ火暴導線導線導線導線導線
導線導線導線火暴もみもみもみ火暴導線導線導線導線導線導線火暴導線
導線導線導線導線導線導線導線火暴えっちもみ火暴
@bepcyc
bepcyc / apt.conf
Created January 19, 2012 15:02
Proxy for apt in Debian/Ubuntu
#define in apt.conf
Acquire {
Retries "0";
HTTP {
Proxy "http://username:password@proxy.mystarhub.com.sg:8080";
};
};
@nicerobot
nicerobot / README.md
Last active June 18, 2024 19:46
Mac OS X uninstall script for packaged install of node.js from https://stackoverflow.com/a/9287292/23056

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
@TakahikoKawasaki
TakahikoKawasaki / sinatra+thin+ssl.rb
Last active October 19, 2023 14:38
Sinatra + Thin + SSL
#!/usr/bin/env ruby
#
# This code snippet shows how to enable SSL in Sinatra+Thin.
#
require 'sinatra'
require 'thin'
class MyThinBackend < ::Thin::Backends::TcpServer
def initialize(host, port, options)
@floehopper
floehopper / install.md
Last active May 30, 2024 12:53
Install rtl-sdr on Raspian on Raspberry Pi
jamesmead@floehopper.local:~$ sudo dd bs=1m if=/Users/jamesmead/Downloads/2015-02-16-raspbian-wheezy.img of=/dev/disk2
pi@raspberrypi ~ $ sudo raspi-config
# Choose option 1 to "Expand Filesystem" - Ensures that all of the SD card storage is available to the OS
# Choose Finish & reboot

pi@raspberrypi ~ $ sudo apt-get update
@fatum12
fatum12 / ttc2ttf.pe
Last active May 2, 2024 02:59
Unpack .ttc and .dfont to .ttf using FontForge
#!/usr/local/bin/fontforge
# Usage: fontforge -script ttc2ttf.pe /path/to/font.ttc
fonts = FontsInFile($1)
n = SizeOf(fonts)
i = 0
while (i < n)
Open($1 + "(" + fonts[i] + ")", 1)
index = ToString(i + 1)
@moraine8
moraine8 / rec_radiko.sh
Last active November 11, 2021 02:24 — forked from matchy256/rec_radiko.sh
簡易Radiko録音スクリプト
#!/bin/bash
LANG=ja_JP.utf8
pid=$$
date=`date '+%Y%m%d'`
outdir="."
if [ $# -le 1 ]; then