Skip to content

Instantly share code, notes, and snippets.

View iwa's full-sized avatar
☁️

iwa

☁️
View GitHub Profile
@iwa
iwa / tsconfig.json
Created May 1, 2020 17:08
Personal TS compiler config
{
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"outDir": "./build",
"rootDir": "./src",
"declaration": false,
"noImplicitAny": true,
"resolveJsonModule": true,
"typeRoots": ["./node_modules/@types"]
@iwa
iwa / export.sh
Last active May 7, 2020 13:19
Mongoexport all collections to json (updated)
#!/bin/bash
DB=$1
COLLECTIONS=$(mongo localhost:27017/$DB --quiet --eval "db.getCollectionNames()" | grep \" | tr -d '\[\]\"[:space:]' | tr ',' ' ')
for collection in $COLLECTIONS; do
echo "Exporting $DB/$collection ..."
mongoexport --db=$DB -c=$collection -o=$collection.json
done
@iwa
iwa / .hyper.js
Created July 10, 2020 07:07
personnal hyper terminal config
"use strict";
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'canary',
// default font size in pixels for all tabs
Process: DiscreteScroll [631]
Path: /Applications/DiscreteScroll.app/Contents/MacOS/DiscreteScroll
Identifier: Emre.DiscreteScroll
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: DiscreteScroll [631]
User ID: 501
Date/Time: 2020-07-10 23:08:19.130 +0200