Skip to content

Instantly share code, notes, and snippets.

View LeMeteore's full-sized avatar

Nsukami _ LeMeteore

  • Nil
  • Somewhere in the universe
View GitHub Profile
@LeMeteore
LeMeteore / git_exercises.md
Created November 16, 2023 07:31 — forked from TizioFittizio/git_exercises.md
Git Exercises

Exercises

  • Basics
    • Init a repository
    • Track and stage new files
    • Execute a commit
    • Clone a repository
    • Know state of a file (untracked, unmodified, modified, staged)
    • Obtain current status of files
  • Get a short version of status
@LeMeteore
LeMeteore / example_csv_manipulation.py
Created December 23, 2021 19:53
why Python data classes
import csv
from dataclasses import dataclass
"""
Creer une classe personne representant chaque ligne du fichier csv
"""
class Person2:
def __init__(self, list_name, name, label, agence, nom_prenom_cli, type_cli, anon):
self.list_name = list_name
import re
import io
import os
import fnmatch
import argparse
import mimetypes
import subprocess
import urllib.request
from contextlib import contextmanager

Reading List - 2018

Books

  • Coders at Work
  • Messy
  • Release it!
  • Game Engine Black Book
  • Twelve Steps to a Compassionate Life
  • Writing Without Bullshit
  • Programming Rust
@LeMeteore
LeMeteore / 2017-06-15_Entropie_du_logiciel.md
Created December 18, 2017 10:13 — forked from sroccaserra/2017-06-15_Entropie_du_logiciel.md
Entropie du logiciel : dette technique et complexité accidentelle (Agile France 2017)

Entropie du logiciel : dette technique et complexité accidentelle

2017-06-15

Mes notes sur la session de @Lilobase à @AgileFrance 2017.

Voir aussi : les slides de la session.

Qu'est-ce qui fait qu'un système logiciel est pourri ? Note : au niveau

@LeMeteore
LeMeteore / i18n_routing.py
Created March 19, 2017 12:56 — forked from cauethenorio/i18n_routing.py
Django snippet to make Django do not create URL language prefix for the main language (settings.LANGUAGE_CODE) Usage info in snippet docstring.
# coding: utf-8
"""
Cauê Thenório - cauelt(at)gmail.com
This snippet makes Django do not create URL languages prefix (i.e. /en/)
for the default language (settings.LANGUAGE_CODE).
It also provides a middleware that activates the language based only on the URL.
This middleware ignores user session data, cookie and 'Accept-Language' HTTP header.
#!/usr/bin/env python
# -*- coding:utf-8 -*-
""" greetings """
import os
import sys
from django.conf import settings
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
@LeMeteore
LeMeteore / chromelogger.py
Created December 23, 2016 10:44 — forked from apollo13/chromelogger.py
Django logging to Firefox/Chrome devtools
"""
License: MIT - https://opensource.org/licenses/MIT
ChromeLogger is a protocol which allows sending logging messages to the Browser.
This module implements simple support for Django. It consists of two components:
* `LoggingMiddleware` which is responsible for sending all log messages
associated with the request to the browser.
* `ChromeLoggerHandler` a python logging handler which collects all messages.
@LeMeteore
LeMeteore / greet.py
Last active January 10, 2017 01:48
django single file project
#!/usr/bin/env python
# -*- coding:utf-8 -*-
""" greetings """
import os
import sys
from django.conf import settings
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
@LeMeteore
LeMeteore / linode-security.md
Created September 6, 2016 15:32 — forked from eliangcs/linode-security.md
Basic security setup for a brand new Linode

Basic Security Setup for a Brand New Linode

Why

When you start a clean Linode, it isn't secured in the following aspects:

  • Allows root SSH login
  • Uses password authentication on SSH
  • Doesn't have a firewall