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
import argparse
import ConfigParser
conf_parser = argparse.ArgumentParser(
# Turn off help, so we print all options in response to -h
add_help=False
)
conf_parser.add_argument("-c", "--conf_file",
help="Specify config file", metavar="FILE")
args, remaining_argv = conf_parser.parse_known_args()
# Zach Champion
# Calculus II - Honors Calculus Project
# A script in Python that returns a decimal expansion of pi using the
# Gauss-Legendre algorithm.
from __future__ import with_statement
# Used the decimal module for increased accuracy that the standard float