-
Inject profiling code
At the beginning of your .zshrc add following:
zmodload zsh/zprof
and at the end add:
zprof
This will load zprof mod and display what your shell was doing durung your initialization.
10.6 |
<?php | |
/** | |
* Replace img tag with amp-img | |
* | |
* <amp-img src="[src]" | |
* width="[width]" | |
* height="[height]" | |
* layout="responsive" | |
* alt="[alt]"> | |
* </amp-img> |
body='{ | |
"request": { | |
"branch":"master" | |
}}' | |
curl -s -X POST \ | |
-H "Content-Type: application/json" \ | |
-H "Accept: application/json" \ | |
-H "Travis-API-Version: 3" \ | |
-H "Authorization: token [travis token]" \ |
WARNING: This method works because you are creating a new branch with
the first command: git branch newbranch
.
If you want to move commits to an existing branch you need
to merge your changes into the existing branch before executing git reset --hard HEAD~3
git branch newbranch
git reset --hard HEAD~3
git checkout newbranch
git commit --allow-empty -m "empty commit"
git push heroku master
or
git commit --amend -C HEAD
git push heroku master
sudo apt-get install avahi-daemon
Once the installation process is complete, you don’t even have to reboot the device. Your Raspberry Pi will begin immediately recognizing local network queries for its hostname (by default “raspberrypi“) at raspberrypi.local.
For security reasons, ssh is no longer enabled by default. To enable it you need to place an empty filed named ssh (no extension) in the root of the boot disk.
touch /Volumes/boot/ssh
Create a file in the root of boot called: wpa_supplicant.conf
.
Then paste the following into it:
country=US
travis() { | |
command=$(grep -oP "(?<=- )$1.*" .travis.yml); | |
echo -e "\e[1;32mRunning: $command\e[0m\n"; | |
eval $command; | |
} |
# ------------------------------------------------------------------- | |
# Drush | |
# https://www.lullabot.com/articles/switching-drush-versions | |
# ------------------------------------------------------------------- | |
# alias drush6='/www/drush6/vendor/bin/drush' | |
# alias drush='/www/drush7/vendor/bin/drush' | |
# alias drush8='/www/drush8/vendor/bin/drush' | |
# ------------------------------------------------------------------- | |
# Clear |