I hereby claim:
- I am mheki on github.
- I am mheki (https://keybase.io/mheki) on keybase.
- I have a public key ASDA4zySuEktwRMwmHiZ_cWyZF-Dq3Q5poC71bjUZ4_Yzgo
To claim this, I am signing this object:
# If you use bash, this technique isn't really zsh specific. Adapt as needed. | |
source ~/keychain-environment-variables.sh | |
# AWS configuration example, after doing: | |
# $ set-keychain-environment-variable AWS_ACCESS_KEY_ID | |
# provide: "AKIAYOURACCESSKEY" | |
# $ set-keychain-environment-variable AWS_SECRET_ACCESS_KEY | |
# provide: "j1/yoursupersecret/password" | |
export AWS_ACCESS_KEY_ID=$(keychain-environment-variable AWS_ACCESS_KEY_ID); | |
export AWS_SECRET_ACCESS_KEY=$(keychain-environment-variable AWS_SECRET_ACCESS_KEY); |
git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D |
brew install [email protected] | |
brew install [email protected] |
# just copy and paste below command to the folder with wav files: | |
for f in *.wav; do lame --vbr-new -V 3 "$f" "${f%.wav}.mp3"; done |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
PHP_VERSION=$1 | |
allowed_versions=(7.0 7.1 7.2) | |
is_allowed=$(printf ",%s" "${allowed_versions[@]}" | grep "$PHP_VERSION" | wc -l) | |
if [[ "$is_allowed" == "0" ]] ; then | |
echo "Allowed versions: ${allowed_versions[@]}" | |
exit 1 | |
fi |
# show git branch on prompt | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " |
alias php7='docker run -it --rm -v "$(pwd)":/tmp -w /tmp php php:7.1' |
<?php | |
namespace Acme\Factory; | |
use Interop\Container\ContainerInterface; | |
use Zend\ServiceManager\Factory\FactoryInterface; | |
use Symfony\Component\Console\Application; | |
class ConsoleApplicationFactory implements FactoryInterface | |
{ | |
const APP_NAME = 'Acme'; |
git branch --merged | egrep -v '(^\*|master|uat)' | xargs git branch -d |