Skip to content

Instantly share code, notes, and snippets.

View gmolveau's full-sized avatar

Grégoire MOLVEAU gmolveau

View GitHub Profile
@gmolveau
gmolveau / libraries_frameworks.md
Last active December 10, 2018 14:19
Libraries and frameworks I have found
@gmolveau
gmolveau / quotes.md
Created December 19, 2018 09:09
quotes I have found

Spend at least as much time playing to your strengths as working on your weaknesses.
Alex Moore, CEO of Boomerang

Karma is real, but it’s not always your job to serve it.
Maurice Cherry, designer

My mother used to say, “You become your friends.” It’s true—over time, you start to reflect the people you hang around. This has inspired me to pick really good friends who are role models for me and lift me up.
Ben Chestnut, co-founder of Mailchimp

Stop doing that.

@gmolveau
gmolveau / podcasts_list.md
Last active February 1, 2019 08:34
podcasts I have listened to

Podcasts

France Culture

La Conversation Scientifique - Etienne KLEIN

@gmolveau
gmolveau / podcasts_list.md
Last active February 1, 2019 08:29
podcasts I need to listen to

Hegel

  • Quoi Hegel ? Qu'est-ce qu'il a Hegel ? (4/4) - Le droit, c'est la vie - 03/05/2018

    • avec : Jean-François KERVÉGAN, professeur de philosophie à l’Université Paris 1 Panthéon-Sorbonne
    • hegel-le-droit-cest-la-vie
  • Quoi Hegel ? Qu'est-ce qu'il a Hegel ? (3/4) - L'Histoire a-t-elle un sens ? - 02/05/2018

@gmolveau
gmolveau / manage.sh
Last active May 1, 2019 13:46
macbook management script
#!/bin/sh
restore() {
if test ! $(which gcc); then
echo "Installing xcode..."
xcode-select --install
fi
if test ! "$(which brew)"; then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@gmolveau
gmolveau / .zshrc
Last active December 3, 2019 20:46
my .zshrc
export ZSH=$HOME/.oh-my-zsh
### REQUIREMENTS
function reinstall() {
echo "installing oh-my-zsh \n"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
echo "installing plugins \n"
curl -L https://iterm2.com/shell_integration/zsh -o ~/.iterm2_shell_integration.zsh
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
@gmolveau
gmolveau / 7z_bruteforce.py
Last active December 5, 2023 22:24
Python 7zip bruteforce
import subprocess
import sys
def main():
archive = sys.argv[1]
dictionary = sys.argv[2]
with open(dictionary, "r") as dic:
for line in dic:
word = line.rstrip('\n')
stdout = subprocess.call(
@gmolveau
gmolveau / ssh_passphrase_bruteforce.py
Last active January 19, 2019 14:17
Python ssh passphrase dictionary bruteforce
import subprocess
import sys
def main():
dictionary = sys.argv[1]
with open(dictionary, "r") as dic:
for line in dic:
word = line.rstrip('\n')
stdout = subprocess.call(
'ssh-keygen -c -C "user@server" -P "{0}" -f "./id_rsa"'.format(word),
@gmolveau
gmolveau / argparse_global.py
Created February 8, 2019 15:43
Python argparse example of a global variable usage
import argparse
CONSOLE_ARGUMENTS = None
def test():
print(CONSOLE_ARGUMENTS.color_enabled)
def main():
parser = argparse.ArgumentParser(description='test script with global argparse')