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
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
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
I've been collecting this list to help convince people -- mostly in my town of Portland, OR, and my home town of Nashville, TN -- to treat the COVID-19 with the seriousness it deserves. If you want it updated, ping me at @lkanies. | |
Flatten the curve | |
https://www.flattenthecurve.com/ | |
Number of cases | |
https://twitter.com/TAlexPerkins/status/1237513140578865153 | |
Nytimes on flattening the curve | |
https://www.nytimes.com/2020/03/11/science/coronavirus-curve-mitigation-infection.html |
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/ruby -w | |
require 'optparse' | |
options = {} | |
option_parser = OptionParser.new do |parser| | |
parser.banner = "Usage: git-branch-cleanup [options] | |
Deletes already-merged branches from local repository. |
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 | |
## git-publish-branch: a simple script to publish the current branch | |
## to your origin repository, and then track that so you can easily | |
## push further updates. | |
## | |
## Opens the URL for a pull request after pushing. | |
## | |
## Usage: git publish-branch | |
## |
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/ruby | |
require 'google/apis/calendar_v3' | |
require 'googleauth' | |
require 'googleauth/stores/file_token_store' | |
require 'fileutils' | |
SETTINGS = OpenStruct.new( | |
:oob_uri => 'urn:ietf:wg:oauth:2.0:oob', |
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
on log_err(message) | |
display notification message | |
log message | |
end log_err | |
on run | |
try | |
tell application "Mail" | |
set theAddress to "<email>@boards.trello.com" |
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
### Keybase proof | |
I hereby claim: | |
* I am lak on github. | |
* I am lak (https://keybase.io/lak) on keybase. | |
* I have a public key whose fingerprint is CF1B 22E4 F4A2 C6A8 9F08 1114 6537 984C A2C4 AC7E | |
To claim this, I am signing this object: |
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
luke@syringe $ rspec spec/unit/parser/scope_spec.rb spec/unit/parser/functions/versioncmp_spec.rb | |
...............................................................................FFF | |
Failures: | |
1) the versioncmp function should raise a ParseError if there is less than 2 arguments | |
Failure/Error: lambda { @scope.function_versioncmp(["1.2"]) }.should raise_error(Puppet::ParseError) | |
expected Puppet::ParseError, got #<NoMethodError: undefined method `function_versioncmp' for #<Puppet::Parser::Scope:0x102008e50>> | |
# ./spec/unit/parser/functions/versioncmp_spec.rb:18 |
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
# vim: syntax=ruby | |
require 'bluecloth' | |
require 'erb' | |
outputs = [] | |
FileList['examples/*'].each do |input| | |
output = File.join("output", File.basename(input)).sub(/\.\w+/, ".html") | |
outputs << output |
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
luke@syringe $ ruby -rpuppet -rpuppet/network/format_handler -e 'f = Puppet::Network::FormatHandler.format(:pson); k = Puppet::Indirector::Indirection; k.instances.collect { |n| k.instance(n).model }.each { |k| puts "%-40s: #{f.supported?(k)}" % k }' | |
Puppet::Node::Facts : true | |
Puppet::Node::Inventory : false | |
Puppet::Node : false | |
Puppet::Transaction::Report : false | |
Puppet::Resource : true | |
Puppet::Resource::Type : true | |
Puppet::Resource::Catalog : true | |
Puppet::SSL::Key : false | |
Puppet::SSL::Certificate : false |
NewerOlder