Skip to content

Instantly share code, notes, and snippets.

View latish's full-sized avatar

Latish Sehgal latish

View GitHub Profile

Creating a bootable OS X Mavericks USB installer

  • First, plug in an 8GB (or bigger) USB drive, and use Disk Utility to erase it
  • If you use the default settings, you should wind up with a blank drive at /Volumes/Untitled.

With that volume in place, and with the Mavericks installer sitting in /Applications/Install\ OS\ X\ Mavericks.app, run the following command in your terminal to create a bootable install media:

sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
@latish
latish / conemu.ps1
Created December 11, 2013 23:52 — forked from Kevnz/conemu.ps1
function tab
{
$path = Get-Location
$end = "-new_console:d:" + $path.Path
& "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" $end
}
function pane
{
$path = Get-Location
<div *ngIf="hero">
<h2>{{hero.name | uppercase}} Details</h2>
<div><span>id: </span>{{hero.id}}</div>
<div>
<label>name:
<input [(ngModel)]="hero.name" placeholder="name"/>
</label>
</div>
<button (click)="goBack()">go back</button>
<button (click)="save()">save</button>
<app-hero-detail-ui
[hero]="hero$ | async"
(save)="save($event)"
(goBack)="goBack()"
></app-hero-detail-ui>
<div *ngIf="hero">
<h2>{{ hero.name | uppercase }} Details</h2>
<div><span>id: </span>{{ hero.id }}</div>
<div>
<label>name: <input [(ngModel)]="hero.name" placeholder="name" /> </label>
</div>
<button (click)="goBackClicked()">go back</button>
<button (click)="saveClicked()">save</button>
</div>
import { HeroDetailContainerComponent } from "./hero-detail.container.component";
import { Hero } from "../hero";
import { of } from "rxjs";
describe('Hero Detail Component', ()=>{
let component, routeMock, paramMock, heroServiceMock, locationMock;
beforeEach(()=>{
paramMock = jasmine.createSpyObj('paramMap', ['get']);
routeMock = {snapshot:{paramMap:paramMock}};
heroServiceMock = jasmine.createSpyObj('heroService', ['getHero', 'updateHero']);
locationMock = jasmine.createSpyObj('location', ['back']);