View Set Up MongoDB 2.6 Authentication.md

Set Up MongoDB 2.6 Authentication

  1. Create admin user

    use admin
    db.createUser(
      {
        user: "admin",
        pwd: "***",
        roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
    
View Server Security and Performance - Base OS.md
Notes
Preliminary packages
  • Development packages, you'll most probably need them
    • Ubuntu: sudo apt-get install build-essential
    • CentOS: yum groupinstall 'Development Tools'
  • Git
View homebrew_postgres_recreate.sh
1 2 3 4 5 6 7 8 9 10
gem install lunchy
pg_dumpall > pg_all.sql
# Kill anything that access PostgreSQL before this, e.g. local rails server, pgAdmin etc
sudo lunchy stop homebrew.mxcl.postgresql
mv /usr/local/var/postgres{,.bak}
LC_CTYPE="tr_TR.UTF-8" initdb -E UTF-8 --locale=tr_TR --lc-collate=tr_TR --lc-ctype=tr_TR -D /usr/local/var/postgres/
sudo lunchy start homebrew.mxcl.postgresql
psql -f pg_all.sql -d postgres
# Make sure pg_all.sql is safe and can be restored before this
rm -rf /usr/local/var/postgres.bak
View jquery.easyHide.js
1 2 3 4 5 6 7 8 9 10
;(function ($) {
$.fn.easyHide = function (opts) {
opts = opts || {};
opts["hideFn"] = opts["hideFn"] || function () {
this.hide();
};
 
return this.each(function () {
var $this = $(this);
if (opts["onDocClick"] !== false) {
View RSS_invalid.xml
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Test</title>
<link>http://example.com</link>
<description>Just a RSS test</description>
<item>
<title>A title with some &ccedil;&apos;s and &uuml;&apos;s</title>
<link>http://example.com/test</link>
<description>Item description</description>
View jsist-easter.js
1 2 3 4 5 6 7 8 9 10
var container = document.getElementById('answer');
 
for(var i = 1; i <= 5; i++) {
(function(i) {
var a = document.createElement("a");
a.innerHTML = "link" + i + " ";
var onClick = function () {
alert(i);
};
View OS X Install Notes.md

Security

  • If you don't have a really loaded CPU/harddisk (or have a good performance CPU/harddisk - in practice anything with an i5/i7 CPU should be OK) you should use full disk encryption - FileVault 2 if you have anything in your computer that needs security/privacy.

Hardware/drivers etc

(["Developers"]*3).join(", ")

Something went wrong with that request. Please try again.