⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ej { | |
EJABBERD_HOME=/usr/local/ejabberd-commercial | |
EJABBERD_CTL=$EJABBERD_HOME/sbin/ejabberdctl | |
case "$1" in | |
restart) | |
$EJABBERD_CTL stop && $EJABBERD_CTL stopped; $EJABBERD_CTL start | |
;; | |
reload) | |
$EJABBERD_CTL update $2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppDelegate.m | |
// | |
// | |
// Created by Cory D. Wiles on 10/8/12. | |
// Copyright (c) 2013 Cory D. Wiles. All rights reserved. | |
// | |
#import "AppDelegate.h" | |
#import "iTunes.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get('/api/', function(req, res) { | |
// This endpoint | |
//returns the routes available in the api | |
var routes = []; | |
for(var verb in app.routes){ | |
app.routes[verb].forEach(function(route) { | |
var doc = route.callbacks[route.callbacks.length-1].toString().split('\n').filter(function(str) { | |
var doc = str.match(/(?:\s\/\/)(.*)/); | |
if(doc == null) return false; | |
return true; |
Prerequisites:
- One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
- A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.
Software components used:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hosts file to access US Netflix using Unblock US without their DNS. | |
67.216.222.61 movies.netflix.com | |
67.216.222.65 cbp-us.nccp.netflix.com | |
67.216.222.130 movies1.netflix.com | |
67.216.222.104 movies2.netflix.com | |
147.255.171.14 netflix.com | |
147.255.171.7 moviecontrol.netflix.com | |
69.197.181.166 api-global.netflix.com | |
67.216.222.83 api-us.netflix.com | |
147.255.227.2 api.netflix.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
DOMAIN=$1 | |
if [ -z "$DOMAIN" ]; then | |
echo -n 'Enter root domain (no www): ' | |
read input_d | |
DOMAIN=$input_d | |
fi |
OlderNewer