- Intel Edisonは、初期状態でルートパーティションの容量が約464MBで、すぐ容量がひっ迫していた。
- ファームウェアrel2から、ルートパーティションの容量が拡大されるという。
- reboot otaからだとパーティションは維持されるが、rel2で変更になるルートパーティションの容量が変わらない。
- flashall.sh / flashall.bat をすることで、パーティションレイアウトが変更になり、ルートパーティションの容量が約1424MBになった。ただし、/homeなどreboot otaでは維持されていたパーティションも消える。
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
yum -y install at | |
echo '/sbin/service ntpd stop' | at '08:59 30.06.15' | |
echo '/sbin/service ntpd start' | at '09:01 01.07.15' |
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/perl | |
use strict; | |
use warnings; | |
use utf8; | |
use WWW::Mechanize; | |
# deldel.pl PukiWikiのページ内添付ファイルを根こそぎ消す | |
my $pageurl = 'http://dtpwiki.jp/index.php?Perl'; |
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
# XenServer 6.2ゲストにCentOS 6.6 x86を最小インストール直後状態から追加でGUIをインストール | |
# 参考: http://blue21.ddo.jp/tips/tips-xenserver6/tips_xs60_003.html | |
yum -y groupinstall "Japanese Support" "X Window System" Desktop | |
yum -y install tigervnc-server xinetd | |
cat << EOS > /etc/xinetd.d/vnc-server | |
service vnc-server | |
{ | |
socket_type = stream | |
wait = no | |
user = nobody |
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
if [ `ps jax |\grep http[d]| sort -r -n -k1 | awk '{print $1}' | uniq | head -1` == 1 ] ; then killall -9 httpd ; fi |
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/sh | |
MOTD=/etc/motd | |
if [ ! -s $MOTD ] ; then | |
tee $MOTD << EOS | |
[34m d8b 888 ® | |
[34m y8p 888 888 [36m##### # # | |
[34m 888 888 [36m# # |
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
# CentOS 6.6 のシステムPHP 5.3.3を消して、phpenv/php-buildでPHP 5.6.3をビルドする | |
# rootで作業 | |
pecl uninstall apc | |
yum -y remove php php-* | |
yum -y install openssl-devel libcurl-devel libmcrypt-devel readline-devel \ | |
libtidy-devel re2c enchant-devel t1lib-devel gmp-devel libc-client-devel \ | |
libicu-devel net-snmp-devel mysql-devel libtool-ltdl-devel git libxml2-devel \ | |
libjpeg-turbo-devel libpng-devel libxslt-devel httpd-devel gcc re2c |
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
/* Delayを使わないArduino時計 | |
Arduinoにはシステム時刻があって、RTCを持たないArduinoでは | |
起動時必ず1970/01/01T00:00:00Z(UNIX epoch)に初期化されています | |
Arduinoのコンパイラでは__DATE__定数と__TIME__定数が使えますので、 | |
コンパイル時に埋め込まれるこれらの定数を利用してシステム時刻を | |
設定します。 | |
当然ながら、コンパイル時にコンパイラがあるシステムの時刻が定数 | |
として埋め込まれますので、コンパイル直後以外のArduinoリセット時 | |
には時刻が狂うことになります。 | |
DS1307RTCのライブラリを参考にした。 |
- Rasbianで動作確認済み。Linuxとして動くようにしておこう
- Raspberry Piのroot権限で動く。液晶の通信のためにやむなし
mkdir /root/pl; cd /root/pl
して、fileを全部ぶっこむ。サウンドファイルとかは自分で調達しよう- Raspberry PiのシステムPerlに
HiPi
を入れた後cpanm
入れてCarton
入れたあと、cd /root/pl
してcarton install
すると、必要なモジュールが/root/pl/local
以下にわんさか入る。 /root/.lcd.yaml
に、Twitterから取得したAPIキーなどを入れる。あと自分のアカウントのscreen_name
も入れる。/root/pl/lcd.pl
で液晶にドットが表示されて、タイムラインで反応があったら1が表示される。/etc/init.d/skelton
を/etc/init.d/lcd
にコピーして、起動スクリプトを作ろう。- なにやら設定すると、次回から自動的にLCDにタイムラインの様子が表示されるぞ!
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>mikudayo</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>say</string> | |
<string>-v</string> |