Skip to content

Instantly share code, notes, and snippets.

@KeisukeFD
KeisukeFD / api.domain.tld.conf
Created September 28, 2020 19:30
Example config sites reverse proxy nginx (/etc/nginx/sites-availables/)
upstream api_prod {
server IP:PORT;
}
server {
server_name api.domain.tld;
location /.well-known/acme-challenge/ {
root /var/www/api/;
}
@KeisukeFD
KeisukeFD / keybase.md
Last active January 28, 2020 22:37
Keybase Proof

Keybase proof

I hereby claim:

  • I am keisukefd on github.
  • I am val748 (https://keybase.io/val748) on keybase.
  • I have a public key ASDFdZYSMPpKriu3VtQcmcQNXQww6h5f4wKJONaw3vrP4Qo

To claim this, I am signing this object:

@KeisukeFD
KeisukeFD / CVE-2015-0235.c
Last active January 28, 2020 22:36
Test GHOST CVE-2015-0235
/*
Extract from: https://gist.github.com/koelling/ef9b2b9d0be6d6dbab63
GHOST Test Code
*/
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
@KeisukeFD
KeisukeFD / Raid1.md
Last active August 29, 2015 14:13
Configuration RAID 1 linux software

Configuration du Raid 1


Après avoir installé les disques dur dans le serveur, la configuration est comme suit: Toute les commandes doivent êtres éxecutées en root, ou sudo.

1- Initialiser les disques

Avec la commande fdisk, faire: