- Fedora: 28
- ZFS on Linux: 0.7.9
Note: for newer Fedora releases see Reliably boot Fedora with root on ZFS.
- Download Fedora Workstation network installer image.
Note: for newer Fedora releases see Reliably boot Fedora with root on ZFS.
alias gvmup="gvm use grails `grep app.grails.version application.properties|gawk -F = '{print $2}'`" |
SqlHelper sql = new SqlHelper(dataSource) | |
List results = sql.callWithRows("{call ABC.FINDBYLAST($lastName, ${Sql.INTEGER}, ${Sql.VARCHAR})}") { | |
List<GroovyRowResult> rows, int status, String errorMessage -> | |
if (status != 0) { | |
throw new RuntimeException("Error received from stored proc $status : $errorMessage") | |
} | |
return rows | |
} |
#!/bin/bash | |
function remove_dir () { | |
rm -rf "$1_" | |
if [ -d "$1" ] | |
then | |
mv "$1" "$1_" | |
fi | |
} |
# -*- 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| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
#!/usr/bin/env ruby | |
class Cache | |
attr_reader :cache | |
class << self | |
def get(file, expiry, &block) | |
raise ArgumentError, 'no block given' unless block_given? | |
Cache.new(file, expiry, &block).cache | |
end |
Load up Terminal (Applications > Utilities > Terminal.app) and type the following. | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist | |
To turn it back on, just do the opposite: | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist |
def generateMD5(String s) { | |
MessageDigest digest = MessageDigest.getInstance("MD5") | |
digest.update(s.bytes); | |
new BigInteger(1, digest.digest()).toString(16).padLeft(32, '0') | |
} |