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
// ==UserScript== | |
// @name Redirect Mobile Mediawiki to Desktop URL | |
// @namespace http://blog.zeroplex.tw/ | |
// @version 0.1 | |
// @description If Mediawiki opened in mobile page, redirect it to general page | |
// @author zeroplex | |
// @match https://*.m.wikipedia.org/* | |
// @grant none | |
// ==/UserScript== |
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 | |
error_reporting(E_ALL); | |
echo "connection to whois.twnic.net.tw\n"; | |
$address = gethostbyname('whois.iana.org.'); | |
$fp = @fsockopen($address, 43, $errno, $errstr, 5) or die("Socket Error " . $errno . " - " . $errstr); | |
stream_set_blocking($fp, true); |
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
#!/usr/bin/env bash | |
# Usage: | |
# dl.sh "https://www.youtube.com/watch?v=ec-IgIkEkmA" | |
# | |
# 限制檔案名稱長度,主要是為了避開 FAT、NTFS 的限制 | |
/path/to/yt-dlp/yt-dlp.sh \ | |
-o '%(title).150s-%(id)s.%(ext)s' \ | |
-f "bestvideo[height<=1080][ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" \ |
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: phpfpm | |
image: php:8.1-alpine | |
imagePullPolicy: IfNotPresent | |
ports: | |
- containerPort: 9000 | |
lifecycle: | |
postStart: | |
exec: | |
command: | |
- "/bin/sh" |
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
Feb 4 17:50:51 Zero-Lab-Router-F062F20-C WAN Connection: Fail to connect with some issues. | |
Feb 4 17:51:01 Zero-Lab-Router-F062F20-C WAN Connection: WAN was restored. | |
Feb 4 17:51:27 Zero-Lab-Router-F062F20-C WAN Connection: Fail to connect with some issues. | |
Feb 4 17:51:27 Zero-Lab-Router-F062F20-C WAN Connection: WAN was restored. | |
Feb 4 17:52:13 Zero-Lab-Router-F062F20-C WAN Connection: Fail to connect with some issues. | |
Feb 4 17:52:30 Zero-Lab-Router-F062F20-C WAN Connection: WAN was restored. | |
Feb 4 17:53:50 Zero-Lab-Router-F062F20-C WAN Connection: Fail to connect with some issues. | |
Feb 4 17:53:51 Zero-Lab-Router-F062F20-C WAN Connection: WAN was restored. | |
Feb 4 17:54:55 Zero-Lab-Router-F062F20-C WAN Connection: Fail to connect with some issues. | |
Feb 4 17:54:55 Zero-Lab-Router-F062F20-C WAN Connection: WAN was restored. |
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
apt-transport-https ca-certificates gnupg curl nano | |
vim-nox exuberant-ctags | |
net-tools fail2ban | |
aptitude | |
# Ubuntu Pro | |
sudo pro attach TOKEN |
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
/path/to/ubuntu/pool/universe/g$ dust -d 1 -w 40 -r | tee | |
374G └─┬ . | |
45G ├── gcc-10-cross | |
23G ├── gcc-13-cross-ports | |
22G ├── gcc-13-cross | |
15G ├── gcc-10-cross-ports | |
14G ├── gcc-14-cross-ports | |
14G ├── gcc-14-cross | |
12G ├── gcc-11-cross | |
12G ├── gcc-12-cross-ports |
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
package main | |
import ( | |
"io" | |
"os" | |
) | |
func main() { | |
// 1 MB | |
bufferSize := 1 * 1024 * 1024 |
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
// ==UserScript== | |
// @name hide medium pricing banner | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-08-13 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.medium.com/ | |
// @grant none | |
// ==/UserScript== |
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
# BUGGY | |
# This make docker host resolvd failed | |
# see: https://github.com/angristan/wireguard-install/issues/458 | |
services: | |
adguard: | |
image: adguard/adguardhome:latest | |
restart: unless-stopped | |
volumes: | |
- ./data/work:/opt/adguardhome/work | |
- ./data/conf:/opt/adguardhome/conf |