Skip to content

Instantly share code, notes, and snippets.

View Arcanemagus's full-sized avatar

Landon Abney Arcanemagus

  • Oregon State University
View GitHub Profile
@Arcanemagus
Arcanemagus / README.md
Last active January 26, 2021 04:42
SQL to import from an Ombi database into an Overseerr database

These queries were tested using DB Browser for SQLite, with the Overseerr database as the primary database, and the Ombi database attached as Ombi.

Run the SQL files in order:

  1. movies.sql
  2. tv.sql
  3. seasons.sql
@Arcanemagus
Arcanemagus / migrate_fstab.sh
Last active June 19, 2018 05:27
Migrates the fstab entries from a Warden jail to an iocage jail
#!/bin/bash
# Enable display of executed commands
# set -x
JAIL_NAME=$1
BASE_DATASET="${2:-vault}"
echo "Preparing to migrate fstab entries from warden to iocage for the" \
"${JAIL_NAME} jail under the ${BASE_DATASET} dataset:"
#!/usr/local/bin/python2.7
import os
import sys
import json
import requests
webhook_id = "foo"
webhook_token = "bar"
@Arcanemagus
Arcanemagus / apm-publish.ps1
Last active June 12, 2019 18:35
Commit staged changes and publish to APM
Param(
[Parameter(Position=0, Mandatory)]
[String]
$version = ""
)
Function Exec
{
[CmdletBinding()]
param (
@Arcanemagus
Arcanemagus / npm-update-children.ps1
Last active January 20, 2019 09:21
Runs npm prune + dedupe + update on all subdirectories that have a package.json
function Exec
{
[CmdletBinding()]
param (
[Parameter(Position=0, Mandatory=1)]
[scriptblock]$Command,
[Parameter(Position=1, Mandatory=0)]
[string]$ErrorMessage = "Execution of command failed.`n$Command"
)
& $Command
@Arcanemagus
Arcanemagus / gist:d284e72bc8333f51c8cd
Created November 10, 2015 17:33 — forked from jedi4ever/gist:7677d62f1414c28a1a8c
Some notes on travisci remote debugging via ssh or screenshot or remote desktop of Mac VM builds
Some notes on remote debugging mac builds on Travisci. It's hard to tell when something hangs what the cause it. Trial and error via commits is tedious. And on Mac , sometimes it's the gui asking for input. So I worked my around to get the access I needed for faster debugging a build.
#################################################
# Enable remote ssh access to travisci build for debugging
#################################################
# Add a key so we can login to travisci vm
- cat ssh/travisci.pub >> ~/.ssh/authorized_keys
- chmod 600 ssh/travisci
# Install netcat
@Arcanemagus
Arcanemagus / .gdbinit
Last active August 29, 2015 14:15 — forked from skyscribe/.gdbinit
#
# STL GDB evaluators/views/utilities - 1.03
#
# The new GDB commands:
# are entirely non instrumental
# do not depend on any "inline"(s) - e.g. size(), [], etc
# are extremely tolerant to debugger settings
#
# This file should be "included" in .gdbinit as following:
# source stl-views.gdb or just paste it into your .gdbinit file