Skip to content

Instantly share code, notes, and snippets.

View floweb's full-sized avatar

Florian Le Frioux floweb

  • Seldon Finance
  • Basusarri, Euskal Herria, France
View GitHub Profile
@floweb
floweb / docker-compose.yml
Created December 6, 2017 11:24
MongoDB Docker Compose
version: "3"
services:
mongo:
image: mongo
restart: unless-stopped
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
@floweb
floweb / pg_change_schema_owner.sh
Last active October 23, 2018 14:09 — forked from bspkrs/pg_change_schema_owner.sh
Changes the owner on all tables, sequences, views, and functions in a PostgreSQL database with support for identifiers with whitespace and non-public schemas.
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script sets ownership for all tables, sequences, views, and functions for a given schema.
Run this script as your postgres OS user.
@floweb
floweb / .screenrc
Created May 11, 2020 12:49
.screenrc
# Turn off that annoying start up message
startup_message off
# Turn the even more annoying whole-screen-flash-on-tab-complete "feature"
vbell off
# I use control+a for beginning-of-line, this remaps it to the tick/tilda key
#escape ``
# Bind tick+e to show the tick character since tick+tick is too convenience to toggle windows
@floweb
floweb / change_keycloak_export_realm_json_uuid.sh
Created June 11, 2020 08:13
change_keycloak_export_realm_json_uuid.sh
#!/bin/bash
grep "^ *\"id.*[0-9A-Fa-f]-" NewRealm-realm.json | cut -d'"' -f4 > myuuidfile
while read;
do
uuid=$(cat /proc/sys/kernel/random/uuid);
sed -i "s/$REPLY/$uuid/g" NewRealm-realm.json
done < myuuidfile
@floweb
floweb / 🎵 My Spotify Top Tracks
Last active August 7, 2024 16:09
spotify-box
Gans Media Retro Games Hot Mulligan
Wonder Cheese Xavier Dang
Shhhh! Golf is On Hot Mulligan
This Is Why Paramore
Shhhh! Golf is On Hot Mulligan
BCKYRD - Acoustic Hot Mulligan
Black Hole Be Your Own Pet
Heem Wasn't There Hot Mulligan
BCKYRD Hot Mulligan
À la renverse Intenable