This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding: utf-8 -*- | |
require 'gtk2' | |
Plugin.create :colorize_textview_base do | |
UserConfig[:normal_basecolor] ||= [0xffff, 0xffff, 0xffff] | |
UserConfig[:focused_basecolor] ||= [0xffff, 0xffff, 0xbbbb] | |
settings "投稿ボックスの背景色" do | |
settings "色の設定" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
Plugin.create :mikutter_shout do | |
@candidates = "あうえおぁぅぇぉw!".split("") | |
command(:shout, | |
name: '叫ぶ', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :postbox) do |opt| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $USER != "root" ]; then | |
echo "root permission required" | |
exit 1 | |
fi | |
if [ $# -eq 0 ]; then | |
echo "usage: $0 <fqdn> [<hosts_file>]" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
にゃーんにゃーんにゃーんにゃんぱすーにゃーんにゃーんにゃんぱすーにゃーんにゃーんにゃーん | |
にゃんぱすー | |
にゃーんにゃーんにゃーんにゃーんにゃーんにゃんぱすーにゃんぱすーにゃーんにゃーんにゃんぱすーにゃーんにゃんぱすー | |
にゃんぱすー | |
にゃーんにゃーんにゃーんにゃーんにゃーんにゃんぱすーにゃんぱすーにゃーんにゃんぱすーにゃんぱすーにゃーんにゃーん | |
にゃんぱすー | |
にゃーんにゃーんにゃーんにゃーんにゃーんにゃんぱすーにゃんぱすーにゃーんにゃんぱすーにゃんぱすーにゃーんにゃーん | |
にゃんぱすー | |
にゃーんにゃーんにゃーんにゃーんにゃーんにゃんぱすーにゃんぱすーにゃーんにゃんぱすーにゃんぱすーにゃんぱすーにゃんぱすー | |
にゃんぱすー |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
class Message | |
def self.appear(message) # :nodoc: | |
message[:message] = message[:message].gsub(/#{Service.primary.user.to_s}/i, Service.primary.user.to_s) | |
@@appear_queue.push(message) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#-*- coding: utf-8 -*- | |
# 画面の左上隅のマウスカーソルを合わせた状態で | |
# $ xdotool getmouselocation | |
# を実行し,座標を取得して設定する | |
SCREEN_LEFT_UPPER_CORNER_X=395 | |
SCREEN_LEFT_UPPER_CORNER_Y=185 | |
function click { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Gradus Ad Parnassum by Debussy (with beep command) | |
if [ $USER != 'root' ]; then | |
echo "beep command requires root permission!" | |
exit 1 | |
fi | |
modprobe pcspkr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
#-*- coding: utf-8 -*- | |
require 'securerandom' | |
require 'socket' | |
require 'zlib' | |
module Signaling | |
def debug(message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'gtk2' | |
module Gtk | |
class Foo < Gtk::TextView | |
def update_font(str) | |
self.modify_font(Pango::FontDescription.new(str)) | |
end | |
end |