Skip to content

Instantly share code, notes, and snippets.

@jackgris
jackgris / DOCKERFILE
Created August 10, 2023 22:17 — forked from MatthewJamesBoyle/DOCKERFILE
production go dockerfile
FROM golang:1.21.0-bullseye as builder
COPY . /workdir
WORKDIR /workdir
ENV CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all"
ENV GOFLAGS="-buildmode=pie"
RUN go build -ldflags "-s -w" -trimpath ./cmd/app
@jackgris
jackgris / japanese_chinese_input_in_manjaro.md
Last active September 22, 2020 13:05 — forked from jasonzhouu/chinese_input_in_manjaro.md
Config Chinese and Japanese input method in Manjaro

1. Install packages

run:

yay -S adobe-source-han-sans-otc-fonts adobe-source-han-serif-otc-fonts  adobe-source-han-sans-jp-fonts otf-ipafont
yay -S ttf-monapo

Make sure you have commented out (add # to comment out) the following line in /etc/locale.gen file.

#ja_JP.UTF-8
@jackgris
jackgris / gist:a62b65d673c6f8cf05fb
Last active April 29, 2021 23:29 — forked from necrobious/gist:14d78ee9b4caff766152
How install GHC and Cabal on Ubuntu
# build with
# docker build -t 'necrobious/haskell-ghc-7.8-64' .
FROM ubuntu:14.04
MAINTAINER necrobious@gmail.com
ENV DEBIAN_FRONTEND noninteractive
####### Install Dependencies ###################################################
RUN apt-get -y update