Recipe for a lean box:
- Install Debian Squeeze 64 bits netinstall.
- Configure it as in official Vagrant's base box docs.
- Execute provision commands.
- Package and...
- Run!
package main | |
import ( | |
"fmt" | |
"http" | |
"io" | |
) | |
var client = http.Client{} |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <strings.h> | |
/* | |
* Pearson hashing (from Wikipedia) | |
* | |
* Pearson hashing is a hash function designed for fast execution on processors with 8-bit registers. | |
* Given an input consisting of any number of bytes, it produces as output a single byte that is strongly | |
* dependent on every byte of the input. Its implementation requires only a few instructions, plus a |
Recipe for a lean box:
Unable to resolve target 'android-X' until the SDK is loaded
If you find this cryptic error in your Eclipse while working with a new cloned project, you must update your SDK through Android SDK Manager and install ADT's last version through Eclipse update.
Note: in "Preferences window > Android" appears a more clear message.
This Android SDK requires Android Developer Toolkit version 22.0.0 or above. Current version is 21.0.1.v201212060256-543035. Please update ADT to the latest version.
mkfifo $pipe | |
cat $pipe | ffmpeg -y | |
-loop 1 -i cover.png | |
-i pipe:0 | |
-c:v libx264 -preset ultrafast -pix_fmt yuv420p -minrate 6000k -maxrate 6000k -bufsize 12000k -b:v 6000k | |
-r 30 -g 30 -keyint_min 60 -x264opts "keyint=60:min-keyint=60:no-scenecut" | |
-s 1920x1080 -tune zerolatency | |
-b:a 128k -c:a aac -ar 48000 | |
-strict experimental | |
-f flv rtmp://a.rtmp.youtube.com/live2/$broadcast_id |
# list all your box's facts | |
ansible -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory all -m setup --private-key=~/.vagrant.d/insecure_private_key -u vagrant |
NOTE: Work in progress
TODO: Identity management, two-factor auth, OpenVPN, Logstash, log shippers, IIS logs, OSSEC, Snort, Suricata, snorby, restart iis w/o admin role,
from copy import copy | |
import random | |
import numpy | |
import math | |
def generate_candidates(length, gender_quota): | |
k = 0 | |
results = {} | |
quota = int(math.ceil(length * gender_quota / 100)) | |
for i in xrange(length): |
[Unit] | |
Description=Mount Data Volume at boot | |
[Mount] | |
What=UUID="$(blkid)" | |
Where=/mnt/data | |
Type=ext4 | |
Options=defaults | |
[Install] |
#!/bin/bash | |
## | |
## PID Shield: protect your commands against parallel execution | |
## | |
## Author: Dario Castañé <[email protected]> | |
## | |
## License: Public domain; do as you wish | |
## |