Skip to content

Instantly share code, notes, and snippets.

View iiey's full-sized avatar

nemo iiey

View GitHub Profile
@iiey
iiey / bashprofile.py
Created July 11, 2019 10:02
profiling bashrc: check for long loading time code
import argparse
import heapq
parser = argparse.ArgumentParser(description='Analyze bash start log for speed.')
parser.add_argument('filename', help='often /tmp/bashload.<PID>.log')
parser.add_argument('-n', default=20, help='number of results to show')
args = parser.parse_args()
filename, n = args.filename, int(args.n)
#add following to ~/.bashrc
@iiey
iiey / i3color
Created June 17, 2020 10:42
i3 themes inspired by some colorschemes
#zenburn
set $bg #2c2c2e
set $fg #9f9f9f
set $hi #efef8f
set $ac #a0afa0
set $tx #040404
set $ia #8f8f8f
set $be #8faf9f
set $yw #ccdc90
set $gn #88b090
@iiey
iiey / shellOut.py
Created January 22, 2021 15:16
gimp nik-collection plugins
#!/usr/bin/env python
"""
ShellOut.py
call an external program passing the active layer as a temp file. Windows Only(?)
Author:
Rob Antonishen
Version:
@iiey
iiey / README.md
Created March 24, 2021 21:01 — forked from akshaykhadse/README.md
C++ Google Colab Plugin

C++ Google Colab Plugin

Example notebook can be found here.

@iiey
iiey / git-rewrite-author.sh
Created June 17, 2021 11:23
git rewrite author
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="[email protected]"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@iiey
iiey / init.lua
Created July 21, 2021 11:35
neovim init file
" ~/.config/nvim/init.vim
" LOAD VIM CONFIG
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vim/vimrc
" load plugins with vimplug
call plug#begin('~/.vim/plugged')
@iiey
iiey / watchdir.py
Created July 30, 2021 09:30
python watchdog
#!/usr/bin/env python3
"""Script is used to observe filesystem changes
of given directory using 'watchdog' api
Usage:
watchdir <PATH>
version 1.0
"""
import logging
@iiey
iiey / startjupyter.sh
Created February 25, 2022 09:44
start notebook inside conda env (here named: jupyter)
#!/usr/bin/env bash
# conda is not in PATH manually specify installed directory
CONDADIR="$HOME/miniconda3"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('$CONDADIR/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"