-
Go to https://developer.apple.com/downloads/index.action and search for "Command line tools" and choose the one for your Mac OSX
-
Go to http://brew.sh/ and enter the one-liner into the Terminal, you now have
brew
installed (a better Mac ports) -
Install transmission-daemon with
brew install transmission
-
Copy the startup config for launchctl with
ln -sfv /usr/local/opt/transmission/*.plist ~/Library/LaunchAgents
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/bash | |
#force run with bash | |
if [ -z "$BASH_VERSION" ] | |
then | |
exec bash "$0" "$@" | |
return | |
fi | |
#create local scope |
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
.flex | |
display(flex) | |
flex-direction(normal) | |
flex-direction(row) | |
flex-wrap(wrap) | |
justify-content(start) | |
align-content(stretch) | |
.item |
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
//submit one, look at the network tab for the post-check-sum | |
//paste into console | |
var postCheckSum = "5f5a7b128a"; | |
$(".battlepack-item .btn").each(function() { | |
var id = $(this).attr("data-open-pack"); | |
$.post("http://battlelog.battlefield.com/bf4/battlepacks/openpack/"+id, {"packId":id, "post-check-sum":postCheckSum}); | |
}); |
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
// A small SSH daemon providing bash sessions | |
// | |
// Server: | |
// cd my/new/dir/ | |
// #generate server keypair | |
// ssh-keygen -t rsa | |
// go get -v . | |
// go run sshd.go | |
// | |
// Client: |
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
var stream = require('stream'); | |
var Transform = stream.Transform; | |
module.exports = function through(opts, transform, flush) { | |
//use default options | |
if (typeof opts !== 'object') { | |
flush = transform; | |
transform = opts; | |
opts = { |
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
{ | |
"mininova": { | |
"name": "Mininova", | |
"type": "screen-scraper", | |
"list": { | |
"url": "http://www.mininova.org/search/{query}/seeds/{page}", | |
"items": ".maintable > tr", | |
"item": { | |
"name":"td:nth-child(3) > a:nth-child(2)", | |
"url":"td:nth-child(3) > a:nth-child(2)@href", |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"time" | |
"github.com/hashicorp/yamux" | |
) |
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
<snippet> | |
<name>Class</name> | |
<tabTrigger>class</tabTrigger> | |
<content><![CDATA[//${1:ClassName} is ${3:...} | |
type ${1:ClassName} struct { | |
${2} | |
} | |
//New${1:ClassName} creates a new ${1:ClassName} | |
func New${1:ClassName}(${2/\t?(\w+) ([\.\w\*]+)(\n)?/\l$1 $2,/mg}) *${1:ClassName} { |
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
package main | |
import ( | |
"log" | |
"net/smtp" | |
) | |
func main() { | |
send("hello there") | |
} |