This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@ubuntu-14:~$ sudo apt-get install npm | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
build-essential g++ g++-4.8 gyp javascript-common libc-ares-dev libc-ares2 libjs-node-uuid libssl-dev libssl-doc libstdc++-4.8-dev | |
libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-archy node-async node-block-stream node-combined-stream node-cookie-jar | |
node-delayed-stream node-forever-agent node-form-data node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs | |
node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream | |
node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read node-read-package-json node-request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
folder-hook REA 'macro pager \Cd '<pipe-message>~/dotfiles/mutt/view_git_patch.sh^M' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mikerowecode.robot8; | |
import java.util.Scanner; | |
import java.util.StringTokenizer; | |
import java.util.function.Function; | |
public class Robots { | |
public static void main(String[] args) { | |
Robot robot = new Robot(-1, -1, Direction.WEST); | |
Scanner in = new Scanner(System.in); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mikerowecode.robot; | |
import java.util.Scanner; | |
import java.util.StringTokenizer; | |
public class Robots { | |
public static void main(String[] args) { | |
Robot robot = new Robot(-1, -1, Direction.WEST); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'aws-sdk' | |
ec2 = AWS::EC2.new | |
elb = AWS::ELB.new | |
rds = AWS::RDS.new.client # shrug | |
security_groups = ec2.security_groups.map { |sg| sg.id }.sort | |
instance_sgs = ec2.instances.map { |i| i.security_groups.map { |sg| sg.id } }.flatten.sort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
;; Read a CSV file and look up the product ids it contains in a | |
;; database. Report all the products in the CSV that do not exist in | |
;; the database. | |
;; | |
;; Usage: $0 <path-to-csv-file> | |
;; | |
(import 'java.io.FileReader 'au.com.bytecode.opencsv.CSVReader) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'fog' | |
require 'yaml' | |
environment = YAML.load_file(".rea-env.yml") | |
connection_details = { | |
:provider => "AWS", | |
:endpoint => environment["ec2"]["url"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dig PTR 169.41.170.124.in-addr.arpa. | |
; <<>> DiG 9.7.3-P3 <<>> PTR 169.41.170.124.in-addr.arpa. | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43719 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;169.41.170.124.in-addr.arpa. IN PTR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background: #f1dec2; | |
background: url("edge.png") repeat-x; /* fallback */ | |
background: url("edge.png") repeat-x, -webkit-gradient(linear, left top, left bottom, from(#ebc17f), to(#f1dec2)); /* Saf4+, Chrome */ | |
background: url("edge.png") repeat-x, -webkit-linear-gradient(left, #ebc17f, #f1dec1); /* Chrome 10+, Saf5.1+ */ | |
background: url("edge.png") repeat-x, -moz-linear-gradient(left, #ebc17f, #f1dec1); /* FF3.6+ */ | |
background: url("edge.png") repeat-x, -ms-linear-gradient(left, #ebc17f, #f1dec1); /* IE10 */ | |
background: url("edge.png") repeat-x, -o-linear-gradient(left, #ebc17f, #f1dec1); /* Opera 11.10+ */ | |
background: url("edge.png") repeat-x, linear-gradient(left, #ebc17f, #f1dec1); /* W3C */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar anything-c-source-git-project-files-cache nil "(path signature cached-buffer)") | |
(defvar anything-c-source-git-project-files | |
'((name . "Files from Current GIT Project") | |
(init . (lambda () | |
(let* ((git-top-dir (magit-get-top-dir (if (buffer-file-name) | |
(file-name-directory (buffer-file-name)) | |
default-directory))) | |
(top-dir (if git-top-dir | |
(file-truename git-top-dir) | |
default-directory)) |
OlderNewer