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
# compaudit | xargs chmod g-w | |
autoload -Uz compinit && compinit | |
autoload -U promptinit && promptinit | |
autoload -U colors && colors # Enable colors in prompt | |
autoload -Uz vcs_info | |
precmd() { vcs_info } | |
setopt prompt_subst | |
# The below is based on the fantastic work of Josh Dick from | |
# https://joshdick.net/2017/06/08/my_git_prompt_for_zsh_revisited.html |
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 | |
# This script renames Nikon NEF (RAW) files based on shutter count (EXIF "Shutter Count") | |
# and date & time information the photos were taken (EXIF "DateTimeOriginal") | |
# Dependency: exiftool must be installed | |
# by Andras Kora, [email protected], 2018-09-30 Sun 18:21:19 CEST @723 | |
for file in *.nef ; do | |
echo -n "Processing $file >> " | |
exif_shutter_count_info=$(exiftool -ShutterCount -s -s -s "$file") |
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 | |
# This script extracts Shutter Count information from Nikon NEF (RAW) files | |
# and saves the output into a CSV file (for further processing) | |
# Dependency: exiftool must be installed | |
# by Andras Kora, [email protected], 2018-09-29 Sat 16:18:37 CEST @638 | |
TIMESTAMP=$(date +%s) | |
FILENAME=$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
# read the current settings | |
defaults read com.apple.iCal 'RecentlyUsedTimeZones' | |
#set new defaults | |
defaults write com.apple.iCal 'RecentlyUsedTimeZones' '("America/New_York", "Europe/Budapest", "Europe/London")' |
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
screencapture -ow ~/Documents/<subdirectory>/<name-of-the-file>.jpg | |
# -o in window capture mode, do not capture the shadow of the window | |
# -w only allow window selection mode |
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
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(C2,"ö","o"),"ü","u"),"ó","o"),"ő","o"),"ú","u"),"é","e"),"á","a"),"ű","u"),"í","i"),"Ö","O"),"Ü","U"),"Ó","O"),"Ő","O"),"Ú","U"),"É","E"),"Á","A"),"Ű","U"),"Í","I") |
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
Open 'System Preferences' | |
Select 'Keyboard' | |
Select tab 'Shortcuts' | |
Select 'App Shortcuts' from the left listbox | |
Click '+' below right listbox | |
Select 'All Applications' for 'Application' input box | |
Type 'Paste and Match Style' into the 'Menu Title' input box |
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
# settings for the main prompt | |
BLUE="\[\e[44;36m\]" | |
PATH_SHORT="\w" | |
COLOR_RESET="\[\e[0m\]" | |
NEW_LINE="\n" | |
# RAG colors indicating git status | |
RED="\[\033[0;31m\]" | |
AMBER="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" |
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
curl -O -L https://dl.bintray.com/mitchellh/packer/packer_0.7.5_darwin_amd64.zip | |
unzip packer_0.7.5_darwin_amd64.zip | |
sudo mv packer_0.7 /usr/local/packer | |
sudo chown $USER /usr/local/packer/ | |
# then update your .bash_profile with the new path e.g.: | |
# export PATH="/usr/local/git/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/local/packer:$PATH" |
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
sudo echo "deb http://ftp.dk.debian.org/debian wheezy-backports main contrib" >> /etc/apt/sources.list | |
sudo apt-get update | |
sudo aptitude -t wheezy-backports install pepperflashplugin-nonfree |
NewerOlder