Skip to content

Instantly share code, notes, and snippets.

View aliceinwire's full-sized avatar

Arisu T. aliceinwire

View GitHub Profile
@aliceinwire
aliceinwire / deblob-5.15.patch
Last active July 25, 2022 02:25
deblob-5.15.patch
--- a/deblob-5.15 2022-07-25 03:43:01.299949682 +0900
+++ b/deblob-5.15 2022-07-25 11:24:33.129003693 +0900
@@ -82,6 +82,27 @@ if [ ! -f $check ] ; then
else
have_check=:
[ -x $check ] || check="/bin/sh $check"
+ case $1 in
+ --use-python)
+ shift;
+ check="$check --use-python"
{
"revisions":[
{
"id":"wyqnpyuntyoarnufwnpuqwypeyebf3c6a7247ae590c0d2965622961b74b6c99a92fec70d07fa4025cb6fcb944a9",
"origin":"gkernelci",
"git_repository_url":"git://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git",
"git_repository_branch":"5.8",
"contacts":[
"Mike Pagano <mpagano@gentoo.org>",
"Alice Ferrazzi <alicef@gentoo.org>"
@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. :)
@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
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)
$ 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
# 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"
@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
@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 / 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