.tables
This file contains hidden or 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
import base64 | |
from Crypto.Cipher import Blowfish | |
from binascii import unhexlify | |
from struct import pack | |
key = unhexlify('144a6b229633360207ff9c79016fc49426f1814727b663bc39df05df9a1892073e2812df9492c1e952aac68d1ddfefba635d3a33aba21535') # "thisiskey" | |
iv = '123abc45' | |
def enc(str): |
This file contains hidden or 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
--- /etc/rc.sysinit 2012-02-22 23:47:49.000000000 +0900 | |
+++ rc.sysinit 2012-12-28 15:36:17.000000000 +0900 | |
@@ -271,2 +271,15 @@ | |
+### ELREPO: See if the RTC driver is built-in, otherwise load it | |
+if [ ! -f /proc/driver/rtc ]; then | |
+ action $"Loading rtc_cmos driver: " /sbin/modprobe rtc_cmos | |
+fi | |
+ | |
+### ELREPO: Make the newer device nodes to accomodate hwclock |
This file contains hidden or 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 | |
cd /usr/local/src | |
wget http://r8168.googlecode.com/files/r8168-8.032.00.tar.bz2 | |
tar -jxvf r8168-8.032.00.tar.bz2 | |
cd r8168-8.032.00 | |
make clean modules | |
make modules | |
make install |
This file contains hidden or 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
package MyApp::Web::Request; | |
use Mouse; | |
use MouseX::Foreign qw(Plack::Request); | |
use URI::Escape::XS qw/uri_unescape/; | |
use Time::Piece; | |
has 'env' => ( is => 'rw', isa => 'HashRef', required => 1 ); | |
has 'now' => ( is => 'rw', isa => 'Time::Piece', default => sub { localtime } ); |
-
r8168がロードされるべき場面で、r8169がロードされてしまう
-
パケットのドロップが突発的に激増するトラブルがあったため、適切なドライバを入れる
-
http://wiki.hetzner.de/index.php/Installation_of_r8168_network_driver
This file contains hidden or 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 | |
ssh-agent | grep -v echo > "${HOME}/.ssh/agent-env" | |
. "${HOME}/.ssh/agent-env" | |
ssh-add | |
echo "please type:" | |
echo ". ~/.ssh/agent-env" |
今のところcapistranoを使うだけなのだけど、ある時期からOS標準のRubyでは動かなくなったので面倒。
rvmを使うとCentOS5系のzshだと使えないという問題が出た。
どうにも不便なので、rbenvを試してみる。
http://quox.org/tips/server/daemontools.html が分かりやすい
- yum repoにdamontools-toasterでRPMを置いてるので、それを入れる