Model Name: MacBook Pro
Model Identifier: MacBookPro11,2
Processor Name: Intel Core i7
Processor Speed: 2,2 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
--- rc.local.orig 2015-11-20 09:02:06.776959957 -0500 | |
+++ rc.local 2015-11-20 09:02:32.096652026 -0500 | |
@@ -11,4 +11,9 @@ | |
# | |
# By default this script does nothing. | |
+if [ -f /etc/ssh/regenerate_host_keys ]; then | |
+ rm -f /etc/ssh/ssh_host_*_key* | |
+ dpkg-reconfigure openssh-server | |
+ rm /etc/ssh/regenerate_host_keys |
defmodule MyApp.Mixfile do | |
use Mix.Project | |
def project do | |
[app: :my_app, | |
version: get_version, | |
elixir: "~> 1.0", | |
elixirc_paths: elixirc_paths(Mix.env), | |
compilers: Mix.compilers, | |
build_embedded: Mix.env == :prod, |
# make a random key
# dd if=/dev/urandom of=/ramdisk/github.key bs=32 count=1
# stash on on jump box and lolcathost
# start a daemon on the ipv64 jump box using the 9418 git port as 443 is busy
/usr/local/bin/spiped -D -d -s \[::0\]:9418 -t 192.30.252.130:443 -k /ramdisk/github.key -p /var/run/spiped_GITHUB.pid
# laptop
/usr/local/bin/spiped -F -e -s \[::\]:443 -t jump.box:9418 -k /ramdisk/github.key &
defmodule Transport do | |
def connect(params) do | |
hostname = params.hostname | |
port = params.port | |
path = params.path | |
timeout = params.connection_timeout | |
{:ok, conn} = :gun.open(hostname, port) | |
{:ok, :http} = :gun.await_up(conn) | |
:gun.ws_upgrade(conn, path) |
defmodule XmlNode do | |
require Record | |
Record.defrecord :xmlAttribute, Record.extract(:xmlAttribute, from_lib: "xmerl/include/xmerl.hrl") | |
Record.defrecord :xmlText, Record.extract(:xmlText, from_lib: "xmerl/include/xmerl.hrl") | |
def from_string(xml_string, options \\ [quiet: true]) do | |
{doc, []} = | |
xml_string | |
|> :binary.bin_to_list | |
|> :xmerl_scan.string(options) |
$ brew install unbound ldns
unbound.conf
:#!/bin/bash | |
ERLANG=18.0 | |
SQLITE=amalgamation-3071700 | |
cd /root | |
SSLV=1.0.1o | |
[ -f /usr/bin/gcc ] || (apt-get update && apt-get install -y build-essential) |
2015-07-24 20:47:11 +0200 | |
./configure | |
--disable-debug | |
--prefix=/usr/local/Cellar/wxmac/3.0.2 | |
--enable-unicode | |
--enable-std_string | |
--enable-display | |
--with-opengl | |
--with-osx_cocoa |