brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s /bin/zsh
brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s /bin/zsh
| # Configuration file for libinput-gestures. | |
| # | |
| # The default configuration file exists at /etc/libinput-gestures.conf | |
| # but a user can create a personal custom configuration file at | |
| # ~/.config/libinput-gestures.conf. | |
| # | |
| # Lines starting with '#' and blank lines are ignored. Currently | |
| # "gesture" and "device" configuration keywords are supported as | |
| # described below. The keyword can optionally be appended with a ":" (to | |
| # maintain compatibility with original format configuration files). |
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"| #!/bin/bash | |
| USER="user" | |
| PASSWORD="password" | |
| OUTPUT="/home/backup_directory" | |
| rm -rf "$OUTPUT"/*.gz > /dev/null 2>&1 | |
| databases=`mysql --user=$USER --password=$PASSWORD -e "SHOW DATABASES;" | tr -d "| " | grep -v Database` |
| #!/usr/bin/env python | |
| # Script: remove_jpg_if_raw_exists.py | |
| # | |
| # Description: This script looks in all sub directories for | |
| # pairs of JPG and RAW files. | |
| # For each pair found the JPG is moved to a | |
| # waste basket directory. | |
| # Otherwise JPG is kept. | |
| # | |
| # Author: Thomas Dahlmann |
| <? | |
| function aes128_cbc_encrypt($key, $data, $iv) { | |
| if(16 !== strlen($key)) $key = hash('MD5', $key, true); | |
| if(16 !== strlen($iv)) $iv = hash('MD5', $iv, true); | |
| $padding = 16 - (strlen($data) % 16); | |
| $data .= str_repeat(chr($padding), $padding); | |
| return mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC, $iv); | |
| } |