Skip to content

Instantly share code, notes, and snippets.

View obernardovieira's full-sized avatar
🥸
do you even blockchain?

Bernardo obernardovieira

🥸
do you even blockchain?
View GitHub Profile
@obernardovieira
obernardovieira / dd_ibs_test.sh
Created October 25, 2020 12:39 — forked from paulofellix/dd_ibs_test.sh
Determine Best Block Size DD [Linux]
#!/bin/bash
# Since we're dealing with dd, abort if any errors occur
set -e
TEST_FILE=${1:-dd_ibs_testfile}
if [ -e "$TEST_FILE" ]; then TEST_FILE_EXISTS=$?; fi
TEST_FILE_SIZE=134217728
# Exit if file exists
#! /bin/bash
######################################################################
#
# This script generates an SSL certficate for local development. To
# execute the script, run `bash create-dev-ssl-cert.sh`. Sudo is
# needed to save the certificate to your Mac KeyChain. After the cert
# is generated, you can use `HTTPS=true yarn start` to run the web
# server.
#
@obernardovieira
obernardovieira / gist:fa70e8c28761bf5dedf1236beb0cd926
Created November 12, 2019 23:28 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@obernardovieira
obernardovieira / .d3v4-selectable-force-directed-graph
Created May 2, 2019 14:47 — forked from pkerpedjiev/.d3v4-selectable-force-directed-graph
D3v4 Selectable, Draggable, Zoomable Force Directed Graph
.
@obernardovieira
obernardovieira / walksync.js
Created March 25, 2019 23:01 — forked from kethinov/walksync.js
List all files in a directory in Node.js recursively in a synchronous fashion
// List all files in a directory in Node.js recursively in a synchronous fashion
var walkSync = function(dir, filelist) {
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(dir + file).isDirectory()) {
filelist = walkSync(dir + file + '/', filelist);
}
else {
@obernardovieira
obernardovieira / nginxproxy.md
Created March 18, 2019 16:07 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers