Skip to content

Instantly share code, notes, and snippets.

@yipo
yipo / LICENSE
Last active April 30, 2026 00:14
A collection of make targets that turn a fresh Ubuntu desktop into my familiar environment.
MIT License
Copyright (c) 2026 Yi-Pu Guo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR T
@yipo
yipo / apply.sh
Last active January 5, 2026 10:45
My "Dash to Panel" tweaks for an easier switch from Windows to Ubuntu
#!/bin/sh
set -e
dir=/org/gnome/shell/extensions/dash-to-panel/
dconf reset -f "$dir"
dconf load "$dir" < settings.ini
@yipo
yipo / .gitignore
Last active December 1, 2025 08:41
Write Modbus holding registers (using a custom function code).
*.pyc
/.venv/
@yipo
yipo / .gitignore
Last active September 17, 2025 08:46
event message
*.pyc
/.venv/
@yipo
yipo / .gitignore
Last active August 6, 2025 14:00
update event message ids
*.pyc
/.venv/
@yipo
yipo / .gitignore
Last active December 8, 2024 15:58
even up config version
/target
@yipo
yipo / .gitignore
Last active November 13, 2024 14:00
photon ↔ icms (device model)
*.pyc
/.venv/
@yipo
yipo / .gitignore
Last active October 18, 2024 04:40
thingnario logger 1.0
*.pyc
/.venv/
@yipo
yipo / .gitignore
Last active September 27, 2024 02:45
photon ↔ icms
*.pyc
/.venv/
@yipo
yipo / Dockerfile
Last active July 7, 2024 18:29
Build a PowerShell Docker image based on Alpine Linux.
# syntax=docker/dockerfile:1
# Based on the installation instructions on the following page.
# https://learn.microsoft.com/powershell/scripting/install/install-alpine
FROM alpine/curl AS download
ARG package=https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-linux-musl-x64.tar.gz
RUN curl -L $package -o /tmp/powershell.tar.gz
WORKDIR /tmp/release
RUN tar zxf /tmp/powershell.tar.gz