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
fancy-ctrl-z () { | |
if [[ $#BUFFER -eq 0 ]]; then | |
fg | |
zle redisplay | |
else | |
zle push-input | |
zle clear-screen | |
fi | |
} | |
zle -N fancy-ctrl-z |
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
HOSTS_FILE="/etc/hosts" | |
PRISTENE_HOSTS="$HOME/hosts-clean" | |
TEST_ENV_HOSTS="$HOME/hosts-test" | |
function switchhosts { | |
if [ $1 = "prod" ] | |
then | |
sudo cp "$PRISTENE_HOSTS" "$HOSTS_FILE" | |
fi |
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
buildQuery: function() { | |
var query = []; | |
var name = this.username.value; | |
var startDate = this.startDate.value; | |
var endDate = this.endDate.value; | |
if(name) { | |
query.push("username LIKE '%"+name+"%'"); | |
} |
NewerOlder