sudo nano /etc/apt/sources.list.d/pgdg.list
# - Add
# deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main
# - and save
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.3 libpq-dev
sudo nano /etc/postgresql/9.3/main/pg_hba.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f \( ! -name "*.php" -and ! -name "*.css" -and ! -name "*.js" -and ! -name "*.jpg" -and ! -name "*.png" -and ! -name "*.gif" \) -not -path "*/vendor/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for dir in ./*; do (echo "- $dir" && cd "$dir" && git pull); done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT districts | |
SELECT | |
NULL | |
, district_other.name | |
, district_other.province_other_id | |
, IFNULL(province_other.name, '') | |
FROM other_db.district_other | |
LEFT JOIN other_db.province_other ON province_other.id = district_other.province_other_id | |
; |
- 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.
- Macbook Pro EFI Firmware Update 2.3 (for AES-NI) (only some early 2011/late 2011 models).
Use a single field with the least amount of constraints possible. A 255 character UTF-8 field should be OK.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ç's and ü's</title> | |
<link>http://example.com/test</link> | |
<description>Item description</description> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(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) { |
OlderNewer