start new:
tmux
start new with session name:
tmux new -s myname
| require 'rubygems' | |
| require 'yaml' | |
| # A demonstration of YAML anchors, references and handling of nested values | |
| # For more info, see: | |
| # http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/ | |
| stooges = YAML::load( File.read('stooges.yml') ) | |
| # => { | |
| # "default" => { |
| preferred_syntax = :sass | |
| http_path = '/' | |
| css_dir = 'assets/stylesheets' | |
| sass_dir = 'assets/sass' | |
| images_dir = 'assets/images' | |
| javascripts_dir = 'assets/javascripts' | |
| relative_assets = true | |
| line_comments = true | |
| # output_style = :compressed |
| #!/bin/bash | |
| # Use this script instead of ~/.rvm/bin/rvm-prompt | |
| # and the output of rvm-prompt will show up in your command prompt | |
| # only if you are in a Ruby project directory. | |
| # see http://stackoverflow.com/a/4264351/270511 | |
| # and http://unix.stackexchange.com/questions/13464/is-there-a-way-to-find-a-file-in-an-inverse-recursive-search |
| This playbook has been removed as it is now very outdated. |
| #!/bin/bash | |
| # | |
| # This script requires xpath to parse part of the dnscurl.pl output | |
| # on CentOS/RedHat/Amazon Linux: | |
| # | |
| # sudo yum install perl-XML-XPath | |
| # | |
| # also, dnscurl.pl (from http://aws.amazon.com/code/Amazon-Route-53/9706686376855511) | |
| # expects your secrets to be in ~/.aws-secrets | |
| # using a file format like this (from http://dmz.us/wp/wp-content/uploads/r53/aws-secrets.txt) |
| - certain endpoints are always blocked | |
| if nginx_uri == "/_access_token" or nginx_uri == "/_me" then | |
| ngx.exit(403) | |
| end | |
| -- import requirements | |
| local cjson = require "cjson" | |
| -- setup some app-level vars | |
| local app_id = "APP_ID" |
| # The MIT License (MIT) | |
| # Copyright (c) 2014 Dave Clark | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
Requirement: Chromebook, Common Sense, Commandline Ablity, 1 hour of time
Dear developers with a spare Chromebook lets inject a little personalization into your Crosh shell with custom fonts, the solarized theme, and extra secure shell options.
Also, keep in mind that the terms Chrosh, Chrosh Window, and Secure Shell all refer to various versions and extentions built around the ChromeOS terminal. Settings that affect the ChromeOS terminal are global.
| # Output json-esque output for logstash to parse easily. | |
| http { | |
| # ... | |
| log_format logstash_json '{"@timestamp": "$time_iso8601", ' | |
| '"remote_addr": "$remote_addr", ' | |
| '"remote_user": "$remote_user", ' | |
| '"body_bytes_sent": "$body_bytes_sent", ' | |
| '"request_time": "$request_time", ' |