Skip to content

Instantly share code, notes, and snippets.

View Akkiesoft's full-sized avatar

Akira Ouchi Akkiesoft

View GitHub Profile
@Akkiesoft
Akkiesoft / hoge.rb
Last active January 2, 2016 20:49
Gtkのはろわのやつをツリービューにしようとしてみている奴
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"
@Akkiesoft
Akkiesoft / mikutter_fuxuxxuuxuppou.rb
Last active August 29, 2015 13:56
mikutterで手軽にふぅっぅうぅっぽうするプラグイン〜(∵)〜
# -*- 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 = "ふぅっぅうぅっぽう"
@Akkiesoft
Akkiesoft / pukiwiki-chmod.sh
Created February 10, 2014 06:22
Pukiwikiのパーミッションをなおすなにか
#!/bin/sh
site=$1
changemod() {
chmod 666 *
chmod 644 index.html .htaccess
return 0
}
@Akkiesoft
Akkiesoft / mikutter_iconbyebye.rb
Created February 20, 2014 02:19
キモいアイコンとかグロいアイコンとかを、清らかなアイコンに差し替えて精神衛生を保つプラグインになる予定
# -*- 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
@Akkiesoft
Akkiesoft / wearable-demo.py
Last active August 29, 2015 13:56
wearable-demo.py :: MentionEject + FavEject + Nokia5110LCD demo for OSC2014 Tokyo/Spring.
#!/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
@Akkiesoft
Akkiesoft / uiin.py
Created February 25, 2014 10:59
pcd8544の Pythonライブラリ(https://github.com/XavierBerger/pcd8544)で動く(☝ ՞ਊ ՞)☝を表示するやつ
#!/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')
@Akkiesoft
Akkiesoft / minimal-raspbian2.sh
Last active January 15, 2020 16:55
コンパクトなRaspbianを作るやつをベースに自己流にアレンジしたもの。Raspbianが500MBちょいのディストリに変身します。NOOBS1.3.10のRaspbianに対応。
#/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
@Akkiesoft
Akkiesoft / minimal-raspbian2-X.sh
Last active May 20, 2018 07:20
コンパクトなRaspbianを作るやつをベースに自己流にアレンジしたもの。RaspbianがXありで1.2GBちょいのディストリに変身します。NOOBS1.3.4のRaspbianに対応。
#/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
@Akkiesoft
Akkiesoft / ssh-keygen-joke.txt
Created April 18, 2014 10:53
| ´՞  ՞` | IT'S A JOKE.
$ 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
The key's randomart image is:
+--[ RSA 2048]----+
|  ___/  \ |
| /  / //⌒ |
|/ (゚)/ / /  .|
|/  ( /。⌒丶。 |
|   \\゚。∴。o |
|   /⌒\\゚。:o|
|  |  \U∴)|
|  |   ゙U| |