git checkout -b {new_branch_name} {hash}
git branch -d {branch_name}
git push origin --delete {branch_name}
export PS1="\w 🎺 : " |
# Find and delete all files old than 3 days | |
`find . -name "*.sql.gz" -mtime +3 -delete` |
# Copy a line | |
yy | |
# Delete a line | |
dd | |
# Past line AFTER | |
p | |
# Past line BEFORE |
<?php | |
use Intervention\Image\Filters\FilterInterface; | |
/** | |
* A simple filter to get the predominant color from an image using the | |
* Intervention library (http://image.intervention.io). | |
* | |
* Usage with no options: | |
* $image = Image::make($file); |
https://github.com/jakubroztocil/httpie | |
export FIRE='Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI' | |
http -v PUT :8000/profile "$FIRE" email=bob@aol.com avatar=http://google.com age=33 |
Get the deploy URL from Forge (or other PaaS)
Create a dotfile in the root of your project, like .forge
, and place the URL in that file
Add the file from step 2 to your .gitignore
Add the following to your .zshrc
or .bashrc
, etc.
function deploy() { xargs curl -I < .forge & }
<div id="u-debug-size"> | |
<div id="u-debug-size__inner"></div> | |
</div> |
<!-- make 31 option tags with value and the text the two-digit number in the sequence --> | |
option[value="$$"]${$$}*31 | |
<!-- or specify the start value --> | |
option[value="$$$$@2017"]${$$$$@2017}*83 |
@if(env('CSS_DEBUG')) | |
<div class="fixed pin-b pin-l text-white opacity-50"> | |
<span class="absolute pin-b pin-l bg-red p-4 sm:hidden md:hidden lg:hidden xl:hidden">Mobile</span> | |
<span class="absolute pin-b pin-l bg-orange p-4 hidden sm:block md:hidden lg:hidden xl:hidden">Small</span> | |
<span class="absolute pin-b pin-l bg-green p-4 hidden sm:hidden md:block lg:hidden xl:hidden">Medium</span> | |
<span class="absolute pin-b pin-l bg-blue p-4 hidden sm:hidden md:hidden lg:block xl:hidden">Large</span> | |
<span class="absolute pin-b pin-l bg-purple p-4 hidden sm:hidden md:hidden lg:hidden xl:block"><nobr>X-Large</nobr></span> | |
</div> | |
@endif |