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
git stash --include-untracked | |
git pull |
<keymap> | |
<global> | |
<remote> | |
<red>ContextMenu</red> | |
<green>FullScreen</green> | |
<yellow>Pause</yellow> | |
<blue>Info</blue> | |
</remote> | |
</global> | |
<FullscreenVideo> |
git reset --soft HEAD~1 | |
source: http://davidwalsh.name/git-undo-commit |
''' | |
Complete solver for all magic square | |
with preset | |
Created on Sep 28, 2012 | |
@author: ludoo | |
''' | |
from constraint import * |
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/>')); |
/*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; |
version: "2.2" | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.0.0 | |
container_name: elasticsearch | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: |
Impossible de faire la mise à jour Synology DSM: | |
Message d'erreur: | |
Capacité insuffisante pour la mise à jour. La partition système requiert au moins 400 Mo | |
Solution: | |
Se connecter en ssh au nas: | |
```bash | |
sudo du -d 3 -xm / | |
ou (pour obtenir les 10 plus gros répertoires) |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done |