The purpose of this document is to simplify development for Flipper Zero platform.
It's my cure from
oh, great, now I have to rebuild my app. Again...
DON'T PANIC!
The purpose of this document is to simplify development for Flipper Zero platform.
It's my cure from
oh, great, now I have to rebuild my app. Again...
DON'T PANIC!
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
File | Purpose |
---|---|
/etc/compose/docker-compose.yml |
Compose file describing what to deploy |
/etc/systemd/system/docker-compose-reload.service |
Executing unit to trigger reload on docker-compose.service |
/etc/systemd/system/docker-compose-reload.timer |
Timer unit to plan the reloads |
/etc/systemd/system/docker-compose.service |
Service unit to start and manage docker compose |
# fish completion for buffalo | |
function __fish_buffalo_grifts | |
command grift list $argv ^/dev/null | string match -r '\s.*?#' | string trim -c ' #' | string trim | |
end | |
# general | |
complete -xc 'buffalo' -n '__fish_use_subcommand' -s h -l help -d 'help for buffalo' | |
# build |
https://coreosfest2017.sched.com/event/AWYc/best-practices-for-go-grpc-services-doug-fawley-google
Just small note for me. Hope the slide will be opened.
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
#! /bin/sh | |
GOOS=linux go build -o $2 "$1" | |
GOOS=linux go build -ldflags="-s -w" -o $2.-sw "$1" | |
upx -f --brute -o $2.upx $2 | |
upx -f --brute -o $2.-sw.upx $2.-sw | |
GOOS=linux gotip build -o $2.tip "$1" | |
GOOS=linux gotip build -ldflags="-s -w" -o $2.tip.-sw "$1" | |
upx -f --brute -o $2.tip.upx $2.tip |
Directly from CLI
alias x='exit'
funcsave x
or create a file in
~/.config/fish/functions
with name
package main | |
import ( | |
"bufio" | |
"encoding/csv" | |
"encoding/json" | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" |