Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
| package main | |
| import ( | |
| "log" | |
| "net/smtp" | |
| ) | |
| func main() { | |
| send("hello there") | |
| } |
| #!/usr/bin/env node | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var sass = require('node-sass'); | |
| var ENV = process.env.SASS_ENV || 'development'; | |
| var file = 'variables.scss'; | |
| //if in dev, directly pass file to sass | |
| if (ENV === "development") { |
| var ldap = require('ldapjs'); | |
| var ssha = require('node-ssha256'); | |
| var BASE = 'ou=Users,dc=example,dc=org'; | |
| // default port for ldaps | |
| var URL = 'ldaps://ldap.example.org/:636'; | |
| // user and pass are for existing user with rights to add a user |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| pdp-mbp: ~ $ cat hostlist.txt | |
| sfo-crawl-4 | |
| sfo-crawl-5 | |
| sfo-crawl-6 | |
| sfo-crawl-7 | |
| sfo-crawl-8 | |
| sfo-crawl-9 | |
| sfo-crawl-11 | |
| sfo-crawl-14 | |
| pdp-mbp: ~ $ csshX --host hostlist.txt |