Skip to content

Instantly share code, notes, and snippets.

View 17xande's full-sized avatar

Alexandre 17xande

  • Johannesburg, South Africa
View GitHub Profile
@17xande
17xande / 8tracks.ts
Last active November 3, 2023 09:05
Deno script for printing track data for some specific 8tracks mixes
// Betsyrae's mixes from 8tracks.
const mixes = [420692,427734,449791,459125,605181,1026789,1199423,1339489,1511768,2395459,3203484,3203484,7337283];
type track = {
name: string,
performer: string,
year: string,
release_name: string,
}
@17xande
17xande / getgo.sh
Last active August 16, 2023 08:55
short script for downloading and installing lastest version of go in a linux amd64 environment
#! /bin/bash
wget "https://go.dev/dl/$(curl 'https://go.dev/VERSION?m=text' | head -n1).linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz
rm go*.linux-amd64.tar.gz
go version
@17xande
17xande / goInstall.sh
Last active October 28, 2023 15:48
Go one liner installer for Linux
# one-liner to install latest version of go in an amd64 environment.
wget "https://go.dev/dl/$(curl 'https://go.dev/VERSION?m=text' | head -n1).linux-amd64.tar.gz" && sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz
# alternative
curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && ./go_installer && rm go_installer
@17xande
17xande / goHttpStatic.go
Last active February 4, 2022 13:27
Simple Go HTTP Static Server
package main
import (
"log"
"net/http"
"os"
)
func Log(handler http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Keybase proof

I hereby claim:

  • I am 17xande on github.
  • I am 17xande (https://keybase.io/17xande) on keybase.
  • I have a public key ASBm5mYMCQn1Sw5wWU72CglDhwFNtVLkG4FK3mmicS78UQo

To claim this, I am signing this object:

@17xande
17xande / snipe-it.env
Created February 23, 2017 14:44
Test Snipe-IT .env file.
# Snipe-IT Settings
APP_ENV=production
APP_DEBUG=false
APP_KEY='base64:AAAAAAASASSSAASASASASASASASAS='
APP_URL=null
APP_TIMEZONE='Africa/Johannesburg'
APP_LOCALE=en-GB
# Database settings
DB_CONNECTION=mysql
@17xande
17xande / snipe-it docker-compose.yml
Last active July 14, 2022 06:52
test docker-compose file for Snipe-IT
version: "3"
services:
snipeit:
env_file: ./snipe-it.env
image: snipe/snipe-it
depends_on:
- mysql
ports:
- "80:80"
volumes: