Skip to content

Instantly share code, notes, and snippets.

@amitosdev
amitosdev / serverless-http-evemt.md
Last active May 7, 2024 09:49
Serverless HTTP Event
@amitosdev
amitosdev / st-benchmark.js
Created December 28, 2017 11:40
Js stack trace benchmark
const Benchmark = require('benchmark')
const suite = new Benchmark.Suite()
const stack = require('callsite')
const stackTrace = require('stack-trace')
suite.add('with callsite module', function () {
class Test {
constructor(name) {
this.name = name
}
@amitosdev
amitosdev / macShell.md
Created August 2, 2017 05:02
Mac Shell

Shell

So what is a shell? In short, a shell is an interface that allows a user to communicate with your operating system. They can come in two forms, those being GUIs (Graphical User Interfaces) and CLIs (Command Line Interfaces). Microsoft Windows is a good example of a common GUI, Windows provides a desktop, task bar, start menu as well as a file browser, all of which aid the user in communicating with their operating system. CLIs are not so complex and are limited to a simple command line that takes keyboard inputs from the user to perform various tasks, although this may seem like a more primitive way of doing things, you'd be surprised how much more efficiently you can get things done once you're experienced with the command line.

Bash and Zsh (Z-shell) are different types of CLI shells. Unix-based systems (that includes Mac OS X) use Bash by default. To tailor our terminal to be more awesome, we're going to be changing our default shell to Zsh.

Prezto is a configuration framework for Zsh. It comes s