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 / i3bg3.py
Created October 17, 2024 05:55 — forked from glubsy/i3bg3.py
Improvements on u/caagr98's i3bg.py script for workspace-specific wallpapers
#!/usr/bin/env python3
#i3 per-workspace background for Caagr98 https://gist.github.com/Caagr98/f74e149403e5c1f92006158f09108a78
#deps: pip3 install python3-xlib i3ipc Pillow
# usage: i3bg2.py /path/to/directory
# where directory holds wallpapers to randomly pick from (optional)
import Xlib.threaded
import Xlib
import Xlib.display
from Xlib import Xatom
from PIL import Image
@lee2sman
lee2sman / readme.txt
Created September 22, 2024 22:00
island adrift (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@lee2sman
lee2sman / readme.txt
Created September 22, 2024 21:55
Noise Thing (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@lee2sman
lee2sman / readme.txt
Created September 22, 2024 21:44
Noise Thing (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@lee2sman
lee2sman / readme.txt
Created September 22, 2024 21:43
Phasing Piece (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@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 / 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