(Create a symlink pytest for py.test)
pytest [options] [file_or_dir] [file_or_dir] ...
Help:
This project has moved to https://github.com/jonhoo/drwmutex so it can be imported into Go applications.
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |
import code; code.interact(local=dict(globals(), **locals())) |
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
freegeoip-geolookup.py | |
Created by Scott Roberts. | |
Copyright (c) 2015. All rights reserved. | |
A basic Maltego script to geolocate IPv4Addresses using Freegeoip.net. |
require "net/http" | |
def start_server | |
# Remove the X to enable the parameters for tuning. | |
# These are the default values as of Ruby 2.2.0. | |
@child = spawn(<<-EOC.split.join(" ")) | |
XRUBY_GC_HEAP_FREE_SLOTS=4096 | |
XRUBY_GC_HEAP_INIT_SLOTS=10000 | |
XRUBY_GC_HEAP_GROWTH_FACTOR=1.8 | |
XRUBY_GC_HEAP_GROWTH_MAX_SLOTS=0 |
Steps: | |
Open Terminal. | |
Run the following command: | |
defaults write com.apple.appstore ShowDebugMenu -bool true | |
Relaunch the App Store. | |
Choose the menu item Debug → Reset Application. |
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/base64" | |
"errors" | |
"io" | |
"log" |
This is a follow-up to this discussion: Can NAT traversal be Tor's killer feature?
If torrents are P2P's killer application, and NAT traversal/"static IP" are Tor's (via hidden services), putting them together could prove to be the best incentivization scheme for growing the Tor network other than cold crypto cash.
Everybody knows you're not supposed to use torrents with tor, right?