Skip to content

Instantly share code, notes, and snippets.

View tcarreira's full-sized avatar

Tiago Carreira tcarreira

View GitHub Profile
@tcarreira
tcarreira / 0_reuse_code.js
Created July 10, 2017 16:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# Enable SSH
touch /tmp/1/ssh
# Configure WiFi
cat > /tmp/1/wpa_supplicant.conf <<EOF
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<TWO_LETTER_ISO_COUNTRY_CODE>
network={
@tcarreira
tcarreira / Go-Makefile
Created April 11, 2023 21:12 — forked from thomaspoignant/Makefile
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)