Discover gists
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
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
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
### Install required modules and set the envvar for Gemini API Key | |
#pip install pypdf2 | |
#pip install chromadb | |
#pip install google.generativeai | |
#pip install langchain-google-genai | |
#pip install langchain | |
#pip install langchain_community | |
#pip install jupyter | |
#export GOOGLE_API_KEY="YOUR_GOOGLE_API_KEY" |
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
### Install required modules and set the envvar for Gemini API Key | |
#pip install google.generativeai | |
#pip install langchain-google-genai | |
#pip install langchain | |
#pip install langchain_community | |
#pip install jupyter | |
#export GOOGLE_API_KEY="YOUR_GOOGLE_API_KEY" | |
#Import Modules |
In case you want to run radicle in containers, on the same host (e.g. your laptop),
you can use the docker-compose.yml
file provided within this repo.
- Create a folder where you will store the data of your node. e.g.
mkdir -p ~/radicle/profiles/bob/.radicle
- Set
RAD_HOME
:export RAD_HOME=~/radicle/profiles/bob/.radicle
- Create a key:
- Pick a good passphrase and store it in your password manager
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
/* | |
File: RBC_Zettelkasten_in_Logseq.css | |
Description: | |
This CSS file is my attempt at 'porting' the Roam Book Club Zettelkasten | |
CSS for use in Logseq. | |
NOTES: | |
- There are tags created for the three "projects" in the source css. You're intended |
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 | |
IP="192.168.1.22" | |
SUBJECT_CA="/C=SE/ST=Stockholm/L=Stockholm/O=himinds/OU=CA/CN=$IP" | |
SUBJECT_SERVER="/C=SE/ST=Stockholm/L=Stockholm/O=himinds/OU=Server/CN=$IP" | |
SUBJECT_CLIENT="/C=SE/ST=Stockholm/L=Stockholm/O=himinds/OU=Client/CN=$IP" | |
function generate_CA () { | |
echo "$SUBJECT_CA" | |
openssl req -x509 -nodes -sha256 -newkey rsa:2048 -subj "$SUBJECT_CA" -days 365 -keyout ca.key -out ca.crt |
NewerOlder