Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts and experience preferred (super rare at this point).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is using python-keycloak package | |
# the goal is to move the existing users with their django passwords into keycloak | |
# so that it is as seemless as possible for the users when integrating the SSO solution | |
# | |
# This is a working solution | |
# Important to note the salt encoding using utf8 else, it wont work | |
# and the name of the algorithm is different in django and in keycloak (small difference but important one) | |
def create_keycloak_user_from_django(django_user, keycloak_admin): | |
django_password = django_user.password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add to your .bashrc | |
# for quick project setup | |
function venv () { | |
# if project name is given | |
# create a new venv with the project name | |
# else create default venv | |
if [ -n "$1" ]; then | |
python3 -m venv .venv/$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e -o pipefail | |
programname=`basename "$0"` | |
display_usage() { | |
echo "usage: $programname (create|restore) source destination" | |
echo " create create snapshot file from docker volume" | |
echo " restore restore snapshot file to docker volume" | |
echo " source source path" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim: set filetype=tridactyl | |
"""" Tridactyl config - yasha.solutions | |
"""" This is mostly a mod based on a mix of Doom Emacs and vim old habits | |
"""" The general idea of this config is to create a unified experience between | |
"""" Emacs and Firefox which are my main daily driver | |
"""" This is supported by a good i3wm config which help glue the missing parts | |
"""" This is obviously a work in progress but I thought i'd made a snapshot | |
" Uncomment the lines you want to keep then move this file to |
Grr this took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked.
First install motion
:
~> sudo apt-get install motion
Then create a config file:
~> mkdir ~/.motion
~> nano ~/.motion/motion.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
"context" | |
"fmt" | |
"go.mongodb.org/mongo-driver/mongo" | |
"go.mongodb.org/mongo-driver/mongo/options" | |
"go.mongodb.org/mongo-driver/mongo/readpref" | |
) | |
// Connection URI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tested working 20 Jun 2021, irssi version 1.2.3 | |
This is a TLDR version of https://blog.crunchprank.net/connecting-to-twitch-chat-via-irssi/ | |
Get your OAuth token (password) here: https://twitchapps.com/tmi/ | |
# Network setup: | |
/network add -nick YOUR_TWITCH_USERNAME twitch | |
/server add -auto -ssl -network Twitch irc.chat.twitch.tv 6697 YOUR_OAUTH_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim: set filetype=tridactyl | |
"""" Tridactyl config - yasha.solutions | |
"""" This is mostly a mod based on a mix of Doom Emacs and vim old habits | |
"""" The general idea of this config is to create a unified experience between | |
"""" Emacs and Firefox which are my main daily driver | |
"""" This is supported by a good i3wm config which help glue the missing parts | |
"""" This is obviously a work in progress but I thought i'd made a snapshot | |
" Uncomment the lines you want to keep then move this file to |
NewerOlder