#Mac OS X
This file contains hidden or 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 python | |
# File: setup-krb-users-and-keytabs.py | |
# | |
# This is a simple script that will handle the creation of principals on | |
# the KDC, the creation of keytabs with appropriate permissions, and | |
# the copying of keytabs to the appropriate locations. It's input is the | |
# host-principal-keytab-list file that Ambari generates. | |
# | |
# This script MUST be run as root on the KDC node. | |
# |
This file contains hidden or 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
These instructions are taken from: Keita's Blog - https://kkob.us/2016/01/09/homebrew-and-postgresql-9-5/ | |
1. Turn PostgreSQL off first, just in case: | |
$ launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
2. Update PostgreSQL itself: | |
$ brew update && brew upgrade postgresql | |
3. Make a new, pristine 9.5 database: | |
$ initdb /usr/local/var/postgres9.5 -E utf8 |
This file contains hidden or 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
Key idea #1: Variable bindings in Rust "have ownership" of what they're bound to. | |
let x = 5; // 'x' "OWNS" the value 5 | |
let v = vec![1,2,3,4,5]; // 'v' "OWNS" the vector datastructure which contains the values '1,2,3,4,5' | |
Ownership is a serious matter - even functions "own" their parameters, so this WILL NOT compile: | |
fn main() { | |
fn somefunc(x: i32, v: Vec<i32>) -> i32 { | |
// somefunc "owns" x and v once they are bound as parameters | |
12 | |
} |
This file contains hidden or 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
/** | |
* File: data_alignment.c | |
* This is a collection of simple functions that attempt to read | |
* from a 5MB file in varying sizes and with different buffer | |
* alignments. | |
* | |
* The munge* functions are derived from Jonathan Rentzsch's article | |
* https://www.ibm.com/developerworks/library/pa-dalign/ | |
* | |
* This work is inspired by the same article referenced above. |
I hereby claim:
- I am koyedele on github.
- I am kunleoyedele (https://keybase.io/kunleoyedele) on keybase.
- I have a public key ASDePyCRVOlRWFXFp-QdCQ7PZk4fCqDXe1LHRZp9f6t-ywo
To claim this, I am signing this object: