-
1.8.7 - Retired since 2013-06-30
-
1.9.3 - Retired since 2015-02-23 - No bug fix, nor even security ones will be backported then
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B) | |
set -g prefix C-space | |
unbind-key C-b | |
bind-key C-space send-prefix | |
# Set new panes to open in current directory | |
bind c new-window -c "#{pane_current_path}" | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" |
module Jekyll | |
module CacheBust | |
class CacheDigester | |
require 'digest/md5' | |
attr_accessor :file_name, :directory | |
def initialize(file_name:, directory: nil) | |
self.file_name = file_name | |
self.directory = directory |
''' | |
rate_limit.py | |
Written May 7-8, 2014 by Josiah Carlson | |
Released under the MIT license. | |
Offers a simple interface for offering rate limiting on a per second, minute, | |
hour, and day basis. Useful for offering varying rate limits depending on user | |
behavior. Sliding window based limits offer per minute, hour, and day limits |
require "net/https" | |
require "uri" | |
require 'json' | |
uri = URI.parse("https://www.howsmyssl.com/a/check") | |
http = Net::HTTP.new(uri.host, uri.port) | |
http.use_ssl = true | |
resp = JSON.parse(http.request(Net::HTTP::Get.new(uri.request_uri)).body) | |
puts JSON.pretty_generate(resp) |
Red Team versus the Agents
At a nuclear weapons lab, a team of elite hackers matches wits with undefeated autonomous defenders
ALBUQUERQUE, N.M.--By the time my escort steers me past the armed guards, key-coded doors, and bags of shredded paper into the heart of Sandia National Laboratories, the rematch has already begun. Inside the Advanced Information Systems Lab, six men sit around a large table loaded with laptops and network cables, which snake over to a rack of high-powered machines labeled BORG SERVER CLUSTER. These men are the defense--the Blue Team in this high-tech version of capture the flag--and they lean back in their chairs confidently. This past March, they claim, their "agents"--computer programs that autonomously cooperate to protect a networked system--became the first defenders ever to thwart Sandia's esteemed Red Team of professional hackers. But that was in a two-day skirmish. Now Steven Y. Goldsmith, the research group's lead scientist, has invited the Red Team to spend this entire we
#!/bin/bash | |
# | |
# Script to create and download a database backup on Heroku | |
# Written by Chris Stefano (https://github.com/virtualstaticvoid) | |
# | |
# See http://devcenter.heroku.com/articles/pgbackups for details | |
# | |
appname=$1 | |
filename=${appname}_db_$(date +%Y%m%d)_$(date +%H%M).pg_backup |
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
module God | |
module Conditions | |
class RestartFileTouched < PollCondition | |
attr_accessor :restart_file | |
def initialize | |
super | |
end | |
def process_start_time | |
Time.parse(`ps -o lstart -p #{self.watch.pid} --no-heading`) |