Step-by-step debugging and stack navigation for JRuby code.
Problem: the common tools byebug and pry-byebug are MRI-only.
Force JRuby to run in fully interpreted mode:
(otherwise next
would behave like step
)
#!/usr/bin/env sh | |
# The default hostname to set | |
DEFAULT_DOCKER_HOSTNAME=${DEFAULT_DOCKER_HOSTNAME-dockerhost.internal} | |
# A comma-delimited list of extra hostnames to add as aliases | |
EXTRA_DOCKER_HOSTNAMES=${EXTRA_DOCKER_HOSTNAMES-} | |
# Whether to export variables | |
EXPORT_DOCKERHOST=${EXPORT_DOCKERHOST-1} |
/* 11/27/2017 - Tweaked for a page redesign. | |
* 1/6/2018 - Handle videos in book bundle. | |
*/ | |
var pattern = /(MOBI|EPUB|PDF( ?\(H.\))?|CBZ)$/i; | |
var pattern2 = /(Download)$/; | |
var nodes = document.getElementsByTagName('a'); | |
var downloadCmd = ''; | |
for (i in nodes) { | |
var a = nodes[i]; | |
if (a && a.text && pattern.test(a.text.trim())) { |
# pwd && echo && diff -u gitk-deb9-vanilla gitk-deb9-multistash; echo; ls -l | grep gitk | |
/usr/bin | |
--- gitk-deb9-vanilla 2017-08-09 06:49:17.000000000 +0000 | |
+++ gitk-deb9-multistash 2017-09-25 11:30:11.386472474 +0000 | |
@@ -296,6 +296,12 @@ | |
set revs HEAD | |
} elseif {[lsearch -exact $revs --all] >= 0} { | |
lappend revs HEAD | |
+ set stashesfd [open [concat | \ |
# Before calling `byebug`, run the following: | |
require 'io/console' | |
require 'byebug' | |
Readline.input = IO.console | |
Readline.output = IO.console | |
Byebug::Context.interface.instance_variable_set('@input', IO.console) | |
Byebug::Context.interface.instance_variable_set('@output', IO.console) | |
Byebug::Context.interface.instance_variable_set('@error', IO.console) | |
# This used to be built in to byebug (https://github.com/deivid-rodriguez/byebug/pull/211) |
$ diff -u /usr/bin/gitk-deb8-vanilla /usr/bin/gitk-deb8-multistash | |
--- /usr/bin/gitk-deb8-vanilla 2016-08-29 10:07:06.507344629 +0200 | |
+++ /usr/bin/gitk-deb8-multistash 2016-09-08 14:36:35.382476634 +0200 | |
@@ -401,6 +401,11 @@ | |
if {$vcanopt($view)} { | |
set revs [parseviewrevs $view $vrevs($view)] | |
+ set stashesfd [open [concat | gitk-stash-list-ids.sh] r] | |
+ while {[gets $stashesfd stashline] >= 0} { | |
+ set revs [lappend revs $stashline] |
Step-by-step debugging and stack navigation for JRuby code.
Problem: the common tools byebug and pry-byebug are MRI-only.
Force JRuby to run in fully interpreted mode:
(otherwise next
would behave like step
)
This gist gives a short outline of how to get back on track with Office 2016 licensing if you have been using the Combo Update packages available via AutoPKG to distribute Office 2016 applications and thus copying the Office license file around.
download an installer package from http://macadmins.software (e.g. Word Standalone installer)
extract the LauncDaemon and PrivilegedHelperTool from the installer package (e.g. by running the installer on a VM):
def template(from, to, options = {}) | |
template_path = File.expand_path("../../templates/#{from}", __FILE__) | |
template = ERB.new(File.new(template_path).read).result(binding) | |
upload! StringIO.new(template), to, mode: 0644 # Otherwise it's set to 0640, which is not readable by other users (https://github.com/net-ssh/net-scp/blob/master/lib/net/scp/upload.rb#L63) | |
sudo "chown root:root #{to}" if options[:as_root] | |
end |
A single X509 key is generated per distribution platform (Rubygems.org, Gemfury, etc). This key is used to sign gem author requests.
A gem author may generate a certificate and request that the platform sign it. Alice generates her x509 keypair with her email address encoded as the x509 name field, stashes the private key somewhere safe, and submits the pubkey to the signing system.
The signing system consists of two parts: