most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
{ | |
"template": "logstash-*", | |
"settings" : { | |
"number_of_shards" : 1, | |
"number_of_replicas" : 0, | |
"index" : { | |
"query" : { "default_field" : "@message" }, | |
"store" : { "compress" : { "stored" : true, "tv": true } } | |
} | |
}, |
server { | |
listen 8080; | |
server_name elasticsearch; | |
client_max_body_size 50M; | |
error_log /var/log/nginx/elasticsearch-errors.log; | |
access_log /var/log/nginx/elasticsearch.log; | |
location / { |
#!/bin/vbash | |
# CONFIG | |
wan=dhcp | |
lan=192.168.1.1 | |
lan_segment=192.168.1.0 | |
vpn_segment=192.168.5.0 | |
domain=apertoire.org | |
lease_start=192.168.1.200 | |
lease_stop=192.168.1.245 |
from botocore.credentials import InstanceMetadataProvider, InstanceMetadataFetcher | |
provider = InstanceMetadataProvider(iam_role_fetcher=InstanceMetadataFetcher(timeout=1000, num_attempts=2)) | |
credentials = provider.load() | |
access_key = credentials.access_key | |
secret_key = credentials.secret_key | |
print access_key | |
print secret_key |
mkdir .jupyterhub
cd .jupyterhub
jupyterhub --generate-config
openssl rand -hex 8 > jupyterhub_cookie_secret
Tutorials for running live Kali on OSX often require you have networking on your laptop to apt
install the drivers, but without an ethernet adapter you're not going to be able to do that, so this tutorial will cover a method of doing this manually, using another thumbdrive or external data source.
Download the appropriate Kali Linux .iso
I used a 64 bit .iso
image, downloaded via HTTP.
#!/usr/bin/env python3 | |
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=python | |
# This file is part of Supermicro IPMI certificate updater. | |
# Supermicro IPMI certificate updater is free software: you can | |
# redistribute it and/or modify it under the terms of the GNU General Public | |
# License as published by the Free Software Foundation, version 2. | |
# | |
# This program is distributed in the hope that it will be useful, but WITHOUT |