In order to send messages through a Gmail account (also applicable to Google Apps accounts) add the following parts to your config files:
Files:
- config/environments/production.rb
- config/gitlab.yml
var junkify = function( someClass ){ | |
// requires underscore.js | |
var sparks = document.getElementsByClassName( someClass ); | |
_(sparks).each(function(e,i){ | |
var range = 16; | |
var origContent = e.innerHTML; | |
e.title = "data: "+ origContent; | |
var d = origContent.split(","), | |
max = _.max(d), min = _.min(d), | |
dataRange = max-min; |
# Here a few bash one-liners that helped me analyze / fight a weak DOS attack against debuggable.com. Mostly for future reference. | |
# The attacker was opening lots of tcp connections without sending data, I believe it's called a SYN flood, see: http://tools.ietf.org/html/rfc4987#section-3.2 | |
# Step 0: Check what is going on at port 80 | |
$ netstat -tan | grep ':80 ' | awk '{print $6}' | sort | uniq -c | |
# Step 1: Increase the number of available fds | |
$ ulimit -n 32000 | |
# Step 2: Restart your webserver, for me: |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications
like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
# Prompt (Debian) | |
source /usr/local/bin/git-completion.sh | |
# Prompt (OS X + homebrew) | |
source /usr/local/etc/bash_completion.d/git-completion.bash | |
PS1="\[\033[31;38m\]\w\[\033[1;31m\]\$(__git_ps1)\[\033[00m\] " | |
export GIT_PS1_SHOWDIRTYSTATE=1 |