Skip to content

Instantly share code, notes, and snippets.

View mascot27's full-sized avatar
:dependabot:

Corentin ZELLER mascot27

:dependabot:
View GitHub Profile
@mascot27
mascot27 / fold_ideas.md
Created January 20, 2021 10:34 — forked from CMCDragonkai/fold_ideas.md
Haskell: Foldl vs Foldr

Foldl vs Foldr

I like to call foldr as "fold from the right", while foldl is "fold from the left".

@mascot27
mascot27 / self-signed-certificate-with-custom-ca.md
Created September 4, 2020 12:49 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@mascot27
mascot27 / python_3_email_with_attachment.py
Created October 27, 2017 11:37 — forked from rdempsey/python_3_email_with_attachment.py
Use Python 3 to send an email with an attachment using Gmail
#!/usr/bin/env python
# encoding: utf-8
"""
python_3_email_with_attachment.py
Created by Robert Dempsey on 12/6/14.
Copyright (c) 2014 Robert Dempsey. Use at your own peril.
This script works with Python 3.x
NOTE: replace values in ALL CAPS with your own values
@mascot27
mascot27 / mysql_secure.sh
Created April 24, 2017 14:09 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10