These set of scripts are for Magento 2. For Magento 1, see this Gist.
#Ubuntu - Adding CA Certs
To add new Certificate Authority (CA) certs:
-
Create a directory (ie extra) in the ca-certs to hold the new certs
sudo mkdir /usr/share/ca-certificates/extra
-
Copy or move the certs into the new directory
This file contains 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
Host * | |
ControlPath ~/.ssh/control/%C | |
ControlMaster auto |
The official installation instructions for pgModeler recommends installing Xcode and the Enterprise DB distribution of Postgres to fulfill its build requirements. Luckily, Homebrew's got us covered!
-
Checkout the source
This file contains 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
# Ignore all | |
* | |
# Unignore all with extensions | |
!*.* | |
# Unignore all dirs | |
!*/ | |
### Above combination will ignore all files without extension ### |
This file contains 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
-- show running queries (pre 9.2) | |
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(query_start, clock_timestamp()), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This file contains 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
function pathmunge { | |
if echo $PATH | /usr/bin/egrep -q "(^|:)$1($|:)";then | |
a=${1//\//\\\/} | |
PATH=$(echo $PATH|/usr/bin/sed -e "s/\([:^]*\)$a\([$:]*\)/\1\2/g") | |
PATH=$(echo $PATH|/usr/bin/sed -e 's/::/:/g'|/usr/bin/sed -e 's/^://g'|/usr/bin/sed -e 's/:$//g') | |
fi | |
if [ "$2" = "after" ];then | |
PATH=$PATH:$1 | |
else | |
PATH=$1:$PATH |
This file contains 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 | |
shift; | |
exec tmux $* | |
exit 0 | |
fi | |
name=$1 | |
n=$2 | |
if [ "$name" == "" ];then |
This file contains 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
" vimrc | |
" | |
" Maintainer: webee.yw <webee.yw@gmail.com> | |
" Last change: 2013.11 | |
" | |
" 使用vim的配置,必须放在最前面,会对其它设置产生影响 | |
set nocompatible | |
let mapleader = "," |
This file contains 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 -g prefix ^a | |
unbind ^b | |
bind a send-prefix | |
set -g mode-keys vi | |
set -g status-utf8 on | |
setw -g utf8 on | |
# window select. | |
bind-key -n F1 previous-window |
NewerOlder