This is just a personal script to help me remember all the steps required to setup a new osx machine in their correct order. I do not advise you to follow this guide if you don't know what you're doing.
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
var getGrunt = function () { | |
var grunt = require(path.join(__dirname, 'temp/node_modules/grunt')); | |
grunt.option('gruntfile', path.join(__dirname, 'temp/Gruntfile.js')); | |
return grunt; | |
}; | |
// Running the test task inside a describe/it block: | |
getGrunt().tasks(['test'], {}, callback_fn); |
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
var yeoman = require('yeoman-generator'); | |
var argv = require('minimist')(process.argv.slice(2)); | |
module.exports = yeoman.generators.Base.extend({ | |
constructor: function (args, options) { | |
if (options['module-name']) { | |
// don't really remember why getting from argv with an options fallback | |
this.moduleName = argv['module-name'] || options['module-name']; | |
} else { |
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 a reference to origin func | |
var _exit = process.exit; | |
// Monkey patch it to a local func | |
process.exit = function () { | |
assertStuff(); | |
}; | |
// Release monkey patching | |
process.exit = _exit; |
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
// everyone's better of using a proper solution: https://github.com/Automattic/util-inspect | |
export function traceme(obj, depth) { | |
if (depth===0) return; | |
for (var key in obj) { | |
if (obj[key] && obj[key].constructor.prototype === Array.prototype) obj[key] = obj[key].toString(); | |
var value = typeof obj[key] === 'object' && obj[key] !== null ? traceme(obj[key], depth-1) : obj[key]; | |
console.log(key + ': ' + value); | |
} | |
} |
https://help.github.com/articles/generating-a-new-gpg-key/
- PS: During latest setup homebrew ended up installing gpg as
gpg2
, that requires some very minor tweaks and of course making sure the commands usegpg2
instead ofgpg
- PS2: Make sure to save key to 1 Password or equivalent
- (optional) OSX + Virtualbox users need an extra step to format sd card: http://www.geekytidbits.com/mount-sd-card-virtualbox-from-mac-osx/
- Head to https://archlinuxarm.org/platforms/armv6/raspberry-pi (Raspberrypi Zero) for instructions on how to get ARMv6 dist of Arch Linux
- Plug SD card on Raspbery Pi and boot it up, it should be ready to go
- Login to Arch Linux root:
- user: root
- pass: root
- Create new user:
useradd -m -G wheel -s /bin/bash username
passwd username
- Remove defaul
alarm
user:
SSH:
- Disable root login
- Disable password authentication
- Use sudo-based privilege separation
- Use public key authentication (ECDSA, Ed25519, etc...)
- (Optional) Store key on smartcard
- (Optional) Use a two-factor system such as Duo
- (Optional) Change port of SSH to non-default (this is security by obscurity, but it deters most automated attacks, although this shouldn't matter if you're using key-based auth).
Firewall:
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
[{"ts":1.6284000000005108,"k":"S"},{"ts":2.0466000000005806,"k":"h"},{"ts":2.1275000000005093,"k":"e"},{"ts":2.2127000000000407,"k":" "},{"ts":2.396600000000035,"k":"c"},{"ts":2.482600000000275,"k":"a"},{"ts":2.5471999999999753,"k":"m"},{"ts":2.701799999999821,"k":"e"},{"ts":2.7775000000001455,"k":" "},{"ts":2.896099999999933,"k":"a"},{"ts":3.0354999999999563,"k":"c"},{"ts":3.2236000000002605,"k":"r"},{"ts":3.4023999999999432,"k":"o"},{"ts":3.578400000000329,"k":"s"},{"ts":3.7169000000003507,"k":"s"},{"ts":3.876100000000406,"k":" "},{"ts":4.024600000000646,"k":"t"},{"ts":4.090900000000147,"k":"o"},{"ts":4.151300000000447,"k":" "},{"ts":4.2984000000005835,"k":"h"},{"ts":4.370700000000397,"k":"i"},{"ts":4.49369999999999,"k":"m"},{"ts":4.704400000000533,"k":","},{"ts":4.766500000000633,"k":" "},{"ts":4.899300000000039,"k":"a"},{"ts":4.966400000000249,"k":"d"},{"ts":5.014299999999821,"k":"n"},{"ts":5.9265000000004875,"k":"n"},{"ts":5.975300000000061,"k":"d"},{"ts":6.023299999999836,"k":" "},{"ts":6.19830000000001 |
- [
df211208c0
] - test: add missing test coverage for setLocalAddress() (Rich Trott) #36039 - [
b1f5518a0a
] - doc: fixevents.getEventListeners
example (Dmitry Semigradsky) #36085 - [
f5191f5bd2
] - test: remove flaky designation for fixed test (Rich Trott) #35961 - [
a2f652f7c5
] - test: move test-worker-eventlooputil to sequential (Rich Trott) #35996 - [
b0b43b27d6
] - test: fix unreliable test-fs-write-file.js (Rich Trott) #36102 - [
b477447a55
] - doc
OlderNewer