Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Espresso Soda</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
[
{ "keys": ["alt+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"} },
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["ctrl+super+r"], "command": "reveal_in_side_bar" },
{ "keys": ["super+alt+r"], "command": "refresh_folder_list"},
//, { "keys": ["ctrl+super+p"], "command": "copy_path_relative_from_project" }
{ "keys": ["alt+p"], "command": "side_bar_copy_path_relative_from_project" },
{ "keys": ["alt+з"], "command": "side_bar_copy_path_relative_from_project" }
]
{
"color_scheme": "Packages/User/Espresso Soda (SL).tmTheme",
"file_exclude_patterns":
[
"*.tar",
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",
@lazureykis
lazureykis / gist:7525928
Created November 18, 2013 10:52
rubygems cannot verify certificates on osx with rvm
rvm get stable
rvm osx-ssl-certs update all
rvm rubygems latest
@lazureykis
lazureykis / gist:7485116
Last active December 28, 2015 10:19
do-end vs {}
2.0.0p0 :036 > puts s1
10.times do |n|
puts n
end
=> nil
2.0.0p0 :037 > puts s2
10.times { |n|
puts n
}
@lazureykis
lazureykis / gist:6447756
Created September 5, 2013 09:03
term pg connections
SELECT pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE pg_stat_activity.datname = 'TARGET_DB';
@lazureykis
lazureykis / gist:5856928
Created June 25, 2013 08:35
ssh-copy-id
#!/bin/sh
# Shell script to install your public key on a remote machine
# Takes the remote machine name as an argument.
# Obviously, the remote machine must accept password authentication,
# or one of the other keys in your ssh-agent, for this to work.
ID_FILE="${HOME}/.ssh/id_rsa.pub"
if [ "-i" = "$1" ]; then
@lazureykis
lazureykis / nginx.conf
Last active December 15, 2015 13:59 — forked from jtimberman/nginx.conf
# Config for Nginx to act as a front-end for Riak
# The main goal is to proxy all GETs directly to Riak, and disallow anything else (POST, PUT, etc)
# Also, disallow use of the map/reduce query links (i.e. /riak/bucket/key/_,_,_)
# Config is in /etc/nginx/sites-available/default or somewhere like that
# Set up load-balancing to send requests to all nodes in the Riak cluster
# Replace these IPs/ports with the locations of your Riak nodes
upstream riak_hosts {
server 127.0.0.1:8098;