I hereby claim:
- I am chauncey-garrett on github.
- I am chaunceygarrett (https://keybase.io/chaunceygarrett) on keybase.
- I have a public key ASAP3k--Ih-GRSY8KQlJOnu8TRgxGdgrzDrgKsSnsMYO5wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Change the path below to your own audit log path. | |
/var/log/vault/audit.log { | |
rotate 30 | |
daily | |
# Do not execute rotate if the log file is empty. | |
notifempty | |
missingok | |
compress | |
# Set compress on next rotate cycl to prevent entry loss when performing compression. | |
delaycompress |
#!/bin/bash | |
OLDIFS=$IFS | |
export IFS=$'\n' | |
# Find all boxes which have updates | |
AVAILABLE_UPDATES=$(vagrant box outdated --global | grep outdated | tr -d "*'" | cut -d ' ' -f 2 2>/dev/null) | |
if [[ ${#AVAILABLE_UPDATES[@]} -ne 0 ]]; then |
(\d+)(?:\.(\d+))* |
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real
// 4 spaces to 2 spaces | |
%s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g | |
// Tab to 2 spaces | |
:%s/\t/ /g |
It's a common confusion about terminal colours... Actually we have this:
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
It's a common confusion about terminal colours... Actually we have this:
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
:read !ls |
Useful One-Line Scripts for Perl Dec 03 2013 | version 1.10 | |
-------------------------------- ----------- ------------ | |
Compiled by Peteris Krumins ([email protected], @pkrumins on Twitter) | |
http://www.catonmat.net -- good coders code, great reuse | |
Latest version of this file is always at: | |
http://www.catonmat.net/download/perl1line.txt |