(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |
lines with $ are commands | |
### install mkvtoolnix: | |
$ brew install mkvtoolnix | |
### list content of the mkv-file: | |
$ mkvmerge -i mymoviefile.mkv | |
### what will give you: |
# check swap usage | |
sysctl vm.swapusage | |
# disable encrypted swap - SNOW LEOPARD | |
sudo defaults write /Library/Preferences/com.apple.virtualMemory UseEncryptedSwap -boolean no | |
# disable encrypted swap - LION | |
sudo defaults write /Library/Preferences/com.apple.virtualMemory DisableEncryptedSwap -boolean yes | |
# disable swap |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/sh | |
PLUGINS_DIR="$HOME/Library/Application Support/Developer/Shared/Xcode/Plug-ins" | |
XCODE_INFO_PATH=$(xcode-select -p) | |
XCODE_INFO_PATH=$(dirname "$XCODE_INFO_PATH")/Info | |
DVTPlugInCompatibilityUUID=$(defaults read "$XCODE_INFO_PATH" DVTPlugInCompatibilityUUID) | |
for plugin in "$PLUGINS_DIR"/*.xcplugin; do | |
plugin_info_path="$plugin/Contents/Info" | |
if [[ -f "$plugin_info_path.plist" ]]; then |
// based on: | |
// http://iamemmanouil.com/blog/electron-oauth-with-github/ | |
// https://github.com/ekonstantinidis/gitify | |
// this version uses https rather than superagent | |
var querystring = require('querystring'); | |
var https = require("https"); | |
// Your GitHub Applications Credentials |
Apply for early acccess.
Start here: https://github.com/openfaas/community-cluster