- zeromq: stable 3.2.2
- go: 1.0.3
- gozmq: zmq_3_x
- python: 2.7.3
- pyzmq: 13.0.2
This file contains 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
cat >/etc/apt/sources.list.d/kali.list <<EOF | |
deb http://http.kali.org/kali kali main contrib non-free | |
deb-src http://http.kali.org/kali kali main contrib non-free | |
deb http://security.kali.org/kali-security kali/updates main contrib non-free | |
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free | |
EOF | |
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6 | |
sudo apt-get update |
This file contains 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
get_cmake_property(_variableNames VARIABLES) | |
foreach (_variableName ${_variableNames}) | |
message(STATUS "${_variableName}=${${_variableName}}") | |
endforeach() |
This file contains 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
/*Example code for pub/sub | |
run as publisher | |
./pubsub pub <channelName> <message> | |
run as subscriber | |
./pubsub sub <channelName>*/ | |
/*---------------------- | |
Publish and Subscribe |
This file contains 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 | |
# Installation: | |
# cd my_gitproject | |
# wget -O pre-commit.sh http://tinyurl.com/mkovs45 | |
# ln -s ../../pre-commit.sh .git/hooks/pre-commit | |
# chmod +x pre-commit.sh | |
OPTIONS="-A8 -t8 --lineend=linux" | |
RETURN=0 |
This file contains 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
DROP FUNCTION IF EXISTS hex_to_bit_varying(hex_string text); | |
CREATE FUNCTION hex_to_bit_varying(hex_string text) RETURNS bit varying AS $$ | |
DECLARE | |
bytes bytea = decode(hex_string, 'hex'); | |
n int = length(bytes) * 8 - 1; | |
bits bit varying := B''::bit varying; | |
BEGIN | |
-- RAISE NOTICE 'bytes=%, n=%', bytes, n; | |
-- RAISE NOTICE 'bits=%', bits; | |
FOR i IN 0 .. n BY 8 LOOP |
In this file I document the steps taken to get the onboard wifi chip of the Cubietruck (Cubieboard 3) up and running.
Add the wifi driver to the modules to load on startup.
sudo nano /etc/modules
Now add at the end of the file, if not already in the list:
bcmdhd
This file contains 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
#!/usr/bin/env bash | |
# | |
# gh-dl-release! It works! | |
# | |
# This script downloads an asset from latest or specific Github release of a | |
# private repo. Feel free to extract more of the variables into command line | |
# parameters. | |
# | |
# PREREQUISITES | |
# |
OlderNewer