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
server { | |
if ($http_user_agent ~* (mj12bot|ahrefs|imagesift|BLEXBot|webmeup|toutiao|semrush|petalsearch|dataforseo)) { | |
return 402; | |
} | |
} |
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 Remove YouTube video on the top of NewsTalk | |
// @namespace https://newtalk.tw/ | |
// @version 0.1 | |
// @description remove the ads on the top | |
// @author zeroplex | |
// @match https://newtalk.tw/news* | |
// @run-at document-end | |
// @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
on: [push] | |
jobs: | |
"check PHP PSR": | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: "check out source code" | |
uses: "https://code.forgejo.org/actions/checkout@v4" | |
- name: "setup PHP" | |
uses: "shivammathur/[email protected]" |
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 |
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
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
/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
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
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
- name: phpfpm | |
image: php:8.1-alpine | |
imagePullPolicy: IfNotPresent | |
ports: | |
- containerPort: 9000 | |
lifecycle: | |
postStart: | |
exec: | |
command: | |
- "/bin/sh" |
NewerOlder