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 -e | |
echo "This is an easy script to create Gentoo/Linux installation usb stick." | |
echo | |
if [ $# -ne 2 ] | |
then | |
echo "usage: $0 /dev/sdx /path/to/gentoo_install_disk.iso" |
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
#!/home/penguin/mikutter_dbus_console.rb | |
UserConfig[:mumble_basic_font] = 'Sans 10' | |
UserConfig[:mumble_basic_color] = [0, 0, 0] | |
UserConfig[:mumble_reply_font] = 'Sans 8' | |
UserConfig[:mumble_reply_color] = [255*0x66, 255*0x66, 255*0x66] | |
UserConfig[:mumble_basic_left_font] = 'Sans 10' | |
UserConfig[:mumble_basic_left_color] = [0, 0, 0] | |
UserConfig[:mumble_basic_right_font] = 'Sans 10' | |
UserConfig[:mumble_basic_right_color] = [255*0x99, 255*0x99, 255*0x99] |
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 | |
=begin | |
Copyright (c) 2014 Takuma Nakajima | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php | |
=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 | |
# | |
# asetroot.sh | |
# | |
# Copyright (c) 2014 Takuma Nakajima | |
# | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
# |
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 :haishou do | |
filter_gui_postbox_post do |gui_postbox| | |
text = Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text.gsub(/はい/, "拝承") | |
Service.primary.post :message => text | |
Plugin.call(:before_postbox_post, text) | |
Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text = '' | |
Plugin.filter_cancel! |
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 :shrink_words do | |
def shrink_words(src) | |
str = src | |
src.scan(/[a-zA-Z_]+/).map{ |s| | |
if s.size > 3 | |
[s, s[0] + (s.size - 2).to_s + s[-1]] | |
else | |
[s, s] |
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 | |
FLOATING_PATH = File.join(ENV["HOME"], ".mikutter") | |
FLOATING_PATH_DIR = File.dirname(FLOATING_PATH) | |
FLOATING_PATH_BASE = File.basename(FLOATING_PATH) | |
if File.exists? FLOATING_PATH and not File.symlink? FLOATING_PATH | |
puts "error: #{FLOATING_PATH} exists but not a symlink" | |
exit 1 | |
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 :fav_all_accounts do | |
proc = Plugin.filtering(:command, Hash.new).first[:account_forward][:exec] | |
command(:fav_all_accounts, | |
name: '全部のアカウントでふぁぼる', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :timeline) 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 | |
cat <<EOF > hello.c | |
#include <stdio.h> | |
int main(void) { | |
printf("Hello, world!\n"); | |
return 0; | |
} | |
EOF | |
gcc -o hello hello.c |
This file has been truncated, but you can view the full file.
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 | |
perl -e 'while (<>) { print pack("H*",$_); }' <<EOF > hello | |
7f454c4602010103000000000000000002003e0001000000e0034000000000004000000000000000d0970b000000000000000000400038000700400020001d00010000000500000000000000000000000000400000000000000040000000000026720b000000000026720b000000000000002000000000000100000006000000187f0b0000000000187f6b0000000000187f6b00000000001817000000000000a03f00000000000000002000000000000400000004000000c801000000000000c801400000000000c8014000000000002000000000000000200000000000000004000000000000000700000004000000187f0b0000000000187f6b0000000000187f6b000000000020000000000000005000000000000000080000000000000051e574640600000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000052e5746404000000187f0b0000000000187f6b0000000000187f6b0000000000e800000000000000e80000000000000001000000000000008015046500280000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000040000001000000001000000474e55000000000 |
OlderNewer