Skip to content

Instantly share code, notes, and snippets.

View Akkiesoft's full-sized avatar

Akira Ouchi Akkiesoft

View GitHub Profile
上から優先順位高い
東A-17b かんざきひろ先生 一式
西れ-65a BEEKさん 新刊
西う-28b かつおちゃん 新刊
西れ-71ab tun-zuk ネギ振りミクさんだけ
西あ-71a kyuriさん 新刊とポストカード(元ConoHa絵師のひと)
@Akkiesoft
Akkiesoft / send_temp_to_zabbix.sh
Created September 5, 2015 04:20
ZabbixにDS18B20の温度を送りつけるスクリプト。
#!/bin/bash
DS18B20="28-000001234567"
ZBX_IP="192.168.0.102"
MYHOST="raspi1.localdomain"
for i in `seq 3`
do
TEMP=`cat /sys/bus/w1/devices/${DS18B20}/w1_slave`
TEMP=`echo $TEMP | awk '{print substr($0, index($0, "t=") + 2)}'`
@Akkiesoft
Akkiesoft / package-list
Created September 30, 2015 01:50
Raspbian Jessieで、起動直後にはいらなそうなパッケージを一通り消し去ったあとのパッケージ一覧。これでだいたい730MB。
ii acl 2.2.52-2 armhf Access control list utilities
ii adduser 3.113+nmu3 all add and remove users and groups
ii apt 1.0.9.8.1 armhf commandline package manager
ii apt-utils 1.0.9.8.1 armhf package management related utility programs
ii aptitude 0.6.11-1 armhf terminal-based package manager
ii aptitude-common 0.6.11-1 all architecture independent files for the aptitude package manager
ii avahi-daemon 0.6.31-5 armhf Avahi mDNS/DNS-SD daemon
ii base-files 8+rpi1 armhf
@Akkiesoft
Akkiesoft / NetworkManager-AP-Sample.conf
Created October 26, 2015 23:52
NetworkManagerでAPたてるやつ
[connection]
id=ejeap
uuid=00f83fc2-aae3-42d7-a98d-dd2a78413939
type=802-11-wireless
timestamp=0
[802-11-wireless]
ssid=ejeap
mode=ap
security=802-11-wireless-security
@Akkiesoft
Akkiesoft / jessie-pkg-list.txt
Created December 11, 2015 17:34
Raspbian jessieのパッケージリスト。775MBくらい。
ii acl 2.2.52-2 armhf Access control list utilities
ii adduser 3.113+nmu3 all add and remove users and groups
ii alsa-base 1.0.27+1 all dummy package to ease purging of obsolete conffiles
ii alsa-utils 1.0.28-1 armhf Utilities for configuring and using ALSA
ii apt 1.0.9.8.1 armhf commandline package manager
ii apt-utils 1.0.9.8.1 armhf package management related utility programs
ii aptitude 0.6.11-1 armhf terminal-based package manager
ii aptitude-common 0.6.11-1 all architecture independent files for the aptitude package manager
ii avahi-daemon 0.6.3
@Akkiesoft
Akkiesoft / gist:ef20535447c1caad3f90
Last active March 1, 2016 08:49
RPi3 Wifi. wlan0がオンボード、wlan1がバッファローの激アツドングル。wlan0にChannel12〜14が無い点に注目。設定で変わるのかな。
pi@raspberrypi:~ $ iwconfig
wlan0 IEEE 802.11bgn ESSID:"****"
Mode:Managed Frequency:2.437 GHz Access Point: ***********
Bit Rate=72 Mb/s Tx-Power=1496 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=70/70 Signal level=-39 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ubuntu@172-16-6-166:~$ ls /etc/ssh/
moduli ssh_host_dsa_key.pub ssh_host_ed25519_key.pub
ssh_config ssh_host_ecdsa_key ssh_host_rsa_key
sshd_config ssh_host_ecdsa_key.pub ssh_host_rsa_key.pub
ssh_host_dsa_key ssh_host_ed25519_key ssh_import_id
ubuntu@172-16-6-166:~$ sudo rm -f /etc/ssh/ssh_host_*
ubuntu@172-16-6-166:~$
ubuntu@172-16-6-166:~$
ubuntu@172-16-6-166:~$ ls /etc/ssh
@Akkiesoft
Akkiesoft / mikutter_high_cpu.txt
Created May 18, 2016 01:35
mikutter3.3.10 x Ruby2.3.0で、ネットワーク接続を失うと暴走する
notice: {MIKUTTER_DIR}/core/plugin/streaming/filter.rb:62:in `block (2 levels) in start': retry wait 0, fail_count 1
warning: {MIKUTTER_DIR}/core/plugin/streaming/filter.rb:59:in `rescue in block (2 levels) in start': filter stream: disconnected: exception Failed to open TCP connection to stream.twitter.com:443 (getaddrinfo: nodename nor servname provided, or not known)
warning: {MIKUTTER_DIR}/core/plugin/streaming/filter.rb:61:in `rescue in block (2 levels) in start': Failed to open TCP connection to stream.twitter.com:443 (getaddrinfo: nodename nor servname provided, or not known)
from /Users/akkie/.rbenv/versions/2.3.0/lib/ruby/2.3.0/net/http.rb:882:in `rescue in block in connect'
from /Users/akkie/.rbenv/versions/2.3.0/lib/ruby/2.3.0/net/http.rb:879:in `block in connect'
from /Users/akkie/.rbenv/versions/2.3.0/lib/ruby/2.3.0/timeout.rb:91:in `block in timeout'
from /Users/akkie/.rbenv/versions/2.3.0/lib/ruby/2.3.0/timeout.rb:101:in `timeout'
from /Users/akkie/.rbenv/versions/2.3.0/lib/ruby/2.3.0/net/http.
@Akkiesoft
Akkiesoft / theme_update.sh
Created May 18, 2016 08:05
Horizonのテーマをいじったあとに実行する、テーマを再コンパイルするコマンド。Liverty/Mitakaあたりで使えるけどほかは知らん
#!/bin/bash
sudo rm -rf /usr/share/openstack-dashboard/static/custom/* || :
sudo python /usr/share/openstack-dashboard/manage.py collectstatic --noinput
sudo python /usr/share/openstack-dashboard/manage.py compress --force 2>&1
sudo service apache2 restart
@Akkiesoft
Akkiesoft / mikutter_daigorou.rb
Last active August 17, 2022 13:51
俺とお前とお前!お前!お前!お前!お前!お前!お前!お前!
# -*- coding: utf-8 -*-
Plugin.create(:mikutter_daigorou) do
command(
:mikutter_daigorou,
name: '大五郎',
condition: lambda{ |opt| true },
visible: true,
role: :timeline
) do |opt|