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 / config.conf
Created May 6, 2024 19:06
an in-progress buggy RSS feed generator
blog_name="My blog"
blog_description="My blog description"

Let's update the software on our Pi.

sudo apt update
sudo apt upgrade
  1. Test python.
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 = [
<!DOCTYPE html>
<script src=""></script>
<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 / 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 / readme.txt
Created October 15, 2022 18:42
sleeping in the pandemic (PuzzleScript Script)
Play this game by pasting the script in
lee2sman / tsv-io.js
Created October 1, 2022 21:20
No library required. Imports a TSV (tab separated value) text file, then splits it to an array of lines, each split into an array separated by tabs.
.then((response) => response.text())
.then((data) => {
//split text file by newline and tab
//thanks to stackoverflow
timetable_data = data.split("\n").map(function (ln) {
return ln.split("\t");
//returns array of timetable data by line, separated on each line by tab separated value
lee2sman / index.html
Created October 1, 2022 20:24
trivial fengari example demonstrating manipulating the DOM with Lua
<!DOCTYPE html>
<html lang="en">
<title>Fengari test</title>
<script src="fengari-web.js"></script>
<script src="main.lua" type="application/lua" async></script>
<!DOCTYPE html>
.grid-container {
display: grid;
gap: 10px;
background-color: #2196F3;
padding: 10px;