git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
/*eslint-disable */ | |
/* | |
Copy paste this code in Chrome console. Then execute | |
fontlist('MyFontFamily', 0, 200); | |
It will display the dictionary for all characters and their mapping with the right rendered glyph. | |
*/ | |
function fontlist(name, start, end, range){ | |
var ID = 'font-list', IDS= 'style-'+ID; | |
range=range||'f'; | |
start=start||0; |
https://stackoverflow.com/questions/6565357/git-push-requires-username-and-password
A common mistake is cloning using the default (HTTPS) instead of SSH. You can correct this by going to your repository, clicking the ssh button left to the URL field and updating the URL of your origin remote like this:
git remote set-url origin git@github.com:username/repo.git
See http://stackoverflow.com/questions/7773181/git-keeps-prompting-me-for-password, make sure you are cloning your repos using ssh
:
ssh://git@github.com/username/repo.git
# | |
# Start ssh-agent once only and register keys | |
# | |
# Usage : put this in .bashrc | |
# if [ -f ~/.bash_ssh ]; then | |
# . ~/.bash_ssh | |
# fi | |
# | |
# http://stackoverflow.com/questions/18880024/start-ssh-agent-on-login#18915067 | |
# |
javascript:var r=[],x=document.getElementsByClassName('_16zz')[0],imgs=x.getElementsByTagName('a');for(i=0;i<imgs.length;i++){var url=imgs.item(i).getAttribute('href');r.push('<img src="'+url+'"/>');}document.write('<p>Press Ctrl+s to save complete page ; pictures will be in the folder aside the html page</p>'+r.join('<br/>')); |
git reset --soft HEAD~1 | |
source: http://davidwalsh.name/git-undo-commit |
Sometimes after a hard reboot (power cut), if your synology cannot be logged in with DSM and it shows "System is getting ready. Please log in later" , please do these steps : | |
#Admin login via ssh | |
> synobootseq --set-boot-done | |
> synobootseq --is-ready | |
#optional | |
> /usr/syno/etc/rc.d/S97apache-sys.sh start | |
> /usr/syno/etc/rc.d/S95sshd.sh start |
<keymap> | |
<global> | |
<remote> | |
<red>ContextMenu</red> | |
<green>FullScreen</green> | |
<yellow>Pause</yellow> | |
<blue>Info</blue> | |
</remote> | |
</global> | |
<FullscreenVideo> |
git stash --include-untracked | |
git pull |
Online logbook creator for Geocaching
A Pen by Ludovic Valente on CodePen.