Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
(require 'org) | |
(setq-default indent-tabs-mode nil) | |
(setq org-display-inline-images t) | |
(setq org-redisplay-inline-images t) | |
(setq org-startup-with-inline-images "inlineimages") | |
(setq default-frame-alist | |
(append (list '(width . 72) '(height . 40)))) |
# Save the obfuscation mapping to a file, so we can de-obfuscate any stack | |
# traces later on. Keep a fixed source file attribute and all line number | |
# tables to get line numbers in the stack traces. | |
# You can comment this out if you're not interested in stack traces. | |
-printmapping out.map | |
-keepparameternames | |
-renamesourcefileattribute SourceFile | |
-keepattributes Exceptions,InnerClasses,Signature,Deprecated, | |
SourceFile,LineNumberTable,EnclosingMethod |
/* Instructions on compilation and execution | |
* ========================================= | |
* | |
* Compile this program with pthreads: | |
* | |
* g++ -Wall -lpthread -o graphdb-simulator graphdb-simulator.cpp | |
* | |
* Before you run this program, you need to create the following | |
* directories: | |
* |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Update 7 Oct 2010: | |
# - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
# the WebSocket protocol implementation in the cramp gem does not work | |
# well with Chrome's (newer) WebSocket implementation. | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |