Skip to content

Instantly share code, notes, and snippets.

View nocnokneo's full-sized avatar

Taylor Braun-Jones nocnokneo

  • CytoTronics
  • Boston, MA
View GitHub Profile
@nocnokneo
nocnokneo / agent-env
Created August 26, 2026 19:51
agent-env: run a T3 Code server inside a repo's dev container (Tailscale Serve, per-repo T3CODE_HOME, detach mode)
#!/bin/sh
# agent-env: bring up a repository's dev container as the long-lived home for
# agent sessions and run a T3 Code server inside it.
#
# agent-env [-d] [-r] [-p PORT] [-c devcontainer.json] REPO_DIR
#
# -d detach: leave the server running in the container and return. The
# server log is $T3CODE_HOME/agent-env.log. Rerunning just reports the
# URL of a server that is already up.
# -r recreate the container (needed after devcontainer.json changes)
@nocnokneo
nocnokneo / CMakeLists.txt
Last active October 8, 2020 15:19 — forked from gsauthof/xclipshow.cpp
Simplified, shortened version of http://unix.stackexchange.com/a/163115/1131, a clipboard dump tool
cmake_minimum_required(VERSION 3.0.0)
project(xclipshow)
find_package(Qt5Widgets)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_definitions(-std=c++11)
add_executable(xclipshow
xclipshow.cpp
)
@nocnokneo
nocnokneo / multidisplay-touchscreen-autoconfig.desktop
Last active August 29, 2015 14:04
multidispay_touchscreen_autoconfig.py
# Copy this file to /etc/xdg/autostart/
# multidisplay_touchscreen_autoconfig.py must be executable and in your system PATH
[Desktop Entry]
Exec=multidisplay_touchscreen_autoconfig.py
Name=Autoconfigure touchscreens for use on a multi-monitor system
Type=Application
NoDisplay=true
@nocnokneo
nocnokneo / yum-chroot.sh
Last active July 9, 2022 21:33
yum-chroot.sh
#!/bin/bash
this_script=$(basename $0)
print_usage()
{
echo <<EOF
Usage: ${this_script} create CHROOT_DIR [CENTOS_RELEASE_RPM_URL]
${this_script} run CHROOT_DIR [COMMAND ...]
${this_script} --help
@nocnokneo
nocnokneo / update-oracle-java-alternative.sh
Last active December 11, 2020 03:34
update-oracle-java-alternative.sh
#!/bin/bash
set -e
script_name=$(basename "$0")
print_usage()
{
cat <<EOF
Usage: ${script_name} install ORACLE_JAVA_INSTALL_DIR [PRIORITY]
@nocnokneo
nocnokneo / .gitignore
Last active August 29, 2015 14:03
setup_multimonitor_touchscreen
*.pyc
#!/bin/bash
# A bash script to create a time machine disk image suitable for
# backups with OS X 10.6 (Snow Leopard)
# This script probably only works for me, so try it at your own peril!
# Use, distribute, and modify as you see fit but leave this header intact.
# (R) sunkid - September 5, 2009
#
# This will create a time machine ready disk image named with your
# computer's name with a maximum size of 600GB and copy it to
# /Volumes/backup. The image "file" (it's a directory, really) will
@nocnokneo
nocnokneo / CMakeLists.txt
Last active April 16, 2026 09:14
VTK Rendered to an FBO in a Qt Quick 2 Scene Graph
cmake_minimum_required(VERSION 2.8.11)
project(VtkFboInQtQuick)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
@nocnokneo
nocnokneo / .gitignore
Last active August 29, 2015 14:01
Helper script to contribute commits from an MITK fork to the MITK mainline master
.idea/
*.pyc