Skip to content

Instantly share code, notes, and snippets.

services:
traefik:
image: traefik:latest
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /home/user/traefik/traefik.yml:/traefik.yml:ro
- /home/user/traefik/acme.json:/acme.json
- /home/user/traefik/config.yml:/config.yml:ro
environment:
@penyt
penyt / index.html
Created January 14, 2025 16:34
pi-pen
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pi Temperature Monitor</title>
<script src="/socket.io/socket.io.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
@penyt
penyt / red.bas
Last active October 8, 2024 02:04
word-track-revision
Sub InsertRed()
Dim rev As Revision
Dim rng As Range
Dim i As Integer
Dim revCount As Integer
' 先停止追蹤修訂
ActiveDocument.TrackRevisions = False
' 看追蹤修訂的數目
@penyt
penyt / 05-wildcard.conf
Created July 7, 2024 15:47
pihole-wildcard-dns
address=/hi.my.domain/192.168.0.1
@penyt
penyt / content.html
Last active January 16, 2025 14:24
hugo toc
<section class="article-content">
{{ partial "article/components/toc-inline" . }} <!--我放在這裡-->
{{ $wrappedTable := printf "<div class=\"table-wrapper\">${1}</div>" }}
<!--以下省略-->
{{ $title := .Get 0 }}
<!-- 格式: gist-title "title" user ID (檔名) -->
<div>
<p class="gist-title"> <a href="https://gist.github.com/{{ index .Params 1 }}/{{ index .Params 2 }}" target="_blank"> {{ $title }} </a> </p>
<script src="https://gist.github.com/{{ index .Params 1 }}/{{ index .Params 2 }}.js{{if len .Params | eq 4 }}?file={{ index .Params 3 }}{{end}}"></script>
</div>
<style>
@penyt
penyt / fish
Last active October 8, 2024 02:04
><((((º> ><((((º> ><((((º>
><((((º> ><((((º> ><((((º>
><((((º> ><((((º> ><((((º>
><((((º> ><((((º> ☾☽ ><((((º>
><((((º> ><((((º> ><((((º>
><((((º> ><((((º> ><((((º>
><((((º> ><((((º> ><((((º>
@penyt
penyt / hugobaseurl.yaml
Last active January 16, 2025 14:25
hugo base url
version: '3.8'
services:
server:
image: klakegg/hugo:0.101.0-ext-ubuntu
container_name: hugo
command: server --baseURL https://my.domain.com --appendPort=false # important baseURL setting
volumes:
- "/home/ubuntu/docker/hugo/Web:/src"
networks:
proxy:
@penyt
penyt / dockerps.sh
Last active January 16, 2025 14:25
docker ps formatting
docker ps --format="\nNAME 【{{.Names}}】\n - STATUS {{.Status}}\n - IMAGE {{.Image}}\n - 容器ID  {{.ID}}\n - COMMAND {{.Command}}\n - CREATED {{.CreatedAt}}\n - PORTS {{.Ports}}"