All the steps and code snippets from my tutorial series Set up an Ubuntu Web Server on an Intel NUC
Get an Ubuntu image for your NUC
apt update -y & apt upgrade -y
#!/bin/bash | |
# bash_local_test_network.sh | |
# | |
# Purpose: | |
# Testing utility for local network file transfers in sandbox environments. | |
# STRICTLY FOR TESTING AND LEARNING - NOT FOR ACTUAL USE. | |
# | |
# Features: | |
# - Network validation | |
# - Automated setup |
=== Backstory === | |
So, while my normal home network was down, I found an old D-Link DIR-809 router lying around. I figured it could be useful to extend my iPhone's hotspot and connect multiple devices at home. After some tinkering, I managed to set it up in repeater mode, and it worked like a charm! Here's how I did it, in case you ever find yourself in a similar situation. | |
=== Guide: iPhone Hotspot to D-Link DIR-809 WiFi Router (Repeater Mode) === | |
1. **Initial Setup** | |
- Factory Reset: Start by resetting the router to clear any old settings. This ensures a clean slate for configuration. | |
- Use a clean browser (no cached data) to avoid issues during setup. | |
- Default Login: | |
- Username: admin |
import subprocess | |
import os | |
import re | |
# Fast draft by Kilian Lindberg | |
# Purpose: Accessibility, ease transcript processing for AI in case of limited visual video interaction limitation | |
# Disclaimer: Code as is, no claims but an inspirational aspiration | |
# Install yt-dlp using pip | |
subprocess.run(['pip', 'install', 'yt-dlp']) |
Get an Ubuntu image for your NUC
apt update -y & apt upgrade -y
#!/usr/bin/env python3 | |
import os | |
import time | |
from collections import deque | |
# Check if required libraries are installed. If not, install them. | |
libraries = { | |
"psutil": "psutil", | |
"curses": "windows-curses" if os.name == "nt" else "curses" | |
} |
import os | |
def search_keyword_in_file(file_path, keyword): | |
findings = [] | |
with open(file_path, 'r', errors='ignore') as file: | |
lines = file.readlines() | |
for idx, line in enumerate(lines, start=1): | |
if keyword.lower() in line.lower(): | |
findings.append((idx, line.strip())) | |
return findings |
Floating point texture test...
A Pen by Kilian K Lindberg on CodePen.
GitLab's SVG logo animated w/GreenSock https://about.gitlab.com
A Pen by Kilian K Lindberg on CodePen.
This was inspired by the Dribbble shot to the left of the canvas by Ramiro Galan, which can be found here: http://dribbble.com/shots/674715-Sparkle-Light-Trail.
Some browsers still won't fully clear a canvas all the way with the destination-out globalCompositeOperation, anyone know a work around?
A Pen by Karl Lindberg on CodePen.
<canvas></canvas> | |
<!-- Click to generate a new image --> |