Skip to content

Instantly share code, notes, and snippets.

View KyrosDigital's full-sized avatar

Nathan Jean KyrosDigital

View GitHub Profile
@KyrosDigital
KyrosDigital / fix_openssl_catalina.sh
Created September 22, 2020 21:47 — forked from FootballFan141/fix_openssl_catalina.sh
fix missing openssl files in catalina
#!/bin/bash
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
@KyrosDigital
KyrosDigital / memorySizeOfObject.js
Created November 2, 2017 14:18
calculate memory size of javascript object, it is not a accurate value!
function memorySizeOf(obj) {
var bytes = 0;
function sizeOf(obj) {
if(obj !== null && obj !== undefined) {
switch(typeof obj) {
case 'number':
bytes += 8;
break;
case 'string':