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
| sudo aptitude install coreutils-from-gnu | |
| The following NEW packages will be installed: | |
| coreutils-from-gnu{b} | |
| 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
| Need to get 6,902 B of archives. After unpacking 242 kB will be used. | |
| The following packages have unmet dependencies: | |
| coreutils-from-uutils : Conflicts: coreutils-from which is a virtual package, provided by: | |
| - coreutils-from-toybox (0.0.0~ubuntu25), but it is not going to be installed | |
| - coreutils-from-busybox (0.0.0~ubuntu25), but it is not going to be installed | |
| - coreutils-from-uutils (0.0.0~ubuntu25), but 0.0.0~ubuntu25 is installed |
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
| services: | |
| app: | |
| image: opensearchproject/opensearch:3.1.0 | |
| ports: | |
| - '9200:9200' | |
| - '9600:9600' | |
| environment: | |
| - 'OPENSEARCH_INITIAL_ADMIN_PASSWORD=secret' | |
| - 'discovery.type=single-node' | |
| - 'OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m' |
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/setup-php@2.31.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
| # 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 |
NewerOlder