Skip to content

Instantly share code, notes, and snippets.

@sovrinbloc
sovrinbloc / settings.sql.log
Created October 9, 2022 02:40
Settings table
mysql> select * From settings \G;
*************************** 1. row ***************************
S_id: 1
S_desc: pointsName
S_value: Diamonds
*************************** 2. row ***************************
S_id: 2
S_desc: gangName
S_value: Faction
@sovrinbloc
sovrinbloc / .colors
Created August 5, 2022 23:44
All Bash Color scheme variables and styles for iTerm/Bash Scripts, along with demonstration of usage.
#!/usr/bin/env bash
###############################################################################
# Joseph Alai. 2022/08/05
###############################################################################
# Color schemes for iTerm/Bash Scripts along with demonstration of usage.
###############################################################################
SCRIPT_NAME="Colors"
RED='\033[0;31m'
@sovrinbloc
sovrinbloc / git-add.sh
Last active May 20, 2021 21:05
Git Add Messages: Created Messages for every Git Add to Append to Git Commit
#!/bin/bash
# git-add script to accumulate git-add messages to append to git commit message
#
# Copyright May 20, 2021 Joseph Alai
#######################################
# Stage a file and append staging message
# to add to commit message.
@sovrinbloc
sovrinbloc / pixel.go
Created November 24, 2020 23:11
Pixel Tracker GIF with Client IP Address Gin Gonic
package web
import (
"github.com/gin-gonic/gin"
"log"
)
var GIF = []byte{
71, 73, 70, 56, 57, 97, 1, 0, 1, 0, 128, 0, 0, 0, 0, 0,
255, 255, 255, 33, 249, 4, 1, 0, 0, 0, 0, 44, 0, 0, 0, 0,
@sovrinbloc
sovrinbloc / nginx.conf
Created April 6, 2019 22:46 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@sovrinbloc
sovrinbloc / *.go
Created October 21, 2018 01:13
Why won't my flags work?
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*