- harden security
- mounting drives
- htpc (home media server)
- node.js
- using the Pi as a [NAS][]
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
// <input type="file" id="files" multiple/> | |
var fr = new FileReader; | |
fr.onload = function ( event ) { | |
window.result = event.target.result; | |
}; | |
fr.readAsText( files.files[ 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
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": false, | |
"amd": false, | |
"mocha": false, | |
"jasmine": false, | |
"es6": true |
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
Show hidden characters
{ | |
"presets": [ "react", "es2015" ], | |
"plugins": [ | |
"transform-es2015-modules-commonjs", | |
"transform-react-constant-elements", | |
] | |
} |
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 | |
# generate pub key | |
ssh-keygen -f ~/.ssh/id_rsa.pub -e -m PKCS8 > ~/.ssh/id_rsa.pem.pub | |
# encrypt | decrypt | |
openssl rsautl -encrypt -pubin -inkey ~/.ssh/id_rsa.pem.pub -ssl <<< somestring | | |
openssl rsautl -decrypt -inkey ~/.ssh/id_rsa |
I use luan/vimfiles
He's also added a cheat sheet
# get vim set up
brew uninstall ctags
brew tap universal-ctags/universal-ctags
brew install universal-ctags --HEAD