Skip to content

Instantly share code, notes, and snippets.

View abdelouahabb's full-sized avatar

ALIANE Abdelouahab abdelouahabb

View GitHub Profile
Pour arriver jusqu’au trésor, il faudra que tu sois attentif aux signes. Dieu a écrit dans le monde le chemin que chacun de nous doit suivre. Il n’y a a qu’à lire ce qu’il a écrit pour toi. »
Quand on veut une chose, tout l’univers conspire à nous permettre de réaliser notre rêve
Mon coeur craint de soufffrir, dit le jeune homme à l’alchimiste, une nuit qu’ils regardeaient le ciel sans lune.
Dis-lui que la crainte de la souffrance est pire que la souffrance elle-même.
Et qu’aucun coeur n’a jamais souffert alors qu’il était à la poursuite de ses rêves. »
Chaque Homme sur terre a un trésor qui l’attend, lui dit son coeur. Nous, les coeurs, en parlons rarement, car les Hommes ne veulent plus trouver ces trésors. Nous n’en parlons qu’aux petits enfants. Ensuite, nous laissons la vie se charger de conduire chacun vers son destin. Malheureusement, peu d’Hommes suivent le chemin qui leur est tracé, et qui est le chemin de la Légende Personnelle et de la félicité. La plupart voient le monde comme quelque chose de men
@abdelouahabb
abdelouahabb / countryinfo.py
Created July 28, 2022 15:29 — forked from mjrulesamrat/countryinfo.py
Python list of country codes, names, continents, capitals, and pytz timezones
countries = [
{'timezones': ['Europe/Andorra'], 'code': 'AD', 'continent': 'Europe', 'name': 'Andorra', 'capital': 'Andorra la Vella'},
{'timezones': ['Asia/Kabul'], 'code': 'AF', 'continent': 'Asia', 'name': 'Afghanistan', 'capital': 'Kabul'},
{'timezones': ['America/Antigua'], 'code': 'AG', 'continent': 'North America', 'name': 'Antigua and Barbuda', 'capital': "St. John's"},
{'timezones': ['Europe/Tirane'], 'code': 'AL', 'continent': 'Europe', 'name': 'Albania', 'capital': 'Tirana'},
{'timezones': ['Asia/Yerevan'], 'code': 'AM', 'continent': 'Asia', 'name': 'Armenia', 'capital': 'Yerevan'},
{'timezones': ['Africa/Luanda'], 'code': 'AO', 'continent': 'Africa', 'name': 'Angola', 'capital': 'Luanda'},
{'timezones': ['America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuai
@abdelouahabb
abdelouahabb / self-signed-certificate-with-custom-ca.md
Created February 17, 2021 02:59 — 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
@abdelouahabb
abdelouahabb / ca.md
Created February 16, 2021 00:09 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@abdelouahabb
abdelouahabb / openssl-cheat.sh
Created February 14, 2021 23:14 — forked from alvarow/openssl-cheat.sh
OpenSSL and Keytool cheat sheet
# Generate a new key
openssl genrsa -out server.key 2048
# Generate a new CSR
openssl req -sha256 -new -key server.key -out server.csr
# Check certificate against CA
openssl verify -verbose -CApath ./CA/ -CAfile ./CA/cacert.pem cert.pem
# Self Signed
@abdelouahabb
abdelouahabb / fbterm-hacks.md
Created January 18, 2021 02:50 — forked from zellio/fbterm-hacks.md
fbterm, installation and configuration hacks

fbterm setup and config hacks

Installation and setup

Install fbterm via your favorite package manager

pacman -S fbterm
@abdelouahabb
abdelouahabb / comparer.py
Created November 18, 2014 21:31
This is a simple script that do something like John the Ripper, it was a job that i was going to make to someone, he was not satisfacted, so i release it here ^_^
# -*- coding: utf-8 -*-
"""
Created on Sun Nov 16 17:51:48 2014
@author: Abdelouahab
"""
import fileinput
import argparse
import time
import datetime
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 14 23:01:24 2014
@author: Abdelouahab
"""
import hashlib
r = ''
@abdelouahabb
abdelouahabb / tornado-hasher.py
Last active August 29, 2015 14:09
how to use tornado with password hashing, original link https://groups.google.com/forum/#!topic/python-tornado/35BiBKdSCNw
from concurrent.futures import ThreadPoolExecutor
from tornado import gen
from tornado.process import cpu_count
import bcrypt
# global threadpool
pool = ThreadPoolExecutor(cpu_count())
@gen.coroutine
def create_user(name, password):