This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Create the directory if it doesn't exist | |
| sudo mkdir -p /var/log/caddy | |
| # Set ownership to caddy user and group | |
| sudo chown caddy:caddy /var/log/caddy | |
| # Set appropriate permissions (755 for directory) | |
| sudo chmod 755 /var/log/caddy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Git Pull Watcher Service | |
| After=caddy.service | |
| StartLimitIntervalSec=0 | |
| [Service] | |
| Type=simple | |
| ExecStart=/opt/webserver/git_pull_watcher.sh | |
| Restart=always | |
| RestartSec=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| TRIGGER_FILE="/var/www/example.com/triggers/git_pull_trigger" | |
| LOG_FILE="/var/log/git_pull_watcher.log" | |
| REPO_PATH="/var/www/example.com" | |
| log() { | |
| echo "$(date): $1" >> "$LOG_FILE" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // GitHub webhook secret (set this in your GitHub webhook settings) | |
| $secret = "Y0UR-secret-text-here!"; | |
| // Get the payload | |
| $payload = file_get_contents('php://input'); | |
| // Verify the signature | |
| $signature = $_SERVER['HTTP_X_HUB_SIGNATURE'] ?? null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Jekyll | |
| class YouTubeEmbed < Liquid::Tag | |
| def initialize(tag_name, input, tokens) | |
| super | |
| @input = input.strip | |
| end | |
| def render(context) | |
| parts = @input.split(' ') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 8360-0101-0044-4084-1936 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # file: _plugins/cdn_img.rb | |
| module Jekyll | |
| class CDNImageTransformer < Generator | |
| def generate(site) | |
| @site = site | |
| @cdn_url = "https://cdn.example.com" | |
| @site.pages.each { |page| process(page) } | |
| @site.posts.docs.each { |post| process(post) } | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MaBoShi DSlite mod idea | |
| $fn = 50; | |
| module roundedcube_simple(size = [1, 1, 1], center = false, radius = 0.5) { | |
| size = (size[0] == undef) ? [size, size, size] : size; | |
| translate = (center == false) ? | |
| [radius, radius, radius] : | |
| [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "expected_update_period_in_days": "1", | |
| "url": [ | |
| "https://auctions.yahoo.co.jp/search/search?p=花札&en=Hanafuda&exflg=1&b=1&n=100&s1=new&o1=d&mode=1", | |
| ], | |
| "type": "html", | |
| "mode": "on_change", | |
| "extract": { | |
| "url": { | |
| "css": "a.Product__titleLink", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "NDS MaBoShi", | |
| "identifier": "com.gingerbeardman.delta.ds.maboshi", | |
| "gameTypeIdentifier": "com.rileytestut.delta.game.ds", | |
| "debug": false, | |
| "representations": { | |
| "iphone": { | |
| "edgeToEdge": { | |
| "portrait": { | |
| "extendedEdges": { |