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 | |
# Copyright 2023 Takuma Nakajima | |
# This software is released under the MIT license. | |
# https://opensource.org/license/mit/ | |
# This shell script finds the maximum MTU size to the destination IP address by binary search. | |
# | |
# Example: | |
# $ ./find_max_mtu.sh 1.1.1.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 :fee do | |
command(:fee, | |
name: 'ふぇふぇぇ', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :postbox) do |opt| | |
message_string = "" | |
loop do | |
buf = "ふぇ" + ("ぇ" * rand(4)) |
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 :delivery_pizza do | |
command(:delivery_pizza, | |
name: 'ピザ配達しに来い', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :timeline) do |opt| | |
opt.messages.each { |m| | |
Service.primary.post(:message => "@#{m.user.to_s}な〜にが via #{m[:source]} だ早く私の家にピザ配達しに来い〄", :replyto => 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
ふぁぼろ/ファボレグラフィティ | |
としぁがツイートするずっとずっと前にはもう | |
ふぁぼ數60万は既に超えたっていうのに | |
みんながふぁぼり続けてる 限定の君のTLはふぁぼられ仕様 | |
それって僕のよりはやく増えるって本当かい?ただ壊れてる | |
画面を覆う膨大なふぁぼられ通知には |
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 -*- | |
# favstarを開く | |
Plugin.create :open_favstar_of_tweet do | |
command(:open_favstar_of_tweet, | |
name: 'このTweetのFavstarを見る', | |
condition: Plugin::Command[:HasMessage], | |
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
#-*- coding: utf-8 -*- | |
Plugin.create :gray_protected_users do | |
UserConfig[:protected_users_background_color] ||= [0xcccc,0xcccc,0xcccc] | |
filter_message_background_color do | mp, array | | |
if mp.to_message.user[:protected] == true | |
array = UserConfig[:protected_users_background_color] | |
end | |
[mp, array] | |
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 | |
# coding: utf-8 | |
require 'highline' | |
def ac_status | |
print "AC: " | |
if open("/sys/class/power_supply/AC/online", 'r').read.to_i == 1 | |
puts "Online" | |
else |
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 -*- | |
require 'cgi' | |
Plugin.create :remote_control do | |
UserConfig[:remote_control_vulnerability] ||= false | |
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
--- wicd.bak/networking.py 2012-12-03 14:22:42.936168546 +0900 | |
+++ wicd/networking.py 2012-12-11 02:49:08.196164404 +0900 | |
@@ -905,9 +905,9 @@ | |
if self.wpa_driver != 'ralink legacy': | |
self.generate_psk_and_authenticate(wiface) | |
- # Associate. | |
- wiface.Associate(self.network['essid'], self.network['channel'], | |
- self.network['bssid']) | |
+ ## Associate. |
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 -*- | |
=begin | |
mikutter_download_all_media | |
Copyright (c) 2014 Takuma Nakajima | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php | |
=end |
NewerOlder