To install, place datadog.py
in your callback plugins directory. If you don't yet have one, run:
mkdir -p plugins/callback
Then place the following in your ansible.cfg
file:
[defaults]
callback_plugins = ./plugins/callback
// This is shamelessly copied from http://stackoverflow.com/questions/263743/how-to-get-cursor-position-in-textarea#answer-3373056 | |
function getInputSelection(el) { | |
var start = 0, end = 0, normalizedValue, range, textInputRange, len, endRange; | |
if (typeof el.selectionStart == "number" && typeof el.selectionEnd == "number") { | |
start = el.selectionStart; | |
end = el.selectionEnd; | |
} | |
else { | |
range = document.selection.createRange(); | |
if (range && range.parentElement() == el) { |
_complete_ssh_hosts () | |
{ | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
cut -f 1 -d ' ' | \ | |
sed -e s/,.*//g | \ | |
grep -v ^# | \ | |
uniq | \ | |
grep -v "\[" ; |
// #GoogleAppsScript #Gscript #GoogleSpreadsheet | |
//from google help page : https://developers.google.com/apps-script/scriptdb | |
function deleteAll() { | |
var db = ScriptDb.getMyDb(); | |
while (true) { | |
var result = db.query({}); | |
if (result.getSize() == 0) { | |
break; | |
} |
''' | |
Go to https://code.google.com/apis/console/ and: | |
- create a new project, | |
- enable access to the calendar api, | |
- create a "service account" - that will give you an: | |
* "email address" which is the service_account_name and | |
* a private key that you need to save on you server | |
- go to the calendar and share it with the "email address" from above | |
Make sure your time is synchronized. |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would