Skip to content

Instantly share code, notes, and snippets.

View aliceinwire's full-sized avatar

Arisu T. aliceinwire

View GitHub Profile
@aliceinwire
aliceinwire / stdin
Created August 31, 2015 10:37
stdin
root = /
ParseLdSoConf(//etc/ld.so.conf)
glob: //etc/ld.so.conf.d/*.conf
ParseLdSoConf(//etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf)
ParseLdSoConf(//etc/ld.so.conf.d/05binutils.conf)
ldpaths[conf] = ['/lib64', '/usr/lib64', '/usr/local/lib64', '/lib32', '/usr/lib32', '/usr/local/lib32', '/lib', '/usr/lib', '/usr/local/lib', '/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/32', '/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3', '/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/32', '/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4', '/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32', '/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3', '/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/32', '/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3', '/usr/x86_64-pc-linux-gnu/lib', '/usr/lib32/OpenCL/vendors/nvidia', '/usr/lib64/OpenCL/vendors/nvidia', '/usr/lib32/opengl/xorg-x11/lib', '/usr/lib64/opengl/xorg-x11/lib', '/usr/lib64/qt4', '/usr/games/lib64', '/usr/games/lib32', '/usr/games/lib']
ldpaths[env] = []
argv[x] = /opt/vmware/lib/vmware/bin/vmplayer
+auto-root = /opt
@aliceinwire
aliceinwire / stdin
Created August 31, 2015 10:39
stdin
This file has been truncated, but you can view the full file.
execve("/opt/vmware/lib/vmware/bin/vmplayer", ["/opt/vmware/lib/vmware/bin/vmpla"..., "-H", "", "-U", "root", "-P", ""], [/* 54 vars */]) = 0
brk(0) = 0x7f28fadb5000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f28faadd000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=148874, ...}) = 0
mmap(NULL, 148874, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f28faab8000
close(3) = 0
open("/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`#\0\0\0\0\0\0"..., 832) = 832
@aliceinwire
aliceinwire / stdin
Created August 31, 2015 10:51
stdin
2015-08-31T19:50:23.126+09:00| vmplayer| I120: Log for VMware Player pid=14169 version=7.1.2 build=build-2780323 option=Release
2015-08-31T19:50:23.126+09:00| vmplayer| I120: The process is 64-bit.
2015-08-31T19:50:23.126+09:00| vmplayer| I120: Host codepage=UTF-8 encoding=UTF-8
2015-08-31T19:50:23.126+09:00| vmplayer| I120: Host is Linux 4.0.5-gentoo01 Gentoo Base System release 2.2
2015-08-31T19:50:23.087+09:00| vmplayer| I120: VTHREAD initialize main thread 4 "vmplayer" pid 14169
2015-08-31T19:50:23.087+09:00| vmplayer| I120: UTIL: Change file descriptor limit from soft 1024,hard 4096 to soft 4096,hard 4096.
2015-08-31T19:50:23.087+09:00| vmplayer| I120: OBJLIB-LIB: Objlib initialized.
2015-08-31T19:50:23.087+09:00| vmplayer| I120: PREF early PreferenceGet(libdir), using default
2015-08-31T19:50:23.095+09:00| vmplayer| I120: PREF early PreferenceGet(libdir), using default
2015-08-31T19:50:23.095+09:00| vmplayer| I120: PREF early PreferenceGet(libdir), using default
@aliceinwire
aliceinwire / stdin
Created November 8, 2015 06:45
stdin
[Nov 6 14:54] Sense Key : Medium Error [current] [descriptor]
[ +0.000004] Descriptor sense data with sense descriptors (in hex):
[ +0.000001] 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
[ +0.000010] 73 20 92 19
[ +0.000005] sd 0:0:0:0: [sda]
[ +0.000002] Add. Sense: Unrecovered read error - auto reallocate failed
[ +0.000003] sd 0:0:0:0: [sda] CDB:
[ +0.000001] Read(10): 28 00 73 20 92 19 00 00 01 00
[ +0.000008] end_request: I/O error, dev sda, sector 1931514393
[ +0.000004] Buffer I/O error on device sda3, logical block 1929445913
@aliceinwire
aliceinwire / gist:a6c7b4cba347a1cc2849280ebd0c7a55
Last active October 23, 2016 05:23
gentoo pull request 方法
#PySocksのパッケージをアップデートするコントリビューションの例です。
# gentooのgithubにあるパッケージレポジトリをフォックします。
#gitでクローンします。
git clone --depth=50 https://github.com/aliceinwire/gentoo.git aliceinwire_gentoo
#レポジトリに入ります。
cd aliceinwire_gentoo
#upstreamレポジトリ追加します。
git remote -v
git remote add upstream git@github.com:gentoo/gentoo.git
git remote -v
# listing emerge compiling time
function emergetime {
genlop -nt '*' |
tail -n +3 |
sed -n '
1~3 {x;b}
3~3 d
# prefix 0
s/ \([0-9] \)/ 0\1/g
# remove "," and "and"
$ cat .xprofile
eval "$(dbus-launch --sh-syntax --exit-with-session)"
export XMODIFIERS="@im=fcitx"
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
fcitx
diff -Nupr src.orig/fs/proc/meminfo.c src/fs/proc/meminfo.c
--- src.orig/fs/proc/meminfo.c 2017-11-17 15:58:41.113211972 -0500
+++ src/fs/proc/meminfo.c 2017-11-17 15:58:58.554211972 -0500
@@ -42,6 +42,8 @@ static void show_val_kb(struct seq_file
seq_write(m, " kB\n", 4);
}
+static int foo = 5;
+
static int meminfo_proc_show(struct seq_file *m, void *v)
@aliceinwire
aliceinwire / delete_large_gmail_folder.py
Last active March 22, 2019 04:10 — forked from daleysoftware/delete_large_gmail_folder.py
Script to delete large folder in gmail.
"""
Script to delete large folder in gmail.
Adapted from: http://ae.ro/1upv7rt
Notes:
1. For this to work with gmail, you will need to adjust into your IMAP settings
so that they look like this:
* IMAP: enabled
@aliceinwire
aliceinwire / ducks.sh
Created June 9, 2020 01:34 — forked from thebouv/ducks.sh
ducks: linux command for the 10 largest files in current directory
du -cks * | sort -rn | head -11
# Usually set this up in my bash profile as an alias:
# alias ducks='du -cks * | sort -rn | head -11'
# Because it is fun to type ducks on the command line. :)