Skip to content

Instantly share code, notes, and snippets.

View nsagot's full-sized avatar
🎯
Focusing

Nicolas Sagot nsagot

🎯
Focusing
View GitHub Profile
@nsagot
nsagot / Global gitignore.md
Last active May 28, 2018 09:23
Global Gitignore

Global Gitignore

Pour ne pas polluer les .gitignore des projets, on va configurer notre propre gitignore global qui sera appliqué dans chaque projet local.

Mac/Linux

Commencez par créer et éditer votre fichier

vi ~/.gitignore

@Prof9
Prof9 / Readme.md
Last active December 2, 2025 23:08
THIS SCRIPT NO LONGER WORKS! Twitter has rolled out a fix for the web client hack. (Original text: Force enable cramming (280 character tweets) on Twitter. Use TamperMonkey. NOTE: Stops working when you switch pages, refresh to fix.)

As of 7 November 2017 everyone has access to 280 characters in supported clients, so you no longer need this script!

@meghakrishnamurthy
meghakrishnamurthy / Fibonacci.java
Created July 5, 2016 07:49
Fibonacci - Recursive and Iterative implementation in Java
package megha.codingproblems.general;
/**
* Fibonacci program - Both iterative and recursive versions
* Fibonacci series - 1,1,2,3,5,8,13....
*
* @author megha krishnamurthy
*
*/
public class Fibonacci {
@briceburg
briceburg / Dockerfile.fails
Created March 30, 2016 22:17
docker - example adding www-data user to alpine images
FROM nginx:alpine
# stock verison from php:alpine image
# ensure www-data user exists
RUN set -x \
&& addgroup -g 82 -S www-data \
&& adduser -u 82 -D -S -G www-data www-data
# 82 is the standard uid/gid for "www-data" in Alpine
# http://git.alpinelinux.org/cgit/aports/tree/main/apache2/apache2.pre-install?h=v3.3.2
@ygotthilf
ygotthilf / jwtRS256.sh
Last active December 3, 2025 11:46
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub