SELECT (NOW() - query_start) as duration, pid, usename, application_name, client_addr, client_port, backend_start, query_start,
wait_event, wait_event_type, state, query
FROM pg_stat_activity
WHERE pid <> pg_backend_pid()
AND state <> 'idle'
ORDER BY query_start ASC;
import Component from '@ember/component'; | |
import { task } from 'ember-concurrency'; | |
import { inject as service } from '@ember/service'; | |
export default Component.extend({ | |
tagName: '', | |
store: service(), |
http://www.linuxfromscratch.org/blfs/view/svn/multimedia/libsndfile.html
wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.26.tar.gz
tar xf libsndfile-1.0.26.tar.gz
cd libsndfile-1.0.26
./configure
make
watchman watch-list | tr -d '[:space:]' | grep -Po '(?<="roots":\[).*?(?=\])' | grep -Po '(?<=").*?(?="?,)' | while read path; do watchman watch-del "$path"; done |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
class RedisController < ApplicationController | |
private | |
def render_from_redis(prefix, variation = nil) | |
manifest_id = params[:manifest_id] | |
if manifest_id.blank? | |
current_manifest_key = if variation | |
"#{prefix}:#{variation}:current" | |
else | |
"#{prefix}:current" |
module.exports = (grunt) -> | |
timestamp = Date.now().toString() | |
grunt.initConfig | |
env: grunt.file.readJSON '.env.json' | |
s3: | |
options: | |
key: '<%= env.AWS.AccessKeyId %>' | |
secret: '<%= env.AWS.SecretKey %>' |
require 'nokogiri' | |
namespace :ember_cli_rails do | |
desc "compile ember and update application.html.erb with ENV vars" | |
task :build => [:ember, :update_env] do | |
end | |
desc 'Build ember app and copies css and js files to rails' |
class CsrfController < ApplicationController | |
def index | |
render json: { request_forgery_protection_token => form_authenticity_token }.to_json | |
end | |
end |
// app/initializers/csrf.js | |
export default { | |
name: 'csrf', | |
initialize: function(container, app) { | |
app.inject('route', 'csrf', 'service:csrf'); | |
app.inject('controller', 'csrf', 'service:csrf'); | |
} | |
} |