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 | |
| ## This shell script is used with https://github.com/TekWizely/pre-commit-golang | |
| # You should add it to your .pre-commit-config.yaml file with the options like | |
| # | |
| # - repo: https://github.com/tekwizely/pre-commit-golang | |
| # rev: v1.0.0-rc.1 | |
| # hooks: | |
| # - id: go-mod-tidy-repo | |
| # - id: golangci-lint-mod |
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
| for((i=1;i<=10302;i++)); | |
| do | |
| echo "" | |
| echo "" | |
| echo "Start download book from $i" | |
| echo "" | |
| echo "" | |
| curl "https://www.tianlangbooks.com/$i.html" -H 'authority: www.tianlangbooks.com' --data-raw 'secret_key=359198&Submit=%E6%8F%90%E4%BA%A4' --compressed | grep "蓝奏云盘" >> download.txt | |
| done |
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
| version: "3.4" | |
| services: | |
| miniflux: | |
| image: miniflux/miniflux:latest | |
| container_name: miniflux | |
| depends_on: | |
| - rsshub | |
| - postgres | |
| ports: | |
| - 1541:8080 |
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 | |
| # Patch current talebook for adding permission | |
| grep -qxF 'user.permission = ' /var/www/talebook/webserver/handlers/user.py || sed -i '/user.email = email/a \ \ \ \ \ \ \ \ user.permission = '\''DEPRU'\''' /var/www/talebook/webserver/handlers/user.py | |
| # Start talebook | |
| source /var/www/talebook/docker/start.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
| #!/usr/bin/env bash | |
| # Download metadata, modify these as your needs. | |
| ## The directory to save the downloaded files. | |
| download_directory="/volume1/Download/EPUB" | |
| ## The website you want to visit. | |
| calibre_site="http://soulseeker.myds.me:25788" | |
| ## The formats you want to download. We only download the first present format. | |
| ## All the formats should be upper case. | |
| allow_formats=( EPUB MOBI AZW3 ) |
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
| # Repo: apache/flink | |
| # Fork: streamnative/flink | |
| # Prepare the working enviroment | |
| ## Clone the forked repository | |
| git clone git@github.com:streamnative/flink.git | |
| ## Add the original repository as the upstream git remote | |
| git remote add upstream git@github.com:apache/flink.git |
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 | |
| # Builds protoc executable into target/<OS>/<ARCH>/protoc.exe; optionally builds | |
| # protoc plugins into target/<OS>/<ARCH>/protoc-gen-*.exe | |
| # | |
| # Usage: ./build-protoc.sh <OS> <ARCH> <TARGET> | |
| # | |
| # <TARGET> can be "protoc" or "protoc-gen-javalite". Supported <OS> <ARCH> | |
| # combinations: | |
| # HOST <OS> <ARCH> <COMMENT> |
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
| cd /Applications/Thunder.app/Contents/PlugIns | |
| rm -rf featuredpage.* advertising.* xlbrowser.* activitycenter.* xlplayer.* xiazaibao.* iOSThunder.* searchtask.* lixianspace.* softmanager.* webgame.* livestream.* |
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 json | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "strings" | |
| "github.com/gin-gonic/gin/binding" |
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 ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| const ( | |
| width = 80 |
NewerOlder