Skip to content

Instantly share code, notes, and snippets.

@retlet
retlet / hosts_switch.plist
Created March 23, 2013 10:57
Macで無線APを監視してhostsを書き換え
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>hosts_switch</string>
<key>LingonWhat</key>
<string>sh /Users/retlet/Dropbox/settings/script/hosts_switch/hosts_switch.sh</string>
<key>ProgramArguments</key>
<array>
@retlet
retlet / gist:4197957
Created December 3, 2012 20:55
tumblr jk scroll fix
// ==UserScript==
// @id www.tumblr.com-598415df-eaaf-8f43-95e3-7b01a0ea17dc@scriptish
// @name tumblr jk scroll fix
// @version 1.0
// @namespace
// @author
// @description http://dara-j.asablo.jp/blog/2012/10/17/6605357
// @include http://www.tumblr.com/*
// @run-at document-end
// ==/UserScript==
@retlet
retlet / amazon_short_url.user.js
Created March 26, 2012 21:27
amazonのURLを短縮するgreasemonkeyスクリプト cf.http://d.hatena.ne.jp/Cherenkov/20080907/p1
// ==UserScript==
// @name amazon_short_url
// @namespace amazon_short_url
// @include http://www.amazon.co.jp/*
// ==/UserScript==
(function(){
var asin = document.getElementById('ASIN');
@retlet
retlet / vicutake_nonAnim.css
Created February 24, 2012 08:19
vicutakeのアニメーションをオフる
.line:last-child,
.event[type=join],
.event[type=part],
.event[type=quit],
.event[type=nick],
.line[highlight=true] .sender {
-webkit-animation-name: nya-n !important;
}
@retlet
retlet / gist:1148701
Created August 16, 2011 09:05
tiarra + tig + LimeChat for Mac(showTwitterAvatar) でtigのチャンネル以外でアイコンを表示しない
html:not([channelname$="@tig"]) .avatar {
display: none !important;
}
@retlet
retlet / QB.js
Created June 22, 2011 13:37 — forked from anekos/QB.js
( ◕ ‿‿ ◕ )
/* NEW BSD LICENSE {{{
Copyright (c) 2011, anekos.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
# bundle exec ruby fig.rb
/home/retlet/fig/lib/facebook_irc_gateway/server.rb:19: warning: already initialized constant VERIFY_PEER
(in /home/retlet/fig)
== CreateSettings: migrating =================================================
-- create_table(:settings)
-> 0.0016s
== CreateSettings: migrated (0.0017s) ========================================
== CreateDuplications: migrating =============================================
-- create_table(:duplications)
# bundle exec ruby fig.rb
/home/retlet/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-1.6.0/lib/active_record/support/clean_logger.rb:5:in `remove_const': constant Logger::Format not defined (NameError)
from /home/retlet/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-1.6.0/lib/active_record/support/clean_logger.rb:5
from /home/retlet/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-1.6.0/lib/active_record.rb:28:in `require'
from /home/retlet/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-1.6.0/lib/active_record.rb:28
from ./lib/facebook_irc_gateway/server.rb:10:in `require'
from ./lib/facebook_irc_gateway/server.rb:10
from ./lib/facebook_irc_gateway.rb:1:in `require'
from ./lib/facebook_irc_gateway.rb:1
from fig.rb:13:in `require'
$ sudo gem install sqlite3-ruby
audit_log_user_command(): Connection refused
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... no
@retlet
retlet / pixiv_staccfeed_illust_larger.user.js
Created April 22, 2011 11:31
ぴくしぶすたっくふぃーどのいらすとをおおきくするよ
// ==UserScript==
// @name pixiv staccfeed illust larger
// @version 0.2
// @author retlet
// @namespace http://retlet.net/
// @description nya-n.
// @include http://www.pixiv.net/stacc/*
// ==/UserScript==
(function(){