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 'gtk2' | |
require 'socket' | |
# mikutter_server.rb の "localhost" を "0.0.0.0" に変えると別のマシンからもアクセスできるよん | |
# ユーザ設定の読み込み | |
CONFIG = "#{ENV['HOME']}/.mikutterworldrc" | |
VALID_CONFIG = ['host', 'port', 'footer'] |
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
Plugin.create :omepuku do | |
on_appear do |ms| | |
ms.each do |m| | |
if m.message.to_s =~ /ぷくぷく https?:\/\/\S+ / | |
msg = m.message | |
if msg.retweet? | |
msg = msg.retweet_source(true) | |
end | |
Service.primary.post :message => "@#{msg.user.to_s} おめぷく!", :replyto => msg | |
msg.retweet |
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
Plugin.create :fav2sts do | |
on_boot do | |
if not UserConfig[:fav2sts_ignore] | |
UserConfig[:fav2sts_ignore] = [] | |
end | |
end | |
on_appear do |ms| | |
ms.each do |m| |
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
Plugin.create :automikumiku do | |
on_posted do |s,ms| | |
ms.each do |m| | |
if m.message.to_s == "みくっ" | |
Thread.new do | |
5.times do |x| | |
s.post :message => "#{"みく" * (x+2)}" | |
sleep 1 | |
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
# -*- coding: utf-8 -*- | |
Plugin.create :teokuremagic do | |
on_update do |s, ms| | |
ms.each do |m| | |
if m.message.user == Service.primary.user and (m.message.to_s =~ /ておくれ/) != nil | |
Thread.new do | |
10.times do |x| | |
Service.primary.post :message => "ておくれ#{' ' * (x+1)}" | |
sleep(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
# egrep -i 'exception|error|warn' /var/log/cloud/management/management-server.log | |
2012-07-10 10:40:48,825 INFO [xen.resource.XenServerConnectionPool] (main:null) XenServer Connection Pool Configs: manage.xenserver.pool.master=true; sleep.interval.on.error=10000 | |
2012-07-10 10:40:49,474 WARN [cloud.configuration.ConfigurationManagerImpl] (main:null) Management network CIDR is not configured originally. Set it default to 10.10.0.0/16 | |
2012-07-10 10:40:52,666 WARN [cloud.cluster.ClusterManagerImpl] (Cluster-Notification-1:null) Notifying management server join event took 249 ms | |
2012-07-10 13:07:03,232 ERROR [cloud.resource.ServerResourceBase] (catalina-exec-17:null) Nics are not configured! | |
2012-07-10 13:07:04,060 WARN [agent.manager.AgentManagerImpl] (catalina-exec-17:null) Resource [Host:2] is unreachable: Host 2: Host is not in the right state: Connecting | |
2012-07-10 13:29:56,666 WARN [cloud.vm.VirtualMachineManagerImpl] (DirectAgent-7:null) Cleanup failed due to Can not ping System vm v-2-VMdue to:Timeout |
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 :gray_protected_users do | |
UserConfig[:protected_users_background_color] ||= [0xcccc,0xcccc,0xcccc] | |
filter_message_background_color do | mp, array | | |
if mp.to_message.user[:protected] == true | |
array = UserConfig[:protected_users_background_color] | |
end | |
[mp, array] | |
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/sh | |
## set default display (e.g. LVDS1, VGA1) | |
DEFAULT_DISPLAY="LVDS1" | |
## set your default display resolution | |
DEFAULT_DISPLAY_RESOLUTION="1366x768" | |
## set default port for alternative display | |
DEFAULT_ALTERNATIVE_DISPLAY_PORT="VGA1" |
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
;;-*- Emacs-Lisp -*- | |
(require 'font-lock) | |
(defun mio-mode() | |
;; "Mio Mode" | |
(interactive) | |
(kill-all-local-variables) | |
(setq mode-name "Mio") |
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
ふぁぼろ/ファボレグラフィティ | |
としぁがツイートするずっとずっと前にはもう | |
ふぁぼ數60万は既に超えたっていうのに | |
みんながふぁぼり続けてる 限定の君のTLはふぁぼられ仕様 | |
それって僕のよりはやく増えるって本当かい?ただ壊れてる | |
画面を覆う膨大なふぁぼられ通知には |