Skip to content

Instantly share code, notes, and snippets.

View chrisvire's full-sized avatar

Chris Hubbard chrisvire

View GitHub Profile
@chrisvire
chrisvire / main.java
Created September 9, 2020 12:24
JDK-8252965 crashes on macOS using OpenJDK 8.265.01.2
package org.sil;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import java.awt.*;
public class Main {
public static void main(String[] args) {
Main app = new Main();
app.buildAndDisplayGui();
import jenkins.model.*
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.plugins.credentials.impl.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import org.jenkinsci.plugins.plaincredentials.*
import org.jenkinsci.plugins.plaincredentials.impl.*
import hudson.util.Secret
import hudson.plugins.sshslaves.*
@chrisvire
chrisvire / gist:de84f9398ee3ac327c06
Created June 18, 2014 17:42
Clean Target to work around mono-3 bug in globbing
<ItemGroup>
<ExistingObjectFiles
Include="$(RootDir)/output/$(Configuration)/**/*"
/>
</ItemGroup>
<Target Name="Clean">
<Exec
Command="find . -name obj -type d -print0 | xargs -0 rm -rf"
WorkingDirectory="$(RootDir)" />
<Delete Files="@(ExistingObjectFiles)" />
@chrisvire
chrisvire / gist:259f8b108b28c0cd3087
Created May 6, 2014 19:08
Vagrant Doesn't Detect Linux Mint Log
INFO global: Vagrant version: 1.5.4
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.5.4/bin/vagrant"
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Linux"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
@chrisvire
chrisvire / prince.cs
Created December 2, 2013 19:36
VB to C# conversion of PrinceXML .Net Wrapper (to remove Microsoft.VisualBasic dependency)
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
public interface IPrince
{
void SetEncryptInfo(int keyBits, string userPassword, string ownerPassword, bool disallowPrint, bool disallowModify, bool disallowCopy, bool disallowAnnotate);
void AddStyleSheet(string cssPath);
void ClearStyleSheets();
@chrisvire
chrisvire / movewindow.sh
Last active June 30, 2017 01:54
movewindow.sh
#!/bin/bash
XDO=/usr/bin/xdotool
# This script moves the active window between different monitors
# usage: movewindow [-vsn] [left|right]
select=0
noop=false
verbose=false
while getopts "h?vsn" opt; do
#!/bin/bash
# Based on Chrubuntu 34v87 script
BASE_IMAGE_FILE="http://mirrors.med.harvard.edu/ubuntu-cdimage/lubuntu/daily-preinstalled/current/raring-preinstalled-desktop-armhf+ac100.tar.gz"
# fw_type will always be developer for Mario.
# Alex and ZGB need the developer BIOS installed though.
fw_type="`crossystem mainfw_type`"
if [ ! "$fw_type" = "developer" ]
then