Skip to content

Instantly share code, notes, and snippets.

@ober
ober / anonymous-gist.
Created March 30, 2016 18:32
vagrant not honoring -f
akkad|akkad|no-rvm:test-repo/git:akkad-vagrant-testing> vagrant -f destroy
default: Are you sure you want to destroy the 'default' VM? [y/N] y
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
@ober
ober / gather_installed.py
Last active August 29, 2015 14:25 — forked from halberom/01_gather_installed.py
ansible - example of custom module to gather info on installed packages
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# only works on RedHat family
import rpm
def _check_installed(module):
ts = rpm.TransactionSet()
mi = ts.dbMatch()
@ober
ober / .Xmodmap
Created June 2, 2015 02:25
Chromebook Crouton Search As Control
clear control
clear mod4
keycode 133 = Super_L
add control = Control_L Control_R Super_L
add mod4 = Hyper_L
@ober
ober / config
Created February 18, 2015 00:54
aws config
[default]
region = us-west-2
aws_access_key_id = <your key>
aws_secret_access_key = <your secret key>
output = json
[preview]
cloudfront = true
@ober
ober / lynx
Created February 11, 2015 23:59
JWZ
<!-- Greetings, Lynx users. There is a reason this page doesn't use ALT tags
on the images. The reason is that the bozos responsible for both MSIE
and Netscape Confusicator 4.0 decided that they would display the ALT
tags of images every time you move the mouse over them -- even if the
images are loaded, and even if they are not links. The ALT attribute
to the IMG tag is supposed to be used *instead of* the image, not *in
addition to* the image.
This looks absolutely terrible, so I don't use ALT tags any more in
self-defense.
@ober
ober / gettowork.lisp
Created January 12, 2015 06:28
get to work
(ql:quickload :restas)
(restas:define-module #:gettowork (:use :cl :restas))
(in-package #:gettowork)
(define-route gettowork-root ("/")
(format nil "<html><title>Get To Work</title><body><h1><bold><font color=\"red\">GET TO WORK!!!</font></bold></center></body></h1></html>"))
@ober
ober / vpc.yml
Created January 12, 2015 04:25
here
- name: AWS VPC | Create RSD-MultiTenant VPC
local_action:
module: ec2_vpc
state: present
cidr_block: "{{ vpc_subnet }}/16"
resource_tags: { "Environment":"Prod", "Stack":"{{ stack_name }}", "Name": "RSD-MultiTenant" }
region: us-east-1
subnets:
- cidr: "{{ vpc_sub_public }}"
resource_tags: { "Environment": "Prod", "Stack":"{{ stack_name }}", "Tier": "Public", "Name": "RSD-Mt public" }
@ober
ober / create_vpc
Created January 12, 2015 03:48
proper indentiation
- name: AWS VPC | Create RSD-MultiTenant VPC
local_action:
module: ec2_vpc
state: present
cidr_block: "{{ vpc_subnet }}/16"
resource_tags: { "Environment":"Prod", "Stack":"{{ stack_name }}", "Name": "RSD-MultiTenant" }
region: us-east-1
subnets:
- cidr: "{{ vpc_sub_public }}"
resource_tags: { "Environment": "Prod", "Stack":"{{ stack_name }}", "Tier": "Public", "Name": "RSD-Mt public" }
@ober
ober / test.json
Created December 27, 2014 23:16
here
{"Records":[{"eventVersion":"1.01","userIdentity":{"type":"Root","principalId":"140809180094","arn":"arn:aws:iam::140809180094:root","accountId":"140809180094","accessKeyId":"AKIAI2ZDL72PNOWEMFGQ"},"eventTime":"2014-10-08T23:54:19Z","eventSource":"ec2.amazonaws.com","eventName":"DescribeInstanceStatus","awsRegion":"us-west-2","sourceIPAddress":"54.89.14.182","userAgent":"Boto/2.30.0 Python/2.7.3 Linux/3.2.0-68-virtual","requestParameters":{"instancesSet":{},"filterSet":{},"includeAllInstances":false},"responseElements":null,"requestID":"844f7ceb-8d39-4ca6-b60b-3355d413f31c","eventID":"9dc5f1d8-649e-44cb-8403-b3dc6f034b68"},{"eventVersion":"1.01","userIdentity":{"type":"Root","principalId":"140809180094","arn":"arn:aws:iam::140809180094:root","accountId":"140809180094","accessKeyId":"AKIAI2ZDL72PNOWEMFGQ"},"eventTime":"2014-10-08T23:54:19Z","eventSource":"ec2.amazonaws.com","eventName":"DescribeInstances","awsRegion":"us-west-2","sourceIPAddress":"54.89.14.182","userAgent":"Boto/2.30.0 Python/2.7.3 Linux/3.2.0
(woo:run (lambda (env)
(declare (ignore env))
'(200 () ("Hello, World")))
:debug nil
;; :use-thread nil
:port 5000)