Skip to content

Instantly share code, notes, and snippets.

Alice Ferrazzi aliceinwire

Block or report user

Report or block aliceinwire

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@aliceinwire
aliceinwire / delete_large_gmail_folder.py
Last active Mar 22, 2019 — forked from mpillar/delete_large_gmail_folder.py
Script to delete large folder in gmail.
View delete_large_gmail_folder.py
"""
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
View stdin
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)
View gist:a37f58d672c7d694ebc218b879d16b12
$ 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
View gist:7545b1e3cca86340e89a9ddced724840
# 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"
View gist:a6c7b4cba347a1cc2849280ebd0c7a55
#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
View 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
View 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
View 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
View 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
View gist:4efa0cb15d271f85ddf3
#!/bin/sh
# This script is meant to be run as a cron job to update a gentoo system automatically
set -e
GA_LOGFILE="/var/log/euscan-check.log"
# which package to monitor divided by space
PACKAGE=""
You can’t perform that action at this time.