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
# 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 |
- Easy Hugo Mode
https://github.com/masasam/emacs-easy-hugo
Basically it is a very handy cms inside emacs
BUT it is not an improvement of the workflow
see, writing a post is not a linear process that happen only when you are writing a post, it happens all the time, when you are working and you need something that you can capture or marked some of these thoughts that happen while you work
NewerOlder