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 |
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' | |
w = Gtk::Window.new | |
w.set_size_request(300,200) | |
tv = Gtk::TextView.new | |
tv.modify_font(Pango::FontDescription.new("Sans bold 18")) |
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
--- plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java.orig 2013-09-13 05:57:43.217108879 +0900 | |
+++ plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java 2013-09-13 06:00:49.025120076 +0900 | |
@@ -3091,6 +3091,7 @@ | |
DevicesDef devices = new DevicesDef(); | |
devices.setEmulatorPath(_hypervisorPath); | |
+ devices.setDomainName(vmTO.getName()); | |
SerialDef serial = new SerialDef("pty", null, (short) 0); | |
devices.addDevice(serial); |
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 | |
# package agent script | |
# you can run apt command by other user's permission. | |
set -e | |
PASSWORD_FILE=$HOME/.pa/password | |
USERNAME_FILE=$HOME/.pa/username |
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 -*- | |
# I want to play my music files in random order! | |
# command example: | |
# find . -name '*.ogg' | sort -R | each.rb mplayer -cache 1024 {} | |
# I didn't know the command above can be replaced to... | |
# find . -name '*.ogg' -print0 | sort -z -R | xargs mplayer -cache 1024 |