This file contains hidden or 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
require 'gtk2' | |
uiiindow = Gtk::Window.new() | |
uiiindow.title = "Gtk::TreeView" | |
uiiindow.set_default_size(200, 150) | |
uiiindow.border_width = 10 | |
uiiindow.signal_connect("destroy") { | |
puts "destroy event occurred" |
This file contains hidden or 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_fuxuxxuuxuppou do | |
command(:fuxuxxuuxuppou, | |
name: 'ふぅっぅうぅっぽう', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :postbox | |
) do |opt| | |
Plugin[:gtk].widgetof(opt.widget).widget_post.buffer.text = "ふぅっぅうぅっぽう" |
This file contains hidden or 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 | |
site=$1 | |
changemod() { | |
chmod 666 * | |
chmod 644 index.html .htaccess | |
return 0 | |
} |
This file contains hidden or 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_iconbyebye) do | |
alternative = File.join(File.dirname(__FILE__), 'alternative.png').freeze | |
byebyelist = UserConfig[:iconbyebye_sn] | |
filter_web_image_loader_url_filter do |url| | |
if url.include? 'toshia.dip.jp' | |
[url] | |
else |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
# favEject | |
# 2014 Akkiesoft / Eject-Command-Users-Group | |
# Inspire From: | |
# http://peter-hoffmann.com/2012/simple-twitter-streaming-api-access-with-python-and-oauth.html | |
# THIS DEMO is FavEject + Mention + Nokia5110 |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
import os | |
import time | |
import pcd8544.lcd as lcd | |
if not os.geteuid() == 0: | |
sys.exit('Script must be run as root') |
This file contains hidden or 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 | |
# コンパクトなRaspbianを作るやつをベースに自己流にアレンジしたもの | |
# | |
# ベース: http://www.cnx-software.com/2012/07/31/84-mb-minimal-raspbian-armhf-image-for-raspberry-pi/ | |
# 前のバージョン: https://gist.github.com/Akkiesoft/5426660 | |
sudo apt-get update | |
# if you want remove Desktop, Uncomment below 2 lines. | |
#rm -rf python_games ocr_pi.png Desktop/*.desktop |
This file contains hidden or 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 | |
# コンパクトなRaspbianを作るやつをベースに自己流にアレンジしたもの | |
# Xもいらないバージョン: https://gist.github.com/Akkiesoft/9873563 | |
# | |
# ベース: http://www.cnx-software.com/2012/07/31/84-mb-minimal-raspbian-armhf-image-for-raspberry-pi/ | |
# 前のバージョン: https://gist.github.com/Akkiesoft/5426660 | |
sudo apt-get update | |
rm -rf python_games ocr_pi.png |
This file contains hidden or 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
$ ssh-keygen -t rsa | |
Generating public/private rsa key pair. | |
Enter file in which to save the key (/home/charlie/.ssh/id_rsa): | |
Created directory '/home/charlie/.ssh'. | |
Enter passphrase (empty for no passphrase): | |
Enter same passphrase again: | |
Your identification has been saved in /home/charlie/.ssh/id_rsa. | |
Your public key has been saved in /home/charlie/.ssh/id_rsa.pub. | |
The key fingerprint is: | |
2a:0c:f6:b1:de:ad:be:ef:0b:b5:56:1d:86:39:39:84 charlie@uiiin |
This file contains hidden or 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
The key's randomart image is: | |
+--[ RSA 2048]----+ | |
| ___/ \ | | |
| / / //⌒ | | |
|/ (゚)/ / / .| | |
|/ ( /。⌒丶。 | | |
| \\゚。∴。o | | |
| /⌒\\゚。:o| | |
| | \U∴)| | |
| | ゙U| | |