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
""" | |
Python script to set modifiy date of images files to the one specified in exif metadata. | |
Usage: | |
python applyexifdate.py Photos/**/*.jpg | |
""" | |
import argparse | |
from datetime import datetime | |
import logging | |
import os |
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
[alias] | |
latestbranchs = branch --sort -committerdate | |
prettylog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' | |
treelog = log --graph --oneline --all | |
word-diff = diff --color-words |
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
# Lines of history in memory | |
export HISTSIZE=10000 | |
# Lines of history to disk | |
export HISTFILESIZE=2000000 | |
export HISTCONTROL=ignoreboth | |
export HISTIGNORE=history | |
export HISTTIMEFORMAT='%F %T ' |
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
call plug#begin() | |
" File explorer | |
Plug 'scrooloose/nerdtree' | |
" Commenting stuff | |
Plug 'tpope/vim-commentary' | |
" Visualization | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
" Autocomplete |
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 | |
: " | |
Compare files from the first to the same filename | |
in the second directory, if they both exist. | |
" | |
DIFF_VER=${DIFF_VER:-diff} | |
dir1=$1 |
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 | |
: " | |
Executes what's on a script, put its stdout and stderr | |
in an output file, update the .script_checksum file and commits. | |
## Dependencies | |
Requires bash, sha256sum and git. |
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
upstream app_server { | |
server 127.0.0.1:8080; | |
keepalive 16; | |
} | |
server { | |
server_name $SERVER_NAME; | |
add_header X-Frame-Options "DENY"; |
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
local Plug = vim.fn['plug#'] | |
vim.call('plug#begin') | |
-- File explorer | |
Plug('preservim/nerdtree') | |
-- Commenting | |
Plug('tpope/vim-commentary') | |
-- Visualization | |
Plug('vim-airline/vim-airline') |