Skip to content

Instantly share code, notes, and snippets.

diff --git a/.env.example b/.env.example
index 223b4e5..ba6693d 100644
--- a/.env.example
+++ b/.env.example
@@ -1,2 +1,3 @@
GITGUARDIAN_API_KEY=__________FILL ME__________
GITGUARDIAN_API_URL=https://api.gitguardian.com/
+IS_WEB_AUTH_ENABLED=1
diff --git a/ggshield/auth.py b/ggshield/auth.py
index 2abab90..ccfc461 100644
@agateau-gg
agateau-gg / scvi.py
Last active May 19, 2023 13:35
An interactive version of scriv
#!/usr/bin/env python3
"""
Interfactive version of scriv
"""
import argparse
import sys
from typing import List, Optional
from scriv.changelog import Fragment
from scriv.gitinfo import git_edit
@agateau-gg
agateau-gg / 0cat
Created November 15, 2023 13:39
Like cat, but highlight invisible characters
#!/usr/bin/env python3
"""
Like cat, but highlight invisible characters
"""
import argparse
import sys
if sys.stdout.isatty():
BOLD = "\033[01m"
#!/bin/bash
set -euo pipefail
create_commit() {
git commit --allow-empty -m "$1"
}
rm -rf repo
mkdir repo