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

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.
@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 / 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
@LeMeteore
LeMeteore / gist:31accdcb701a38ec437aba08e31f8859
Created September 1, 2016 22:20 — forked from atcuno/gist:3425484ac5cce5298932
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

Types

A type is a collection of possible values. An integer can have values 0, 1, 2, 3, etc.; a boolean can have values true and false. We can imagine any type we like: for example, a HighFive type that allows the values "hi" or 5, but nothing else. It's not a string and it's not an integer; it's its own, separate type.

Statically typed languages constrain variables' types: the programming language might know, for example, that x is an Integer. In that case, the programmer isn't allowed to say x = true; that would be an invalid program. The compiler will refuse to compile it, so we can't even run it.

@LeMeteore
LeMeteore / psqlfix.txt
Created August 12, 2016 12:55
Change postgres default template0 to UTF8 encoding
mike@rbci:~$ psql -U postgres
psql (9.0.3)
Type "help" for help.
postgres=# update pg_database set datallowconn = TRUE where datname = 'template0';
UPDATE 1
postgres=# \c template0
You are now connected to database "template0".
template0=# update pg_database set datistemplate = FALSE where datname = 'template1';
UPDATE 1
@LeMeteore
LeMeteore / go-links.md
Created July 19, 2016 00:54 — forked from twotwotwo/go-links.md
Go links