Skip to content

Instantly share code, notes, and snippets.

View lee2sman's full-sized avatar

Lee T lee2sman

  • W/O/R/L/D/W/I/D/E
View GitHub Profile
@lee2sman
lee2sman / config.conf
Created May 6, 2024 19:06
an in-progress buggy RSS feed generator
blog_name="My blog"
blog_link=https://website.com/blog
blog_description="My blog description"
blog_feed=rss.xml
blog_dir=site
blog_posts=posts

Let's update the software on our Pi.

sudo apt update
sudo apt upgrade
  1. Test python.
@lee2sman
lee2sman / flow_music.md
Last active February 19, 2024 23:46
Music for working, writing, editing, concentration and flow states.
@lee2sman
lee2sman / setting-up-i3-for-dvorak.md
Last active September 30, 2023 02:12
I cobbled together a method to install i3 window manager for Dvorak

Setting up i3 when you use Dvorak

The process to set up i3 for use by Dvorak users is maddening and works unlike any other window manager or software I've used previously. It's especially difficult for me since I don't remember QWERTY anymore (it's been 14 years for me) and I have Dvorak positioned keys on my keyboard.

Anyway, here is the unpleasant process to get it to work at a bare minimum. I haven't found this documented in a single place elsewhere, and the steps usually assume that you understand how to do something in i3 already.

Download and install i3. I read you need these other packages as well. I'm coming from Ubuntu.

sudo apt install i3 i3status dmenu i3lock xbacklight feh
@lee2sman
lee2sman / stations.csv
Last active June 3, 2023 18:41
My pyradio stations, located at /Users/2sman/.config/pyradio/stations.csv
Deep Space One: A soundtrack for inner and outer space exploration http://somafm.com/deepspaceone.pls
Space Station Soma: Spaced-out ambient and mid-tempo electronica http://somafm.com/spacestation.pls
Drone Zone: Atmospheric textures with minimal beats http://somafm.com/dronezone.pls
DEF CON Radio: Music for Hacking http://somafm.com/defcon.pls
Sonic Universe: Transcending the world of jazz http://somafm.com/sonicuniverse192.pls
Fluid: Drown in the electronic sound of instrumental hiphop future soul and liquid trap http://somafm.com/fluid130.pls
Cliqhop IDM: Blips n beeps backed mostly w/beats http://somafm.com/cliqhop.pls
NTS Radio Infinite Mixtapes - Slow Focus https://stream-mixtape-geo.ntslive.net/mixtape
Ambient Art Foundation-Romania http://185.80.220.12:2199/tunein/ambientart.pls
@lee2sman
lee2sman / script.js
Last active April 18, 2023 20:11
example code snippets, from office hours with Fidelis, to select random images from an array, random text, etc
let myImages = [
"image1.jpg",
"image2.jpg",
"image3.jpg"
]
//NOTE:
//ALL CODE SNIPPETS WITH $ BELOW ARE USING jQUERY!
//
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
</head>
<body>
<p>This is a demo for Fidelis.</p>
1. Update all package system
sudo xbps-install -Suv
2. add non-free repo
sudo xbps-install -Rs void-repo-nonfree
3. Software & utilities
sudo xbps-install -Rs xdg-desktop-portal xdg-desktop-portal-gtk xdg-user-dirs xdg-user-dirs-gtk xdg-utils vlc pipewire libspa-bluetooth noto-fonts-cjk noto-fonts-emoji noto-fonts-ttf noto-fonts-ttf-extra libreoffice-writer libreoffice-calc libreoffice-impress rhythmbox neofetch ntfs-3g gimp inkscape lm_sensors wget udisks2 gvfs mtpfs gvfs-mtp gvfs-gphoto2 xtools WoeUSB xz unrar qt5-wayland nano ffmpeg Kooha handbrake inxi streamlink
4. Install chrome gnome, gnome menu For Gnome & extension
@lee2sman
lee2sman / style.css
Created April 17, 2023 04:51
a stylesheet to place a sole canvas element in the center of the page via flexbox
html, body {
margin: 0;
padding: 0;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
@lee2sman
lee2sman / readme.txt
Created October 15, 2022 18:42
sleeping in the pandemic (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html