Skip to content

Instantly share code, notes, and snippets.

LudoO ludoo0d0a

Block or report user

Report or block ludoo0d0a

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ludoo0d0a
ludoo0d0a / GitCloneHere.sh
Created Jun 12, 2019 — forked from donarb/GitCloneHere.sh
Automator service to clone Git repos in Mac Finder
View GitCloneHere.sh
# Use this to quickly create a git repo in a Mac Finder folder
#
# You need to create an Automator service:
# - Open Automator, choose to create a new Service
# - At the top, select Service receives selected "Folders" in "Finder"
# - From the list at the left, choose Library/Utilities, then drag the
# Run Shell Script action to the workarea
# - Paste the script below into the script area
# - Make sure you set the 'Pass input:' selection to "as arguments"
# - Save the service with an easy to find name, I used "Git Clone Here"
@ludoo0d0a
ludoo0d0a / macos_finder_open_folder_in_IntelliJ
Last active Jun 7, 2019
Open folder into IntelliJ from MacOs Finder
View macos_finder_open_folder_in_IntelliJ
# How to oget an icon to easily open folder into IntelliJ from MacOs Finder
Use tools made with Automator (better, faster, stronger...) :
https://github.com/ludoo0d0a/open-in-buttons-for-finder-toolbar
:)
# Here is the old deprecated way :
(Multiple finder or multiple idea projects works badly)
@ludoo0d0a
ludoo0d0a / Bpmn Viewer.user.js
Created Jun 5, 2019
Bpmn Viewer for github
View Bpmn Viewer.user.js
// ==UserScript==
// @name Bpmn Viewer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Show a source Bpmn as a diagram
// @author LudoO
// @match https://github.com/*.bpmn
// @require https://unpkg.com/jquery@3.3.1/dist/jquery.js
// @require https://unpkg.com/bpmn-js@3.4.1/dist/bpmn-viewer.development.js
// @grant GM_xmlhttpRequest
@ludoo0d0a
ludoo0d0a / git fetch all remote branches
Created Nov 4, 2018
Git - Fetch all remote branches in one command
View git fetch all remote branches
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
@ludoo0d0a
ludoo0d0a / docker-compose.yml
Created Nov 25, 2017
Docker configuration for Elasticsearch 6 (cluster 2 nodes) + Kibana 6 (version OSS)
View docker-compose.yml
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:
View MacOs keyboard shortcuts
#
# Macos keyboard shortcuts
#
[ => Shift + Alt + (
] => Shift + Alt + )
| => Alt + Maj + L
} +> Alt + )
] => Shift + Alt + )
{ => Alt + (
[ => Shift + Alt + (
@ludoo0d0a
ludoo0d0a / gist:b2f910b9591849a09270cb49b94f30f5
Last active Nov 1, 2018
Update / upgrade firmware Synology DSM - System partition size issues
View gist:b2f910b9591849a09270cb49b94f30f5
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)
@ludoo0d0a
ludoo0d0a / font-inspector.js
Created Sep 12, 2017
<Font inspector> To list all unicodes glyph characters for a font family on an already existing web site.
View font-inspector.js
/*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;
View gist:2704333073b56742510e328b5d055271

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@ludoo0d0a
ludoo0d0a / gist-ssh-github.md
Created Sep 4, 2017
github ssh keys AND no password
View gist-ssh-github.md

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
You can’t perform that action at this time.