Skip to content

Instantly share code, notes, and snippets.

View rognales's full-sized avatar
🏠
Working from home

Zaiman Noris rognales

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rognales on github.
  • I am rognales (https://keybase.io/rognales) on keybase.
  • I have a public key ASAC2XEtCWsA1OgFmkVCRcyzlq6-24TlMXp-xMdFk6l7Jgo

To claim this, I am signing this object:

@rognales
rognales / helpful-docker-commands.sh
Created March 23, 2020 07:04 — forked from garystafford/helpful-docker-commands.sh
My list of helpful docker commands
###############################################################################
# Helpful Docker commands and code snippets
###############################################################################
### CONTAINERS ###
docker stop $(docker ps -a -q) #stop ALL containers
docker rm -f $(docker ps -a -q) # remove ALL containers
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter
# exec into container
@rognales
rognales / xls-streamer.js
Created September 9, 2021 04:45
Stream XLSX in NodeJS
const R = require('ramda')
const { getXlsxStream } = require('xlstream');
const buildFilter = (filter) => {
let query = {};
for (let keys in filter) {
if (filter[keys].constructor === Array && filter[keys].length > 0) {
query[keys] = filter[keys];
}
}