Skip to content

Instantly share code, notes, and snippets.

View tsdtsdtsd's full-sized avatar

Orkan Alat tsdtsdtsd

View GitHub Profile
@uudashr
uudashr / Dockefile
Last active July 15, 2022 00:52
Docker and entrypoint
# == Builder ==
FROM golang:1.13.7-alpine3.11 as builder
RUN apk add --no-cache \
bash=5.0.11-r1 \
git=2.24.1-r0 \
mercurial=5.2.1-r0 \
openssh-client=8.1_p1-r0
ARG SSH_PRIVATE_KEY
@thomaspoignant
thomaspoignant / Makefile
Last active August 30, 2025 22:19
My ultimate Makefile for Golang Projects
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=example
VERSION?=0.0.0
SERVICE_PORT?=3000
DOCKER_REGISTRY?= #if set it should finished by /
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true
GREEN := $(shell tput -Txterm setaf 2)
@peterrus
peterrus / tilix_backup.sh
Created June 17, 2021 20:06
Backs up and restores Tilix settings
#!/usr/bin/env bash
# Backs up and restores tilix settings
set -e
if [[ $1 == 'backup' ]]; then
dconf dump '/com/gexperts/Tilix/' > tilix-settings.dconf
echo "backup done"
exit 0
@alexedwards
alexedwards / Makefile
Last active October 30, 2025 12:39
Boilerplate Makefile for Go projects
# Change these variables as necessary.
main_package_path = ./cmd/example
binary_name = example
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help