Skip to content

Instantly share code, notes, and snippets.

Vishwas Shashidhar VishwasShashidhar

View GitHub Profile
VishwasShashidhar / es678.js
Last active Oct 4, 2018
ES6, ES7, ES8 Features
View es678.js
// This is sourced from the video ->
// Template Literals
const firstName = 'John';
const lastName = 'Doe';
console.log(`Hello: ${firstName} ${lastName}`); // Hello: John Doe
// Object Destructuring
const person = {
VishwasShashidhar /
Last active Jul 26, 2017
A shell script to create an iso image from a macOS .app installation file
hdiutil info | grep /dev/disk | grep partition | cut -f 1 | xargs hdiutil detach
hdiutil attach /Applications/Install\ macOS\ $ -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/$flavour
hdiutil resize -size 8g /tmp/$flavour.sparseimage
hdiutil attach /tmp/$flavour.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build
You can’t perform that action at this time.