Skip to content

Instantly share code, notes, and snippets.

Vishwas Shashidhar VishwasShashidhar

Block or report user

Report or block VishwasShashidhar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@VishwasShashidhar
VishwasShashidhar / es678.js
Last active Oct 4, 2018
ES6, ES7, ES8 Features
View es678.js
// This is sourced from the video -> https://www.youtube.com/watch?v=nZ1DMMsyVyI&t=2s
// Template Literals
const firstName = 'John';
const lastName = 'Doe';
console.log(`Hello: ${firstName} ${lastName}`); // Hello: John Doe
// Object Destructuring
const person = {
@VishwasShashidhar
VishwasShashidhar / app-to-iso.sh
Last active Jul 26, 2017
A shell script to create an iso image from a macOS .app installation file
View app-to-iso.sh
#!/bin/sh
flavour="Sierra"
hdiutil info | grep /dev/disk | grep partition | cut -f 1 | xargs hdiutil detach
hdiutil attach /Applications/Install\ macOS\ $flavour.app/Contents/SharedSupport/InstallESD.dmg -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.