(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
# encoding: utf-8 | |
require 'open-uri' | |
require 'json' | |
require 'optparse' | |
API_KEY = "change_me" # put yandex.slovari API key here | |
API_URL = "https://dictionary.yandex.net/api/v1/dicservice.json/lookup?"\ | |
"key=%s&lang=en-ru&text=%s" |
Only do this if you understand the consequences: all node programs will be able to bind on ports < 1024
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
Important: your node location may vary. Use which node
to find it, or use it directly in the command:
# source: http://benjaminknofe.com/blog/2014/03/08/zero-downtime-deployment-with-unicorn-and-capistrano/ | |
root = "/home/deployer/current" | |
pid "#{root}/tmp/pids/unicorn.pid" | |
stderr_path "#{root}/log/unicorn_error.log" | |
stdout_path "#{root}/log/unicorn.log" | |
listen "/tmp/unicorn.gigmit.com.socket", :backlog => 2048 |
Error: 140428615087936:error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:../deps/openssl/openssl/ssl/s3_pkt.c:1234:SSL alert number 48 | |
at CleartextStream._pusher (tls.js:674:24) | |
at SlabBuffer.use (tls.js:217:18) | |
at CleartextStream.CryptoStream._push (tls.js:501:33) | |
at SecurePair.cycle (tls.js:898:20) | |
at EncryptedStream.CryptoStream.write (tls.js:285:13) | |
at Socket.ondata (stream.js:38:26) | |
at Socket.EventEmitter.emit (events.js:96:17) | |
at TCP.onread (net.js:397:14) |
You probably don't want Google crawling your development staging app. Here's how to fix that.
$ mv public/robots.txt config/robots.production.txt
$ cp config/robots.production.txt config/robots.development.txt
Now edit config/routes.rb
to add a route for /robots.txt
, and add the controller code.
#define давай_иба { | |
#define харе_иба } | |
#define внотури_посаны_собрались_ёбта main() | |
#define чё ( | |
#define бля ) | |
#define слышь int | |
#define пивасик var[6] | |
#define сюда = | |
#define литр 1 | |
#define двушку 2 |
function trackJavaScriptError(e) { | |
var ie = window.event || {}; | |
var message = e.message || ie.errorMessage || '<no message>' | |
var filename = e.filename || ie.errorUrl || '<no filename>'; | |
var lineno = e.lineno || ie.errorLine || '<no lineno>'; | |
var colno = e.colno || ie.errorColumn || '<no colno>'; | |
var source = filename + ':' + lineno + ':' + colno; | |
ga('send', 'event', 'JavaScript Exception', message, source, {'nonInteraction': 1}); | |
} |
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
on alfred_script(q) | |
tell application "Adium" to go away | |
tell application "Skype" | |
send command "SET USERSTATUS AWAY" script name "Alfred" | |
end tell | |
end alfred_script |