Command for remembering your password:
git config --global credential.helper 'cache --timeout 28800'
Above command will tell git to cache your password for 8 hours.
[Version] | |
major = 1 | |
minor = 1 | |
[Common] | |
black_dir_prefix = "/Backup", "/Moments" | |
max_length = 0 | |
max_path = 0 | |
[File] |
#!/bin/bash | |
# | |
# Bash script to setup headless Selenium (uses Chrome) | |
# Add Google Chrome's repo to sources.list | |
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
# Install tools: | |
apt-get -y update | |
apt-get -y install wget unzip curl gnupg |
/** | |
* Make all named SQL parameters unique and | |
* generate a new parameter array with the unique parameters. | |
* @param string $sql The SQL with patameters to uniquify | |
* @param array $params The patameters to uniquify | |
* @return array | |
*/ | |
function uniquify_sql_params($sql, $params): array { | |
$pattern = "/:([a-zA-Z0-9_]+)/"; | |
$paramsres = []; |
# Edit this file | |
alias aliases="vim ~/.bash_profile" # usage: type `aliases` in Terminal | |
# Navigate to location | |
alias home="cd ~" | |
alias desktop="cd ~/Desktop/" | |
alias sites="cd ~/Documents/Sites/" | |
# Navigate to project directory | |
alias work="cd ~/Dropbox/Work/" |