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 | |
# This script will install mikutter 3.0.0 (currently testing release) | |
# to your fresh Ubuntu 14.04 environment (tested on Server LTS amd64 via ssh -YC) | |
# install depends | |
sudo apt-get update | |
sudo apt-get install ruby2.0 ruby2.0-dev git libgtk2.0-dev fonts-vlgothic | |
# checkout latest mikutter branch |
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
Section "InputClass" | |
Identifier "touchpad catchall" | |
Driver "mtrack" | |
MatchIsTouchpad "on" | |
EndSection | |
Section "InputClass" | |
# available options: https://github.com/BlueDragonX/xf86-input-mtrack | |
Identifier "Multitouch driver settings" | |
MatchProduct "Apple|bcm5974" |
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/local/ruby/bin/ruby | |
# | |
# Copyright (c) 2014 Takuma Nakajima | |
# | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
# | |
# ambient light sensor | |
ALS_SOURCE = '/sys/devices/platform/applesmc.768/light' |
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 :mikutter_yo do | |
filter_gui_postbox_post do |gui_postbox| | |
text = Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text.gsub(/よ/, "Yo") | |
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
#!/usr/bin/env zsh | |
function arp { | |
echo "use 'ip n' instead." | |
return 1 | |
} | |
function ifconfig { | |
echo "use 'ip a (ip addr)', 'ip link', or 'ip -s (ip -stats)' instead." | |
return 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
#-*- coding: utf-8 -*- | |
Plugin.create :security_crash do | |
# キーワードを設定 | |
UserConfig[:security_crash_keyword] ||= 'abort-mikutter' | |
# TLに流れてきたすべてのツイートを監視 | |
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
# -*- coding: utf-8 -*- | |
Plugin.create :auto_retweet_previous_tweet do | |
tweet_before = {} | |
on_appear do |ms| | |
ms.each do |m| | |
if tweet_before[m.user] | |
tweet_before[m.user].retweet if m.to_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
#!/bin/bash | |
# | |
# ssh (concatenating split config file) | |
# | |
# 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 :auto_favorite_sushi514_shio do | |
@target_username = "sushi514" | |
@regexp = /しお|塩|sh?io|salt/ | |
on_appear do |messages| | |
messages.each do |m| | |
next unless m.user.to_s == @target_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
#-*- coding: utf-8 -*- | |
Plugin.create :disable_rayban_spam do | |
filter_show_filter do |messages| | |
messages.reject! do |message| | |
message.to_s =~ /^@|^RT/ and | |
message.to_s.include? "レイバンのサングラス" and | |
message.to_s =~ /\d+円/ | |
end | |
[messages] |