This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins=(git zsh-autosuggestions zsh-syntax-highlighting ssh-agent) | |
alias ls="ls -lFh --color" | |
function command_not_found_handler() { | |
echo "zsh: command not found: $1\n" | |
figlet -froman lol - $1 | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* better contrast for status-bar */ | |
.status-bar{ | |
color: var(--tx2); | |
} | |
/* better contrast for status bar (sync button) */ | |
:is(.theme-light, .theme-dark) :is(.sync-status-icon.mod-success, .sync-status-icon.mod-working) { | |
color: var(--tx2); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created by https://www.toptal.com/developers/gitignore/api/go,python,node,java,intellij+all,sublimetext,visualstudiocode,xcode,maven,gradle | |
# Edit at https://www.toptal.com/developers/gitignore?templates=go,python,node,java,intellij+all,sublimetext,visualstudiocode,xcode,maven,gradle | |
### Go ### | |
# Binaries for programs and plugins | |
*.exe | |
*.exe~ | |
*.dll | |
*.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Reference: https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim | |
" Enable filetype plugins | |
filetype plugin on | |
filetype indent on | |
" Better status when using window | |
" Reference: https://superuser.com/a/807010= | |
highlight StatusLineNC cterm=bold ctermfg=white ctermbg=darkgray |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
jupyter: | |
image: jupyter/scipy-notebook | |
ports: | |
- "8888:8888" | |
volumes: | |
- ./notebooks:/home/jovyan/ | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "${prefix}" ]; then | |
echo "warn: prefix is not set" | |
fi | |
for f in *; do | |
if [ -d "${f}" ]; then | |
echo "Zipping ${f} to ${prefix}${f}.cbz" | |
zip -r "${prefix}${f}.cbz" "${f}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.datadoghq.com/blog/postgresql-monitoring/ | |
https://www.datadoghq.com/blog/postgresql-monitoring-tools/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ls='ls -FGH' | |
alias ll='ls -l' | |
export JAVA_HOME=/Libary/Java/Home | |
kubecontext() | |
{ | |
if [[ -e ~/.kube/config && $(type -P kubectl 2>/dev/null) ]]; then | |
echo -n " [$(kubectl config current-context)]" | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Xms2g | |
-Xmx2g | |
-XX:ReservedCodeCacheSize=1024m | |
-XX:+UseG1GC | |
-XX:+UseCompressedOops | |
-Dsun.io.useCanonCaches=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "golang.org/x/tour/tree" | |
func WalkRecursive(t *tree.Tree, ch chan int) { | |
if t.Left != nil { | |
WalkRecursive(t.Left, ch) | |
} | |
ch <- t.Value |
NewerOlder