A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/bin/sh | |
# | |
# a simple way to parse shell script arguments | |
# | |
# please edit and use to your hearts content | |
# | |
ENVIRONMENT="dev" |
#!/bin/sh | |
rpm -Uih https://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
curl -L https://get.rvm.io | bash -s stable | |
source /etc/profile.d/rvm.sh | |
rvm install 2.0.0 | |
rvm use 2.0.0@global --default | |
### install bundler and rails | |
gem install bundler --no-ri --no-rdoc |
find . -type d -name .svn -exec rm -rf {} \; |
#!/bin/bash | |
## HOW TO USE | |
# sh dig_domains.sh A "8.8.8.8" (this returns the A records) | |
# domain.com 1224 IN A 127.0.0.1 | |
# sh dig_domains.sh A "8.8.8.8" "mail." (returns the mail. subdomain A records) | |
# mail.domain1.com. 14399 IN CNAME domain1.com. | |
# mail.domain2.com. 3599 IN A 127.0.0.1 |
message ObjectId { | |
// Unordered map of dynamically typed values. | |
map<string, Value> id = 1; | |
string _bsontype = 2; // should return "ObjectId" | |
} | |
// The JSON representation for `Value` is JSON value. | |
enum Value { | |
VALUE = 1; | |
} |
--ACCESS DB | |
REVOKE CONNECT ON DATABASE nova FROM PUBLIC; | |
GRANT CONNECT ON DATABASE nova TO user; | |
--ACCESS SCHEMA | |
REVOKE ALL ON SCHEMA public FROM PUBLIC; | |
GRANT USAGE ON SCHEMA public TO user; | |
--ACCESS TABLES | |
REVOKE ALL ON ALL TABLES IN SCHEMA public FROM PUBLIC ; |