Skip to content

Instantly share code, notes, and snippets.

February 26, 2019 at 07:44:57 PM UTC
zone 31453355-5fcc-4d6e-bb03-a3604fc7a073 pre-state-change 6 4
+ jst_ufpromisc=yes
+ jst_createvnd=yes
+ jst_simplefs=yes
+ jst_mdatapath=/var/run/smartdc
+ . /usr/lib/brand/jcommon/statechange
+ unset LD_LIBRARY_PATH
+ PATH=/usr/bin:/usr/sbin
+ export PATH
--<root@41e2dff7-87d7-405f-8df3-3d6b0748a0c8>-(/data/chroot/dev-2016Q4-x86_64)-</data/pkgsrc>--
-> ls
Makefile benchmarks chat cross doc filesystems geography lang mbone multimedia parallel textproc x11
README bootstrap comms databases editors finance graphics licenses meta-pkgs net regress wip
audio cad converters distfiles emulators games inputmethod math mk packages security wm
From global zone :
ls /zones/41e2dff7-87d7-405f-8df3-3d6b0748a0c8/root/data/pkgsrc/
curl -v joshilewis.blog
* Rebuilt URL to: joshilewis.blog/
* Trying 154.0.169.115...
* TCP_NODELAY set
* Connected to joshilewis.blog (154.0.169.115) port 80 (#0)
> GET / HTTP/1.1
> Host: joshilewis.blog
> User-Agent: curl/7.51.0
> Accept: */*
>
@lenw
lenw / keybase.md
Last active August 29, 2015 14:18
keybase

Keybase proof

I hereby claim:

  • I am lenw on github.
  • I am len (https://keybase.io/len) on keybase.
  • I have a public key whose fingerprint is 256A C659 D97E F194 D927 D455 5F75 06BE 5133 02BC

To claim this, I am signing this object:

@lenw
lenw / clockwork.rb
Created December 4, 2012 20:35 — forked from rogercampos/clockwork.rb
Capistrano running clockwork as daemon
after "deploy:stop", "clockwork:stop"
after "deploy:start", "clockwork:start"
after "deploy:restart", "clockwork:restart"
namespace :clockwork do
desc "Stop clockwork"
task :stop, :roles => clockwork_roles, :on_error => :continue, :on_no_matching_servers => :continue do
run "if [ -d #{current_path} ] && [ -f #{pid_file} ]; then cd #{current_path} && kill -INT `cat #{pid
_file}` ; fi"
end
$ rm -rf .gem
$ rm -rf /Users/len/.rvm/gems/ruby-1.8.7-p330 /Users/len/.rvm/gems/ruby-1.8.7-p330\@global
$ mkdir -p /Users/len/.rvm/gems/ruby-1.8.7-p330 /Users/len/.rvm/gems/ruby-1.8.7-p330\@global
$ gem install rails --backtrace
Fetching: activesupport-3.0.3.gem (100%)
Fetching: builder-2.1.2.gem (100%)
Fetching: i18n-0.5.0.gem (100%)
Fetching: activemodel-3.0.3.gem (100%)
Fetching: rack-1.2.1.gem (100%)
ERROR: While executing gem ... (ArgumentError)
$ rvm info
ruby-1.8.7-p330:
system:
uname: "Darwin Taurean.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)"
zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)"
rvm:
$ rvm gemset empty
Are you SURE you wish to remove the installed gemset for gemset 'ruby-1.8.7-p330' (/Users/len/.rvm/gems/ruby-1.8.7-p330)?
(anything other than 'yes' will cancel) > yes
17:52 ~/Downloads/gems $ gem install rails --backtrace
ERROR: While executing gem ... (ArgumentError)
string contains null byte
/Users/len/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader/entry.rb:66:in `join'
/Users/len/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader/entry.rb:66:in `full_name'
/Users/len/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:36:in `initialize'
/Users/len/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:64:in `each'
/* From http://java.sun.com/docs/books/tutorial/index.html */
/*
* Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* -Redistribution of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
(ns swing.ui
(:import (java.awt BorderLayout Component GridLayout event.ActionEvent event.ActionListener event.KeyEvent)
(javax.swing BorderFactory JButton JFrame JLabel JPanel UIManager)))
(defmacro onClick
[obj & body]
`(.addActionListener ~obj
(proxy [ActionListener] []
(~'actionPerformed [evt#]
~@body))))