Skip to content

Instantly share code, notes, and snippets.

View NicolasBizzozzero's full-sized avatar
💻
All-nighting

Bizzozzéro Nicolas NicolasBizzozzero

💻
All-nighting
View GitHub Profile
@NicolasBizzozzero
NicolasBizzozzero / comprehensive_header.py
Last active February 3, 2024 23:31
Python template of a comprehensive header, with shebang, docstring, GPLv3 license and all metadata.
#!/usr/bin/env python
""" Short description of this Python module.
Longer description of this module.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
@NicolasBizzozzero
NicolasBizzozzero / cp_template.py
Last active October 4, 2021 08:23
Competitive Programming template for Python 3 files, with a GPLv3 header.
""" Answer a specific exercise of a programming contest.
This module contains all the code needed to answer a given exercise during a
programming contest. Due to its quick creation and the fact that it's probably
not following proper Python guidelines (as described in multiples PEP
documents), it shouldn't be used in production.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
@NicolasBizzozzero
NicolasBizzozzero / autoexec.cfg
Last active November 17, 2020 18:09
autoexec.cfg config file for Counter Strike : Global Offensive
// ------------------------------
// autoexec.cfg for Counter Strike : Global Offensive
//
// For it to works, you need to put this file in the following directory :
// $STEAM_DIRECTORY\steamapps\common\Counter-Strike Global Offensive\csgo\cfg
// Usually (but not always), it is :
// C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg
//
// For optimal experience, do not forget to install the Nvidia GeForce
// Experience software and to configure the following filters (alt+f3) :
@NicolasBizzozzero
NicolasBizzozzero / mode_rainbow.cfg
Created April 19, 2020 09:03
Counter Strike : Global Offensive config file changing your crosshair and HUD colors each time you move.
//
// Change your crosshair & HUD color each time you take move.
// Source: https://www.reddit.com/r/CounterStrikeBinds/comments/ddbb1r/rainbow_crosshair
//
// Crosshair cycle
alias rainbow_color_ch rainbow_color_ch_red
alias rainbow_color_ch_red "cl_crosshaircolor 5; cl_crosshaircolor_r 255; cl_crosshaircolor_g 0; cl_crosshaircolor_b 0; alias rainbow_color_ch rainbow_color_ch_orange"
alias rainbow_color_ch_orange "cl_crosshaircolor 5; cl_crosshaircolor_r 255; cl_crosshaircolor_g 127; cl_crosshaircolor_b 0; alias rainbow_color_ch rainbow_color_ch_yellow"
alias rainbow_color_ch_yellow "cl_crosshaircolor 5; cl_crosshaircolor_r 255; cl_crosshaircolor_g 255; cl_crosshaircolor_b 0; alias rainbow_color_ch rainbow_color_ch_chartreuse"
@NicolasBizzozzero
NicolasBizzozzero / mode_onetap.cfg
Created April 18, 2020 20:33
Counter Strike : Global Offensive config file forcing you to one-tap with weapons
//
// Force you to one tap
// Source: https://www.reddit.com/r/CounterStrikeBinds/comments/922hm2/one_tap_bind/e339uft
//
alias +shootswitch "+attack"
alias -shootswitch "-attack; use weapon_knife; slot1"
alias bindshoot "bind mouse1 +shootswitch"
@NicolasBizzozzero
NicolasBizzozzero / notes.sty
Last active January 14, 2020 12:27
Custom LaTeX style used to create my lectures notes.
\NeedsTeXFormat{LaTeX2e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Package name and information %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesPackage{notes}[2020/01/14 Bizzozzéro Nicolas custom LaTeX style]
%%%%%%%%%%%%%%%%%%%%%%%%%%
@NicolasBizzozzero
NicolasBizzozzero / bibliography_bibtex.bib
Last active December 3, 2019 16:40
BibTex template listing all main entries along with their required and optional fields.
% Bibliography in the BibTex file format.
%
% Documentation available here:
% - https://en.wikipedia.org/wiki/BibTeX
% - $ man bibtex
% - BibLaTeX: http://mirrors.ibiblio.org/CTAN/macros/latex/exptl/biblatex/doc/biblatex.pdf
%
% Comments:
% - 'author' fields with multiple authors need to be separated with the 'and' word. The comma character ',' separate the
% first name and the last name. Example: author = {Firstname1, Lastname1 and Firstname2, Lastname2}.
@NicolasBizzozzero
NicolasBizzozzero / coupons.md
Last active November 29, 2019 10:12
List of usual words used as coupons discount for online shopping

Words to test

  • military
  • veteran
  • student
  • vendor
  • test
  • admin
  • sorry
  • save
  • take
@NicolasBizzozzero
NicolasBizzozzero / request_proxies.py
Last active October 23, 2019 15:36
Example of using the Python's requests library with RR cycling proxies.
import itertools
import requests
from lxml.html import fromstring
def main():
URL = 'https://example.org'
BATCH_SIZE_PROXIES = 10
CYCLE_TIME = 3