Skip to content

Instantly share code, notes, and snippets.

View NerOcrO's full-sized avatar
🏠
Working from home

Fabien NerOcrO

🏠
Working from home
View GitHub Profile
@sroccaserra
sroccaserra / Analyser_un_repo_de_code.md
Last active February 1, 2022 10:51
Analyser rapidement un répo de code

Git + Bash

Les âges des branches

$ git for-each-ref --sort=authordate --format '%(authordate:relative) %(refname:short)' refs/heads

Les 100 fichiers qui changent le plus souvent

@anvk
anvk / psql_useful_stat_queries.sql
Last active June 28, 2024 08:55
List of some useful Stat Queries for PSQL
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables
@samhemelryk
samhemelryk / pre-commit
Last active May 27, 2021 05:41
A git pre-commit hook example.
#!/bin/bash
#
# This pre-commit hook checks that you havn't left and DONOTCOMMIT tokens in
# your code when you go to commit.
#
# To use this script copy it to .git/hooks/pre-commit and make it executable.
#
# This is provided just as an example of how to use a pre-commit hook to
# catch nasties in your code.