Skip to content

Instantly share code, notes, and snippets.

View cjac's full-sized avatar

C.J. Collier cjac

View GitHub Profile
#!/usr/bin/env perl6
use v6;
use DBIish;
my $password="password";
my $dbh = DBIish.connect('mysql', :database<grammar>, :user<grammaradm>, :$password);
say "connect completed";
cjac@raku:/usr/src/github/colliertech/syntactic-theory/Syntactic-Practice$ cat dist.ini
name = Syntactic-Practice
version = 0.01
author = C.J. Collier <[email protected]>
license = Perl_5
copyright_holder = C.J. Collier
[@Basic]
[PodWeaver]
[AutoPrereqs] excluding local packages: bin::parse, bin::sp-parser, Syntactic::Practice, Syntactic::Practice::Grammar, Syntactic::Practice::Grammar::Category, Syntactic::Practice::Grammar::Category::Terminal, Syntactic::Practice::Grammar::Category::Lexical, Syntactic::Practice::Grammar::Category::NonTerminal, Syntactic::Practice::Grammar::Category::Phrasal, Syntactic::Practice::Grammar::Category::Start, Syntactic::Practice::Grammar::Factor, Syntactic::Practice::Grammar::Factor::NonTerminal, Syntactic::Practice::Grammar::Factor::Phrasal, Syntactic::Practice::Grammar::Factor::Terminal, Syntactic::Practice::Grammar::Factor::Lexical, Syntactic::Practice::Grammar::Factor::Literal, Syntactic::Practice::Grammar::Rule, Syntactic::Practice::Grammar::Sentence, Syntactic::Practice::Grammar::Term, Syntactic::Practice::Grammar::Token, Syntactic::Practice::Grammar::TokenList, Syntactic::Practice::Grammar::TokenSet, Syntactic::Practice::Lexer, Syntactic::Practice::Lexer::Analysis, Syntactic::Practice::Lexicon, Syntactic::Pr
$ apt-cache show gksu
Package: gksu
Source: gksu (2.0.2-9)
Version: 2.0.2-9+b1
Installed-Size: 289
Maintainer: Debian GNOME Maintainers <[email protected]>
Architecture: amd64
Replaces: gnome-sudo, libgksu0
Provides: gnome-sudo
Depends: gconf-service, libatk1.0-0 (>= 1.12.4), libc6 (>= 2.4), libcairo2 (>= 1.2.4), libfontconfig1 (>= 2.11), libfreetype6 (>= 2.2.1), libgconf-2-4 (>= 3.2.5), libgdk-pixbuf2.0-0 (>= 2.22.0), libgksu2-0 (>= 2.0.8), libglib2.0-0 (>= 2.16.0), libgnome-keyring0 (>= 2.20.3), libgtk2.0-0 (>= 2.8.0), libpango-1.0-0 (>= 1.14.0), libpangocairo-1.0-0 (>= 1.14.0), libpangoft2-1.0-0 (>= 1.14.0), libstartup-notification0 (>= 0.2), sudo
main:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-hawtjni-plugin:1.11:generate (build-native-lib) @ netty-tcnative ---
[INFO] executing: /bin/sh -c ./autogen.sh
[INFO] /bin/sh: line 1: ./autogen.sh: cannot execute [Permission denied]
[INFO] rc: 126
[INFO]
[INFO] --- maven-hawtjni-plugin:1.11:build (build-native-lib) @ netty-tcnative ---
[INFO] ------------------------------------------------------------------------
for pkg in automake autoconf libtool openssl perl ninja go cmake libapr1_0 ; do
do
/opt/csw/bin/pkgutil -y -i ${pkg}
done
# unfortunately, ksh93 does not seem to work on my system
ln -sf /bin/bash /bin/sh
cd /usr/src
git clone [email protected]:fusesource/hawtjni.git
# mvn clean -e install
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: sunos
[INFO] os.detected.arch: x86_64
[INFO] os.detected.version: 5.11
[INFO] os.detected.version.major: 5
Unable to complete install: 'internal error: process exited while connecting to monitor: 2020-03-13T18:10:16.726833Z qemu-system-sparc64: -device piix3-usb-uhci,id=usb,bus=pci,addr=0x2: PCI: slot 2 function 0 not available for piix3-usb-uhci, reserved'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 2119, in _do_async_install
guest.installer_instance.start_install(guest, meter=meter)
File "/usr/share/virt-manager/virtinst/installer.py", line 419, in start_install
doboot, transient)
File "/usr/share/virt-manager/virtinst/installer.py", line 362, in _create_guest
cjac@moon:~$ sudo qemu-system-sparc64 -M niagara -L /home/cjac/tmp/S10image/ -nographic -m 1024 -drive file=/dev/vg00/solaris-sun4u,if=none,id=hd,format=raw -drive file=/var/lib/libvirt/images/sol-11_3-text-sparc.iso,format=raw,if=pflash,readonly=on -net nic -boot d
[sudo] password for cjac:
qemu-system-sparc64: warning: hub port hub0port0 has no peer
qemu-system-sparc64: warning: netdev hub0port0 has no peer
qemu-system-sparc64: warning: requested NIC (anonymous, model unspecified) was not created (not supported by this machine?)
cpu Probing I/O buses
Sun Fire T2000, No Keyboard
Copyright 2005 Sun Microsystems, Inc. All rights reserved.
cjac@moon:~$ cat ~/bin/launch-solaris.sh && ~/bin/launch-solaris.sh
#!/bin/bash
ROOT_DISK=/dev/vg00/solaris-sun4v
ISO=/var/lib/libvirt/images/sol-11_3-text-sparc.iso
FIRMWARE=~/tmp/opensparc/T1/S10image/
BIOS=~/tmp/openbios/openbios-1.1/obj-sparc64/openbios-builtin.elf
# sudo mount -o loop ${ISO} /mnt/tmp