Skip to content

Instantly share code, notes, and snippets.

View methbkts's full-sized avatar

Metin Bektas methbkts

View GitHub Profile
@md5
md5 / 00_README.md
Last active June 13, 2026 16:37
Demonstration Docker config for Wordpress on PHP-FPM behind Nginx

Proof of concept setup for Wordpress running under PHP-FPM with an Nginx frontend

Usage

Build a copy of this image:

git clone git://github.com/d9206eacb5a0ff5d6be0.git docker-nginx-fpm
cd docker-nginx-fpm
docker build -t nginx-fpm .
@FrancesCoronel
FrancesCoronel / sampleREADME.md
Last active June 21, 2026 12:31
A sample README for all your GitHub projects.

Repository Title Goes Here

Frances Coronel

INSERT GRAPHIC HERE (include hyperlink in image)

Subtitle or Short Description Goes Here

ideally one sentence >

@joepie91
joepie91 / vpn.md
Last active July 27, 2026 13:26
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.

Qu'est-ce que le command line ?

La console est le fameux écran noir que les développeurs utilisent. C'est un outil extrêmement puissant qui permet de "parler" à son ordinateur. Elle peut paraître moins intuitive que notre interface graphique, mais elle a plusieurs avantages :

  • Rapidité. Par exemple, en mode graphique, allez dans un répertoire qui contient beaucoup de fichiers en tout genre : des fichiers texte, des images, des vidéos… Vous voudriez savoir combien il y a d'images JPEG dans ce dossier. En console, en assemblant quelques commandes, on peut obtenir ce résultat sans problème ! ls -l | grep jpg | wc -l
  • Diversité des tâches que l'on peut faire. La console permet de quasimment tout faire dans son ordinateur

Comment l'ouvrir

Sur Mac

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 28, 2026 19:49
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@uraimo
uraimo / dnsovertls.md
Last active April 12, 2026 02:39
Configure your Mac to use DNS over TLS
@samsch
samsch / stop-using-jwts.md
Last active July 23, 2026 05:39
Stop using JWTs

Stop using JWTs!

TLDR: JWTs should not be used for keeping your user logged in. They are not designed for this purpose, they are not secure, and there is a much better tool which is designed for it: regular cookie sessions.

If you've got a bit of time to watch a presentation on it, I highly recommend this talk: https://www.youtube.com/watch?v=pYeekwv3vC4 (Note that other topics are largely skimmed over, such as CSRF protection. You should learn about other topics from other sources. Also note that "valid" usecases for JWTs at the end of the video can also be easily handled by other, better, and more secure tools. Specifically, PASETO.)

A related topic: Don't use localStorage (or sessionStorage) for authentication credentials, including JWT tokens: https://www.rdegges.com/2018/please-stop-using-local-storage/

The reason to avoid JWTs comes down to a couple different points:

  • The JWT specification is specifically designed only for very short-live tokens (~5 minute or less). Sessions
@methbkts
methbkts / bionic.sh
Last active January 10, 2024 14:56
#!/bin/bash
#Quel ip?
echo -n "Entrez l'adresse ip que vous desirez utiliser : 192.168.33."
read -n 2 ip
echo
cat > Vagrantfile << eof
# -*- mode: ruby -*-
# vi: set ft=ruby :
@nicejade
nicejade / README.md
Last active December 20, 2022 14:00
Generate a good README

Generate a good README

Generate a good README use `npx` commmd.

@michaelbutler
michaelbutler / Witcher_3_Linux_Easy_README.md
Last active January 4, 2026 17:29
Install and Play The Witcher 3 Complete Edition (GOG & GOG Galaxy) on Ubuntu Linux 20.04 with Lutris.net and Wine

How to install and play The Witcher 3 (GOG Edition) on Linux

It's really quite simple!

Step 1: Buy The Witcher 3 on gog.com

Simply go to https://www.gog.com/game/the_witcher_3_wild_hunt_game_of_the_year_edition (this should also work with the regular edition) and buy and add the game to your library.

Do NOT click "Download and Install" at this point. We will do this through Lutris.