threejs gotchas

Lighting a large scene: DirectionalLight is the best simulation of daylight. But in a big world, you probably don’t want to light it all at once. You’ll need to update the light position and also it’s target position, what it uses to calculate it’s angle. The gotcha is: you have to run scene.add( light.target ) […]

bash resources

set_cache, a workaround to bundlers. Use CLEAR_FILE to prevent accidental sed overwrites. Replace all query string numbers with $1 arg to set_cache.

state handling

CSS: javascript:

running certbot with nginx on debian 10 for SSL certificates

The authoritative source: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-debian-10 TLDR: A records in place for [url] and www.[url]basic server block in /etc/nginx/sites-available/[domain]sudo apt updatesudo apt install python3-acme python3-certbot python3-mock python3-openssl python3-pkg-resources python3-pyparsing python3-zope.interfacesudo apt install python3-certbot-nginx(https) : sudo ufw status if needed: sudo ufw allow ‘Nginx Full’sudo ufw delete allow ‘Nginx HTTP’ Lastly: sudo certbot –nginx -d your_domain -d www.your_domain […]

pm2 101

process monitor 2 list apps pm2 dashboard: start with custom name: reset app list: empty log files

Bare Bones javascript Pub/Sub mechanism

systemd 101

a pocket reference Getting to know your system daemon Create your user-created service files in: The machine-created service files will go in: more in-depth: where do i put my systemd service file what is the difference between systemd system and user services Example a sample .service file, at /etc/systemd/system/hello.service: *common mistake – make sure to […]

country codes as a javascript object and array

As an array: [ [‘Zimbabwe’, 716, ‘ZWE’], [‘Zambia’, 894, ‘ZMB’], [‘South Africa’, 710, ‘ZAF’], [‘Mayotte’, 175, ‘MYT’], [‘Yemen’, 887, ‘YEM’], [‘Samoa’, 882, ‘WSM’], [‘Wallis and Futuna’, 876, ‘WLF’], [‘Vanuatu’, 548, ‘VUT’], [‘Viet Nam’, 704, ‘VNM’], [‘Virgin Islands (U.S.)’, 850, ‘VIR’], [‘Virgin Islands (British)’, 092, ‘VGB’], [‘Venezuela (Bolivarian Republic of)’, 862, ‘VEN’], [‘Saint Vincent and the […]

lorem ipsum

“Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat […]

resizing disk partitions on Linux

A bird’s eye view – does not cover creating disk partitions. Recommended tools to view your current partitions: gparted – launches a GUI parted – begin this command line program, and type ‘print’ The partition addresses you’re looking for will most likely be in the format: /dev/sda[X] basically: First allocate the space for the partitions, […]

MUDs

Some resources: https://www.titansoftext.com MUD Discord https://discord.gg/ETrUvvV Some favorite MUD’s: Free world / Cowboy Bebop CB-SC.com 5678 Isengard isengard.nazgul.com 4040 godwars2.org 93.93.128.88 3000 alice-MUD 35.229.90.14 5555 TCZ thechattingzone.uk 8342 LOM telnet playlom.com 4000
oko
friend