I hereby claim:
- I am davejlong on github.
- I am davejlong (https://keybase.io/davejlong) on keybase.
- I have a public key ASC_AnHvZ6nBfTn67CtZNNGjfVkL08V_Z2Jm0LZvbhU4hAo
To claim this, I am signing this object:
DAY=$(date --date="-1 day" +%d) |
I hereby claim:
To claim this, I am signing this object:
class Conference | |
include Lotus::Entity | |
attributes :title, :call_code, :technician_id | |
# Are the following 2 methods correct for representing the relationship to Technician | |
def technician | |
@technician ||= TechnicianRepository.find @technician_id | |
end | |
records = [ | |
{ id: "PU525", note: "Foo" }, | |
{ id: "PU525", note: "Bar" }, | |
{ id: "DT525", note: "Hello World" }, | |
{ id: "PU680", note: "Fubar" } | |
] | |
[:id, :note].zip( | |
records.group_by { |record| record[:id] } | |
.map do |k, v| |
$ sudo mdutil -E / | |
/: | |
Indexing enabled. | |
$ sudo mdutil -Ev / | |
/: | |
Indexing enabled. |
- name: Download Ruby source | |
get_url: url=https://.../ruby-{{ ruby_version }}.tar.gz dest=/tmp/ruby.tar.gz | |
tags: ruby_install | |
- name: Make tmp directory for Ruby source | |
file: path=/tmp/ruby state=directory | |
tags: ruby_install | |
... Run through the rest of the configuration ... |
(* | |
Script to Mark Item as Read and Move to folder "Archive" | |
For Microsoft Outlook 15 | |
*) | |
tell application "Microsoft Outlook" | |
activate | |
set msgSet to current messages | |
if msgSet = {} then | |
error "No Messages selected. Select at least one message." |
class MyController < ApplicationController | |
def show | |
@something = MyModel.all | |
render layout: false if request.xhr? | |
end | |
end |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.define "master01" do |master| | |
master.vm.box = "ubuntu/trusty64" | |
master.vm.provision "ansible" do |ansible| |
#!/bin/bash | |
iface=$1 | |
echo "Restarting $iface" | |
ifdown $iface | |
sleep 5 | |
ifup $iface |