Skip to content

Instantly share code, notes, and snippets.

View rtyler's full-sized avatar

R. Tyler Croy rtyler

View GitHub Profile
@rtyler
rtyler / Jenkinsfile
Last active April 24, 2024 05:54
Docker in docker within Jenkins on Kubernetes. Eat at Arby's.
pipeline {
agent {
kubernetes {
label 'dind'
defaultContainer 'docker'
yaml """
---
apiVersion: v1
kind: Pod
metadata:
➜ ~ llm chat -m mistral-7b-openorca
Chatting with mistral-7b-openorca
Type 'exit' or 'quit' to exit
Type '!multi' to enter multiple lines, then '!end' to finish
> Complete the sentence "Papa is..."
Papa is a loving and caring father who provides emotional support and guidance
to his children, while also working hard to ensure their needs are met. He takes pride in being an involved parent and cherishes every moment spent with his family.
> Complete the sentence "Uncle is..."
Uncle is a supportive and fun-loving relative who enjoys spending time with his nieces and nephews, sharing laughter and creating cherished memories. He provides guidance and wisdom to the younger generation while also being a source of
entertainment and joy in their lives.<|im_end|><|im_start|>user
make[2]: Entering directory `/opt/gnat/gtkada-gpl-2.18.0-src/src/opengl'
gcc -c -g -O2 -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I. -fPIC -oobj/gtkglarea.o gtkglarea.c
gcc -c -g -O2 -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I. -fPIC -oobj/gdkgl.o gdkgl.c
gnatmake -Popengl -u -fPIC -XBUILD=Production -XOPENGL=True -XGNOME=False -XGLADE=False
gcc -c -gnatec=/opt/gnat/gtkada-gpl-2.18.0-src/src/gnat.adc -gnatec=/opt/gnat/gtkada-gpl-2.18.0-src/src/gnat.adc -gnatQ -O2 -gnatn -gnatws -fPIC -I- -gnatA /opt/gnat/gtkad
#!/usr/bin/env python
import feedparser
import pynotify
import time
BASE_TITLE = 'Hudson Update!'
TIMEOUT = 3000
def success(job, build):
n = pynotify.Notification(BASE_TITLE,
@rtyler
rtyler / build.rs
Created July 21, 2023 06:51
build.rs for fetching dat tests
//! Build script for DAT
use std::fs::File;
use std::io::{BufReader, BufWriter, Write};
use std::path::Path;
use flate2::read::GzDecoder;
use tar::Archive;
const DAT_EXISTS_FILE_CHECK: &str = "tests/dat/.done";
[2011/8/12 22:22:44] novacom_usb_rx_thread:434 -- usbll(00000000) reading packet, reads(2), duration(100ms), result(-1), last_errno 9
[2011/8/12 22:22:45] novacom_usb_findandattach_thread:565: usb_handle 0x00000000, bus=001 dev=013
[2011/8/12 22:22:45] novacom_usb_rx_thread:413 -- usbll(00000000) error: reading packet, result(-1), errno 9
[2011/8/12 22:22:45] novacom_usb_rx_thread:434 -- usbll(00000000) reading packet, reads(2), duration(100ms), result(-1), last_errno 9
[2011/8/12 22:22:46] novacom_usb_findandattach_thread:565: usb_handle 0x00000000, bus=001 dev=013
[2011/8/12 22:22:46] novacom_usb_rx_thread:413 -- usbll(00000000) error: reading packet, result(-1), errno 9
[2011/8/12 22:22:46] novacom_usb_rx_thread:434 -- usbll(00000000) reading packet, reads(2), duration(100ms), result(-1), last_errno 9
[2011/8/12 22:22:47] novacom_usb_findandattach_thread:565: usb_handle 0x00000000, bus=001 dev=013
[2011/8/12 22:22:47] novacom_usb_rx_thread:413 -- usbll(00000000) error: reading packet, result(-1), errno 9
[
@rtyler
rtyler / github-backup.py
Created January 29, 2021 00:35
A simple Python script for copying an organization's repositories
#!/usr/bin/env python3
#
# Requires https://pygithub.readthedocs.io/en/latest
#
# Set the GITHUB_TOKEN to a personal access token with all repo scopes
import os
import subprocess
import sys
@rtyler
rtyler / check-updates
Created September 28, 2018 18:57
A simple script to update a pom.xml for the latest updates
#!/usr/bin/env bash
DEPENDS=$(xmlstarlet sel -N x='http://maven.apache.org/POM/4.0.0' \
-t -m x:project/x:dependencies/x:dependency \
-v x:artifactId -o ' ' \
pom.xml)
if [ ! -f update-center.actual.json ]; then
wget https://updates.jenkins.io/update-center.actual.json;
fi;
@rtyler
rtyler / upload-to-azure.sh
Created January 4, 2018 19:22
A bash script which supports uploading blobs to Azure Storage: ./upload-to-azure.sh [filename]
#!/usr/bin/env bash
FILENAME=${1}
# expected to be defined in the environment
# - AZURE_STORAGE_ACCOUNT
# - AZURE_CONTAINER_NAME
# - AZURE_ACCESS_KEY
# inspired by
@rtyler
rtyler / 0_error.log
Created December 9, 2016 00:10
Example of an invalid casing for a Global Variable in a Pipeline Shared Library
Started by user rtyler
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 2: unexpected token: Mr Jenkins @ line 2, column 14.
SayHello "Mr Jenkins"
^
1 error
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:150)