- Add Xenial
- Drop Debian Jessie
- Last release to support Trusty
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@alaveteli-bionic64: ~/alaveteli | |
$ stat /home/vagrant/alaveteli/lib/acts_as_xapian/xapiandbs/test.temp/spelling.baseA | |
File: /home/vagrant/alaveteli/lib/acts_as_xapian/xapiandbs/test.temp/spelling.baseA | |
Size: 13 Blocks: 8 IO Block: 1048576 regular file | |
Device: 31h/49d Inode: 1657 Links: 1 | |
Access: (0644/-rw-r--r--) Uid: ( 1000/ vagrant) Gid: ( 1000/ vagrant) | |
Access: 2019-11-06 09:49:49.000000000 +0000 | |
Modify: 2019-11-06 09:49:49.000000000 +0000 | |
Change: 2019-11-06 09:49:49.000000000 +0000 | |
Birth: - |
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
$ VBoxManage list vms | |
"statements_downloader_default_1531341288237_2208" {477efbe6-ea60-4836-bf25-193bdf39500d} | |
"stretchvm_default_1534775043360_70904" {a5e64d88-9f1a-4d4a-b617-c1ce5931c556} | |
"alaveteli_default_1545227310221_56654" {d19ad4e4-3342-49c9-8fa1-adf2d13717ae} | |
"alaveteli_default_1565793578771_19647" {03583ac0-9b59-4e3a-8216-659510cb2b65} | |
$ grep -r --include="id" a5e64d88-9f1a-4d4a-b617-c1ce5931c556 ~/src | |
/Users/gareth/src/garethrees/stretchvm/.vagrant/machines/default/virtualbox/id:a5e64d88-9f1a-4d4a-b617-c1ce5931c556 | |
$ cd /Users/gareth/src/garethrees/stretchvm && vagrant destroy -f |
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
# Oops https://m.signalvnoise.com/update-on-basecamp-3-being-stuck-in-read-only-as-of-nov-8-9-22am-cst-c41df1a58352 | |
ids = ActiveRecord::Base.descendants.map do |klass| | |
begin | |
klass.maximum(:id) | |
rescue | |
nil | |
end | |
end | |
ids.compact.sort |
I think in general all the content here is good, but its pretty wordy and doesn't give any "landmarks" for a confused citizen to orientate themselves.
I think the main messages we want to convey here are:
- The default position is that they must confirm or deny; then release if they have it.
- If they've refused a request, have they applied exemptions correctly?
- General things you can do when refused with an exemption
What do I mean by landmarks? I made a stab at showing this: https://gist.github.com/garethrees/d9acb79dbe46eb4143ffe75ca004cdc7#file-foi-exemption-intro-md
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
require 'csv' | |
csv = CSV.parse(<<-CSV, headers: true, header_converters: :symbol) | |
id,title,label,label | |
1,fixme,bug,backend | |
CSV | |
row = csv.first | |
row[:labels] = row.map { |k,v| v if k == :label }.compact |
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
# stderr as process output, and then stdout and stderr to independent log files | |
command 1> stdout.log 2> >(tee -a stderr.log >&2) | |
# stdout as process output, and then stdout and stderr to independent log files | |
command 2> stderr.log 1> >(tee -a stdout.log >&1) |
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 | |
# A simply utility to show character counts for each line of input and | |
# highlight lines longer than 80 characters. | |
# | |
# Written as an example for http://jstorimer.com/2011/12/12/writing-ruby-scripts-that-respect-pipelines.html | |
# | |
# Examples: | |
# | |
# $ hilong Gemfile |
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
#!/bin/bash | |
bundle > /dev/null 2>&1 | |
RAILS_ENV=test bundle exec rake db:drop && RAILS_ENV=test bundle exec rake db:create && RAILS_ENV=test bundle exec rake db:migrate > /dev/null 2>&1 | |
bundle exec rspec ./spec/models/user_spec.rb > /dev/null 2>&1 |
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
# Via https://alvinalexander.com/source-code/mac-os-x/how-size-or-resize-application-windows-applescript | |
# { xpos, ypos, width, height } | |
osascript <<-EOF | |
tell application "iTerm2" | |
set bounds of front window to {0, 0, 1200, 1440} | |
end tell | |
EOF |