Skip to content

Instantly share code, notes, and snippets.

View soltrinox's full-sized avatar
🤖
Building Cybernetic Systems

Mr. Rosario soltrinox

🤖
Building Cybernetic Systems
View GitHub Profile
@soltrinox
soltrinox / README.md
Created February 2, 2021 08:22 — forked from jamesmishra/README.md
Using Terraform to run a docker-compose.yml file directly on an Amazon EC2

Introduction

This is a Hashicorp Terraform module that provisions an AWS EC2 instance for the purpose of running a given docker-compose.yml file.

Usage

# ===== OUR MAGIC DOCKER-COMPOSE.YML FILE HERE =====
# It is also possible to get Terraform to read an external `docker-compose.yml`
# file and load it into this variable.
# We'll be showing off a demo nginx page.
@soltrinox
soltrinox / README.md
Created February 2, 2021 08:22 — forked from jamesmishra/README.md
Using Terraform to run a docker-compose.yml file directly on an Amazon EC2

Introduction

This is a Hashicorp Terraform module that provisions an AWS EC2 instance for the purpose of running a given docker-compose.yml file.

Usage

# ===== OUR MAGIC DOCKER-COMPOSE.YML FILE HERE =====
# It is also possible to get Terraform to read an external `docker-compose.yml`
# file and load it into this variable.
# We'll be showing off a demo nginx page.
@soltrinox
soltrinox / gist:7ec1184d10d1a0867fb489377e2ab665
Last active March 26, 2021 22:01
BOUNDARY / CONSEQUENCE VIOLATION PROTOCOL >> A-Z STEPS
HOW TO DO BOUNDARIES RIGHT IN YOUR LIFE: 
[ PSYCHOLOGICAL DEFENSE SERIES ] TITLE: Establishment of  CONSCIOUS violation vs. UNCONSCIOUS violation of BOUNDARIES and the protocol for delivery of CONSEQUENCE due to BOUNDARY VIOLATION.
 
[DANGER DO NOT READ THIS PROTOCOL IF YOU HAVE INSECURITIES AND OR ARE OPERATING WITH PATHOLOGICAL INTENT ]
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! THIS IS A RAW PSYCH SELF-DEFENSE SYSTEM ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
[DANGER DO NOT READ THIS PROTOCOL IF YOU HAVE INSECURITIES AND OR ARE OPERATING WITH PATHOLOGICAL INTENT ]
-------------------
@soltrinox
soltrinox / BOUNDARIES.txt
Last active March 31, 2022 08:41
HOW TO DO BOUNDARIES RIGHT IN YOUR LIFE
`
HOW TO DO BOUNDARIES RIGHT IN YOUR LIFE:
[ PSYCHOLOGICAL DEFENSE SERIES ] TITLE: Establishment of CONSCIOUS violation vs. UNCONSCIOUS violation of BOUNDARIES and the protocol for delivery of CONSEQUENCE due to BOUNDARY VIOLATION.
[DANGER DO NOT READ THIS PROTOCOL IF YOU HAVE INSECURITIES AND OR ARE OPERATING WITH PATHOLOGICAL INTENT ]
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! THIS IS A RAW PSYCH SELF-DEFENSE SYSTEM ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
[DANGER DO NOT READ THIS PROTOCOL IF YOU HAVE INSECURITIES AND OR ARE OPERATING WITH PATHOLOGICAL INTENT ]
The Cynic's Book of Wisdom:
-Never discount the possibility you might live through it.
-In the end you, you are the only answer to the question: What to do?
-Sometimes you get a miracle. Don't expect another one.
-Before declaring victory over your opponent, make sure you are playing the same game.
-Sometimes the crazy person is right.
-Nothing is so destructive as what we believe to be true.
-The past is always waiting.
-You are in more danger from the other person's God than your own.
@soltrinox
soltrinox / json-to-ndjson.md
Created October 27, 2021 22:23 — forked from bzerangue/json-to-ndjson.md
JSON to NDJSON

NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.

  • Each line is a valid JSON value
  • Line separator is ‘\n’

1. Convert JSON to NDJSON?

cat test.json | jq -c '.[]' > testNDJSON.json
@soltrinox
soltrinox / gulp-task.js
Created November 24, 2021 02:38 — forked from timaschew/gulp-task.js
proxy browser-sync server with express and secure everything with basic auth
// just add pass server as your task function
// Start a server with LiveReload to preview the site in
const OUTPUT_PARENT = 'dist'
const OUTPUT_DIRECTORY = OUTPUT_PARENT + '/browser-sync'
function server(done) {
browser.init({
server: {
directory: true,
@soltrinox
soltrinox / index.slim
Created February 22, 2022 16:47
Two.js ArcSegments
.row
#draw-shapes
#controls
.row
.column.small-6
label starting angle
input#startAngle(type="range")
.column.small-6
label ending angle
// ∅ (∈)=q0
// ∅ (wa) = δ((∅(w), a) for w ∈ ∑*, a∈ ∑)
let NO_OF_CHARS = 256;
/* This function builds the TF table
which represents Finite Automata for a
given pattern */
function computeTransFunc(pat, M, TF) {
let i, lps = 0, x;
// Fill entries in first row
for (x = 0; x < NO_OF_CHARS; x++) {
let a = [
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'
];
function mobius(a, n, ind) {
let mobx = [];
for (var i = ind; i < n + ind; i++){