Skip to content

Instantly share code, notes, and snippets.

View bmino's full-sized avatar

Brandon bmino

  • SharkByte
  • Charleston, SC
  • X @bmino_
View GitHub Profile
@bmino
bmino / docker.sh
Created June 5, 2026 01:42
install docker without running a marathon
# Assumes Ubuntu installation
# Uninstall all conflicting packages
sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc podman-docker containerd runc | cut -f1)
# Add Docker's official GPG key:
sudo apt update -y
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
@bmino
bmino / apiInstantiationTest.js
Last active July 10, 2018 03:03
Node Binance Api Instantiation Test
const Api1 = require('node-binance-api');
const Api2 = require('node-binance-api');
let singleton1 = Api1();
let singleton2 = Api2();
let instance1 = new Api1();
let instance2= new Api1();
const OPTION_NAME = 'recvWindow';
@bmino
bmino / ModuleExample.js
Last active June 26, 2018 22:56
Create Instances and Singletons
let api = function Binance() {
let self = this;
self.cache = 0;
return {
setCache: function(val) {
self.cache = val;
},
getCache: function() {