This file contains hidden or 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
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " Remove all autocmds | |
| autocmd! | |
| let $VIM='~/.vim/' | |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " => Plugin stuff |
This file contains hidden or 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
| all: | |
| pdflatex journal.tex | |
| rm -rf *.aux *.log | |
| clean: | |
| rm -rf *.pdf | |
This file contains hidden or 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 ( | |
| "crypto/sha512" | |
| "fmt" | |
| "github.com/serialx/hashring" | |
| "math/rand" | |
| "time" | |
| ) |
This file contains hidden or 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
| export CLICOLORS=1 | |
| export LSCOLORS=gxfxbxdxcxGxDxExFxHxCx | |
| export LS_COLORS="di=36:ln=35:so=31:pi=33:ex=32:bd=1;36:cd=1;33:su=1;34:sg=1;35:tw=1;37:ow=1;32" | |
| export GREP_OPTIONS='--color=auto' |
This file contains hidden or 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
| # System-wide .bashrc file for interactive bash(1) shells. | |
| if [ -z "$PS1" ]; then | |
| return | |
| fi | |
| # Make bash check its window size after a process completes | |
| shopt -s histappend | |
| shopt -s checkwinsize | |
| bind 'set show-all-if-ambiguous off' | |
| bind 'set completion-ignore-case on' |
This file contains hidden or 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 [ $# != 1 ]; | |
| then | |
| echo "Usage: $0 \"Author Name\""; | |
| exit 1; | |
| fi; | |
| remote=$(git remote -v | cut -f 2 | cut -f 1-4 -d "." | head -1); | |
| for c in $(git log --since="1 month ago" --oneline --author="$1" | cut -f1 -d " "); |
This file contains hidden or 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://github.com/arduino/Arduino/issues/2466 | |
| def m (x, in_min, in_max, out_min, out_max): | |
| if ((in_max - in_min) > (out_max - out_min)): | |
| return (x - in_min) * (out_max - out_min+1) / (in_max - in_min+1) + out_min; | |
| else: | |
| return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; |
This file contains hidden or 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 [ $# -ne 2 ]; then | |
| echo "usage: $0 <9 or 11> <CSV_FILE>" | |
| exit 1 | |
| fi | |
| iconv -c -f utf8 -t ISO-8859-1 "$2" > iso.csv | |
| # Calculating hours |
This file contains hidden or 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
| docker rmi -f $(docker image ls -q); docker rm $(docker ps -aq); docker volume rm -f $(docker volume ls -q); |
This file contains hidden or 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
| i=1; while [ $i -le 3 ]; do echo $i; i=$((i+1)); done |