代码拉取完成,页面将自动刷新
同步操作将从 bitren520/felix 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
config.toml
file[spiderhn]
cookie="user=neoxhau&SlKqTK32QSFSiWQu1vGgCr4aqvTx5NxT" #some cookie for hacknews spider
userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36"
youdaoAppKey="xxx" # youdao tranlate app key
youdaoAppHost="http://openapi.youdao.com/api"
youdaoAppSecret="xx" # youdao tranlate app secret
[felix]
slack="https://felix.mojotv.cn/api/wslog/hook-api?_t=kiz9Wf-O6_lbY2pz2lGEeA"
[sshw]
addr=":2222"
user="xxx" # init user
password="xxx" # init password
secret="9cAmRT3y&s6n$*3Lx*LaWZIi9I7yoNSK" # jwt secret 32 byte
expire= 24 #jwt expire hours
[tech_mojotv_cn]
srcDir="D:\\code\\tech.mojotv.cn" # my jekyll blog
[libragen_cn]
srcDir="D:\\code\\libragen.cn" # my jekyll blog about libragen
提供的命令:
$ felix -h
Usage:
felix [flags]
felix [command]
Available Commands:
brofist Pewdiepie needs your help.Do your part to subscribe Pewdiepie's Youtube Channel.
clean purge all felix configuration
ginbin Ginbin allows you to embed a directory of static files into your Go binary to be later served from github.com/gin-goin/gin
ginbro generate a RESTful codebase from SQL database
godoc golang.google.cn/pkg
help Help about any command
json open a tab in browser to convert json to golang struct
scpd scp download file or folder
scpu scp upload a file or a folder
ssh open a ssh terminal
sshad add a ssh connection configuration
sshdu duplicate a ssh connection
sshedit update a ssh connection
sshexport export all ssh connection configuration to a csv file
sshimport import massive ssh connection configuration from a csv file
sshinfo view a ssh connection
sshls list all ssh connection configuration or search by hostname
sshproxy ssh port proxy
sshrm delete a ssh connection
sshsocks start a socks4/5 proxy
sshw open a web UI for Felix http://localhost:2222
task list all rows in TaskList
taskad add a row into TaskList
taskok set a row done in TaskList
taskrm remove a row in TaskList
Flags:
-h, --help help for felix
--verbose verbose
-V, --version show binary build information
Use "felix [command] --help" for more information about a command.
go get github.com/libragen/felix
go install
felix -h
or just go build
run binary by ./felix
felix sshw
$ felix sshw -h
the demo website is http://home.mojotv.cn:2222
Usage:
felix sshw [flags]
Flags:
-a, --addr string listening addr (default ":2222")
-x, --expire uint token expire in * minute (default 1440)
-h, --help help for sshw
-p, --password string auth password (default "admin")
-s, --secret string jwt secret string
-u, --user string auth user (default "admin")
Global Flags:
--verbose verbose
$ felix sshw
use random string as jwt secret: @Ubr)Vrp~Zoo6Rvrk1PP1*ZXPYby_Z)s
login user: admin
login password: admin
login expire in 1440 minutes
[GIN-debug] [WARNING] Now Gin requires Go 1.6 or later and Go 1.7 will be required soon.
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "_release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] POST /api/login --> github.com/libragen/felix/ssh2ws/controllers.GetLoginHandler.func1 (4 handlers)
[GIN-debug] GET /api/ws/:id --> github.com/libragen/felix/ssh2ws/controllers.WsSsh (5 handlers)
[GIN-debug] GET /api/ssh --> github.com/libragen/felix/ssh2ws/controllers.SshAll (5 handlers)
[GIN-debug] POST /api/ssh --> github.com/libragen/felix/ssh2ws/controllers.SshCreate (5 handlers)
[GIN-debug] GET /api/ssh/:id --> github.com/libragen/felix/ssh2ws/controllers.SshOne (5 handlers)
[GIN-debug] PATCH /api/ssh/:id --> github.com/libragen/felix/ssh2ws/controllers.SshUpdate (5 handlers)
[GIN-debug] DELETE /api/ssh/:id --> github.com/libragen/felix/ssh2ws/controllers.SshDelete (5 handlers)
[GIN-debug] GET /api/sftp/:id --> github.com/libragen/felix/ssh2ws/controllers.SftpLs (5 handlers)
[GIN-debug] GET /api/sftp/:id/dl --> github.com/libragen/felix/ssh2ws/controllers.SftpDl (5 handlers)
[GIN-debug] GET /api/sftp/:id/cat --> github.com/libragen/felix/ssh2ws/controllers.SftpCat (5 handlers)
[GIN-debug] GET /api/sftp/:id/rm --> github.com/libragen/felix/ssh2ws/controllers.SftpRm (5 handlers)
[GIN-debug] GET /api/sftp/:id/rename --> github.com/libragen/felix/ssh2ws/controllers.SftpRename (5 handlers)
[GIN-debug] GET /api/sftp/:id/mkdir --> github.com/libragen/felix/ssh2ws/controllers.SftpMkdir (5 handlers)
[GIN-debug] POST /api/sftp/:id/up --> github.com/libragen/felix/ssh2ws/controllers.SftpUp (5 handlers)
[GIN-debug] Listening and serving HTTP on :2222
felix ginbro
快速的根据SQL(支持 MySql/SQLite/PostgreSQL)数据库生成felix ginbro
command 功能迁移自 libragen/ginbro.项目
生成的wordpress项目golang RESTful APIs
wordpress RESTful Golang Demo代码预览
$ felix ginbro
Error: required flag(s) "appDir", "dbAddr" not set
Usage:
felix ginbro [flags]
Examples:
felix rest -u root -p password -a "127.0.0.1:3306" -d dbname -c utf8 --authTable=users --authColumn=pw_column -o=FelixRestOut"
Flags:
-o, --appDir string app's code output directory
-l, --appListen string app's listening addr (default "127.0.0.1:5555")
--authColumn string bcrypt password column (default "password")
--authTable string login user table (default "users")
-a, --dbAddr string database connection addr (default "127.0.0.1:3306")
-c, --dbCharset string database charset (default "utf8")
-n, --dbName string database name
-p, --dbPassword string database user password (default "password")
-t, --dbType string database type: mysql/postgres/mssql/sqlite (default "mysql")
-u, --dbUser string database username (default "root")
-h, --help help for ginbro
Global Flags:
--verbose verbose
required flag(s) "appDir", "dbAddr" not set
felix sshls
felix ssh 3
felix ssh 2
felix sshsocks 34 -l 1080
felix taskad
$HOME/.felix.db
felix ginbro
架构逻辑gorm.Model
的结构体os.exec
执行 go fmt
安装golang规范格式化代码仓库felix sshls
Logicfelix ssh 9
Logicstdin
and stdout
监听sudo命令行提示输入密码信息.自动输入sudo密码.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。