Skip to content

Instantly share code, notes, and snippets.

View ludoo0d0a's full-sized avatar

LudoO ludoo0d0a

View GitHub Profile
@ludoo0d0a
ludoo0d0a / font-inspector.js
Created September 12, 2017 15:13
<Font inspector> To list all unicodes glyph characters for a font family on an already existing web site.
/*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;
@ludoo0d0a
ludoo0d0a / gist:b2f910b9591849a09270cb49b94f30f5
Last active November 1, 2018 15:46
Update / upgrade firmware Synology DSM - System partition size issues
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 / MacOs keyboard shortcuts
Last active September 28, 2020 09:44
Macos Shortcuts
#
# Macos keyboard shortcuts
#
[ => Shift + Alt + (
] => Shift + Alt + )
} +> Alt + )
{ => Alt + (
| => Shift + Alt + L
\ => Shift + Alt + /
~ => Alt + n
@ludoo0d0a
ludoo0d0a / docker-compose.yml
Created November 25, 2017 13:21
Docker configuration for Elasticsearch 6 (cluster 2 nodes) + Kibana 6 (version OSS)
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:
@ludoo0d0a
ludoo0d0a / git fetch all remote branches
Created November 4, 2018 21:19
Git - Fetch all remote branches in one command
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
@ludoo0d0a
ludoo0d0a / Bpmn Viewer.user.js
Created June 5, 2019 13:07
Bpmn Viewer for github
// ==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 / macos_finder_open_folder_in_IntelliJ
Last active April 20, 2023 06:14
Open folder into IntelliJ from MacOs Finder
# 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 / GitCloneHere.sh
Created June 12, 2019 18:03 — forked from donarb/GitCloneHere.sh
Automator service to clone Git repos in Mac Finder
# 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 / flutter-upgrade.sh
Last active March 30, 2020 19:50
Flutter upgrade from a fresh install
#!/bin/bash
#
# Flutter upgrade from a fresh install
# version : 1.0
# Can be used in case of androidX migration.
# ios, Android specific configruation are not copied ; use a git merge after execution
#
# Copy this file in /usr/local/bin/ and call it from root source of an existing flutter project.
# It requires : jq, xq and yq installation
@ludoo0d0a
ludoo0d0a / setup.sh
Last active October 18, 2021 04:14 — forked from bradp/setup.sh
LudoO's Mac Setup Script
VERSION=1.0
EMAIL=my.name@yourmail.com
echo "Creating an SSH key for you..."
ssh-keygen -t rsa -b 4096 -C "$EMAIL"
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."