Skip to content

Instantly share code, notes, and snippets.

@pesla
pesla / open-ticket-from-alfred.zendesk.as
Last active October 22, 2015 13:14
Open ticket in Zendesk from Alfred (workflow)
on alfred_script(q)
set ticketId to q
set serverURI to "https://procurios.zendesk.com"
set browserURL to "/tickets/" & ticketId
set found to false
tell application "Google Chrome Canary"
if (count every window) > 0 then
repeat with theWindow in every window
set theTabIndex to 0
@rwjblue
rwjblue / ember-master-in-ember-cli-app.md
Last active October 10, 2016 23:01
Developing on Ember master (linked locally), with an Ember CLI application.

From a terminal run the following commands:

git clone [email protected]:emberjs/ember.js
cd ember.js
npm install
npm start

While that is running open another terminal and run the following (starting from the ember.js folder you cloned a moment ago):

@Kartones
Kartones / postgres-cheatsheet.md
Last active November 15, 2024 21:14
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@slindberg
slindberg / if-all-exists.js
Last active August 29, 2015 13:57
Bound conditional Handlebars helpers for Ember
import ifConditionHelper from 'myapp/helpers/if-condition';
/**
* Logical AND Existence Conditional Block
*
* Usage: {{#if-all-exists field1 field2}}Either field1 or field2 is truthy{{/if-all-exists}}
*
* Executes the given block if all arguments are defined
*/
export default function() {
@robertzx
robertzx / HTTP_debugging_tools.md
Created January 24, 2014 14:15
HTTP Debuggin Tools