git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Assuming you llvm installed (comes as standard on Mac OS Mavrick xtools)
Create a helloworld.c file:
#include<stdio.h>
int main()
{
int x=3;
This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].
We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.
Each commit message consists of a header, a body, and a footer.
To keep the changes from the commit you want to undo
$ git reset --soft HEAD^
To destroy the changes from the commit you want to undo
$ git reset --hard HEAD^
You can also say
set firewall options mss-clamp interface-type all | |
set firewall options mss-clamp mss 1380 | |
set firewall options mss-clamp6 interface-type all | |
set firewall options mss-clamp6 mss 1360 |
# Example: npm unpublish the-package from 0.5.31 to 0.5.41 | |
for i in $(seq 31 41); do npm unpublish "the-package@0.5.$i"; done | |
# list available versions of the-package: | |
npm show the-package versions |
const uuidV4 = require('uuid/v4'); | |
import { Polly } from '@pollyjs/core'; | |
import FetchAdapter from '@pollyjs/adapter-fetch'; | |
import LocalStoragePersister from '@pollyjs/persister-local-storage'; | |
Polly.register(FetchAdapter); | |
Polly.register(LocalStoragePersister); | |
Cypress.Commands.add('mockVisit', (url, mocks = () => null, options) => { | |
return cy.visit( |
body { | |
text-align: justify; | |
} | |
code, pre { | |
font-family: "Hack", monospace; | |
} | |
h1, h2, h3, h4, h5, h6 { | |
text-align: left; |
This is largely based off of this article by Hulu and their roku-dev-cli tool.
Requirements:
The main requirement is a Mac with 2 available network interfaces WIFI <-> WIFI, LAN <-> WIFI, etc. This should work on other platforms as well but isn't covered here.
Setup
The first thing we need is Homebrew. If you've never used it before it's a great package manager for macOS that makes installing programs easier. Open Terminal and paste
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
and hit enter