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 System.Random | |
generateRandString :: (RandomGen g) => g -> [String] | |
generateRandString gen = | |
[randomRs ('A', 'z') gen | x <- [0..]] | |
randString :: IO String | |
randString = do | |
randomGen <- newStdGen | |
let string = concat $ generateRandString randomGen |
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
% ldd dist/build/Ahblog/Ahblog | |
linux-vdso.so.1 => (0x00007fff3f3c6000) | |
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f71371fa000) | |
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7136ff5000) | |
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7136dd8000) | |
libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f7136b6a000) | |
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f7136961000) | |
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7136665000) | |
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f713645d000) | |
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f713609d000) |
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
PORTAGE_CONFIGROOT=<$EPREFIX> | |
PREFIX_PROFILE=${PORTAGE_CONFIGROOT}/etc/portage/make.profile | |
mv ${PREFIX_PROFILE}/parent ${PREFIX_PROFILE}/parent.bak | |
sed -e s/10.0/13.0/g ${PREFIX_PROFILE}/parent.bak > ${PREFIX_PROFILE}/parent | |
#fix | |
PREFIX_PROFILE=${PORTAGE_CONFIGROOT}/usr/portage/profiles/prefix/linux/amd64 | |
mv ${PREFIX_PROFILE}/parent ${PREFIX_PROFILE}/parent.bak | |
sed -e s/10.0/13.0/g ${PREFIX_PROFILE}/parent.bak > ${PREFIX_PROFILE}/parent |
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
$ ./os_mips | |
OSの名称 : Linux | |
ホスト名称 : DD-WRT | |
OSのリリース番号 : 3.8.7 | |
OSのバージョン : #222 Mon Apr 15 03:17:39 CEST 2013 | |
コンピュータ(ハードウェア)の種類 : mips |
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
# auto-fu.zsh | |
function () { # precompile | |
local A | |
A=$HOME/auto-fu.zsh/auto-fu.zsh | |
[[ -e "${A:r}.zwc" ]] && [[ "$A" -ot "${A:r}.zwc" ]] || | |
zsh -c "source $A; auto-fu-zcompile $A ${A:h}" >/dev/null 2>&1 | |
} | |
if [ -f $HOME/auto-fu.zsh/auto-fu.zsh ]; then | |
source $HOME/auto-fu.zsh/auto-fu.zsh |
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
% cat /proc/cpuinfo | |
Processor : ARMv7 Processor rev 10 (v7l) | |
processor : 0 | |
BogoMIPS : 790.52 | |
processor : 1 | |
BogoMIPS : 790.52 | |
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 | |
CPU implementer : 0x41 |
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
sh mikutter-start200.sh (git)[develop]-[Fail] | |
/opt/miku/rb200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- memoize (LoadError) | |
from /opt/miku/rb200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' | |
from /media/Data2/mikutter/core/miquire.rb:97:in `miquire_original_require' | |
from /media/Data2/mikutter/core/miquire.rb:70:in `block (2 levels) in miquire' | |
from /media/Data2/mikutter/core/miquire.rb:69:in `chdir' | |
from /media/Data2/mikutter/core/miquire.rb:69:in `block in miquire' | |
from /media/Data2/mikutter/core/miquire.rb:65:in `each' | |
from /media/Data2/mikutter/core/miquire.rb:65:in `miquire' | |
from /media/Data2/mikutter/core/miquire.rb:17:in `miquire' |
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 | |
#************************************************************** | |
# mikutter environment builder for developer (debian & ubuntu) | |
#************************************************************** | |
RUBY_SERVER='http://ftp.ruby-lang.org/pub/ruby' | |
INSTALL_DIR='/opt/miku' | |
SRC_DIR="${INSTALL_DIR}/src" | |
MAKEOPT="-j2" |
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
--- vmci-only/linux/driver.c 2012-11-01 16:22:03.000000000 +0900 | |
+++ vmci-only/linux/driver.c.edited 2013-03-01 04:21:08.402942111 +0900 | |
@@ -124,7 +124,11 @@ static struct pci_driver vmci_driver = { | |
.name = "vmci", | |
.id_table = vmci_ids, | |
.probe = vmci_probe_device, | |
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0) | |
.remove = __devexit_p(vmci_remove_device), | |
+#else | |
+ .remove = vmci_remove_device, |
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
--- app-portage/layman/layman-2.0.0.ebuild 2013-02-24 22:29:24.914808631 +0900 | |
+++ app-portage/layman/layman-2.0.0-r1.ebuild 2013-02-24 22:29:44.084808838 +0900 | |
@@ -68,6 +68,6 @@ pkg_postinst() { | |
# now run layman's update utility | |
einfo "Running layman-updater..." | |
- "${EROOT}"/usr/bin/layman-updater | |
+ "${EROOT}"/usr/bin/layman-updater-2.7 | |
einfo | |
} |