Print out request headers
curl -i https://api.github.com
Print out request and response headers
curl -v https://api.github.com
// A counter reducer | |
const counter = ( state = 0, action) => { | |
switch(action.type) { | |
case 'INCREMENT': | |
return state + 1; | |
case 'DECREMENT': | |
return state - 1; | |
default: | |
return state; |
How to rebase local branch with remote master
git fetch origin
git rebase origin/master
to get rid of untracked files and directories
@lxpanel --profile LXDE-pi | |
@pcmanfm --desktop --profile LXDE-pi | |
@point-rpi | |
# Turn off screen power saving | |
@xset s off | |
@xset -dpms | |
@xset s noblank | |
# Start Chromium |
#!/usr/bin/env bash | |
git clone --depth 1 "$1" temp-linecount-repo && | |
printf "('temp-linecount-repo' will be deleted automatically)\n\n\n" && | |
cloc temp-linecount-repo && | |
rm -rf temp-linecount-repo |
Legacy Code Rocks Menders love fixing bugs, refactoring, and testing to make software applications more stable, scalable and secure.