Skip to content

Instantly share code, notes, and snippets.

View appleboy's full-sized avatar
🔥
On Fire

Bo-Yi Wu appleboy

🔥
On Fire
View GitHub Profile
@appleboy
appleboy / docker-compose.bitbucket.yml
Created November 11, 2017 14:39
Drone with bitbucket config
version: '2'
services:
drone-server:
image: drone/drone:0.8
ports:
- 8080:8000
- 9000:9000
volumes:
- ./:/var/lib/drone/
@appleboy
appleboy / requirement.md
Last active November 10, 2017 14:48
Drone 事前準備

Drone 事前準備

請使用 Linux 或 MacOS 來進行 Drone 實戰,如果你是使用 Windows 環境,請務必裝好 VM 或者是使用 Digital Ocean 機器。Do 機器可以使用小時計費 可以選用最小方案 $20/month,每小時大約 0.03 美金。請務必先安裝底下兩項軟體:

package main
import (
"fmt"
"log"
"golang.org/x/crypto/bcrypt"
)
func main() {
@appleboy
appleboy / .drone.yml
Created October 8, 2017 13:30
drone scp config example.
scp_dev:
image: appleboy/drone-scp
pull: true
host: example.com
port: 22
username: deploy
target: /home/deploy/drone/${DRONE_REPO}
secrets:
- source: deploy_key
target: scp_key
@appleboy
appleboy / deploy.yml
Created July 31, 2017 13:05
drone server + agent for docker swarm
version: "3"
networks:
traefik:
external: true
internal:
internal: true
volumes:
minio:
@appleboy
appleboy / gitea_install.md
Last active January 20, 2024 09:48
how to install gitea in Ubuntu/Debian.

Gitea

Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket or Gitlab. The initial development have been done on Gogs but we have forked it and named it Gitea. If you want to read more about the reasons why we have done that please read this blog post.

Run Gitea service

Download Gitea binary from download page first.

$ wget https://dl.gitea.io/gitea/1.1.0/gitea-1.1.0-linux-amd64 -O gitea
@appleboy
appleboy / gitea
Last active February 17, 2017 07:01
Gitea Init Script with MySQL
#!/bin/sh
### BEGIN INIT INFO
# Provides: gitea
# Required-Start: $syslog $network mysql
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: A self-hosted Git service written in Go.
# Description: A self-hosted Git service written in Go.
### END INIT INFO
@appleboy
appleboy / setting.json
Last active July 25, 2017 09:39
Visual Studio Code editor setting
// Place your settings in this file to overwrite the default settings
{
// Controls if the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.
"editor.formatOnPaste": true,
// Control the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid'
"editor.cursorBlinking": "solid",
// Controls the font family.
"editor.fontFamily": "Fira Code",
@appleboy
appleboy / recruit.md
Last active April 25, 2018 15:55
[合肥][8K-15K] 联发科技(合肥)有限公司招聘 Web 后端开发 (1名)

公司:联发科技(合肥)有限公司

工作地点:230088 合肥市黄山路622号资讯产业基地软件研究中心B座

招聘职位: Web 后端开发

福利待遇: 正式员工: 8K-15K、14薪、五险一金

学历: bachelor (含)以上

@appleboy
appleboy / template.handlebar
Last active October 27, 2016 07:47
test golang handlebar template
Trigger from {{ build.author }}