Skip to content

Instantly share code, notes, and snippets.

@jDmacD
jDmacD / archive.py
Last active July 14, 2017 16:16
deletes jobs with X status over X days old
#!/usr/bin/python
# Below are required imports for the script to run
import os
import sys
import qb
import hashlib
import re
import time, datetime
@jDmacD
jDmacD / qbBuild.sh
Last active March 2, 2022 23:16
qbittorrent from scratch for pi
#!/bin/bash
# https://github.com/qbittorrent/qBittorrent/wiki/Setting-up-qBittorrent-on-Ubuntu-server-as-daemon-with-Web-interface-(15.04-and-newer)
# https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Debian-and-Ubuntu#Required_dependencies
cd ~/
sudo apt-get install libboost-dev libboost-system-dev build-essential -y
sudo apt-get install libqt4-dev -y
sudo apt-get install qtbase5-dev qttools5-dev-tools -y
Loaded plugins: update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package gdk-pixbuf2.x86_64 0:2.32.1-1.fc23 will be installed
--> Processing Dependency: libpng16.so.16(PNG16_0)(64bit) for package: gdk-pixbuf2-2.32.1-1.fc23.x86_64
--> Processing Dependency: libpng16.so.16()(64bit) for package: gdk-pixbuf2-2.32.1-1.fc23.x86_64
--> Running transaction check
---> Package libpng.x86_64 2:1.2.49-2.14.amzn1 will be updated
--> Processing Dependency: libpng = 2:1.2.49-2.14.amzn1 for package: 2:libpng-devel-1.2.49-2.14.amzn1.x86_64
--> Processing Dependency: libpng12.so.0()(64bit) for package: 2:libpng-devel-1.2.49-2.14.amzn1.x86_64
Loaded plugins: priorities, update-motd, upgrade-helper
4627 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package db4.x86_64 0:4.7.25-18.11.amzn1 will be obsoleted
--> Processing Dependency: libdb-4.7.so()(64bit) for package: ruby20-libs-2.0.0.648-1.29.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-lib-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-4.11.2-2.73.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam-1.1.8-12.33.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: sendmail-8.14.4-8.12.amzn1.x86_64
Loaded plugins: update-motd, upgrade-helper
Installed Packages
atk-devel.x86_64 2.18.0-1.fc23 @fedora
Available Packages
atk-devel.i686 2.18.0-1.fc23 fedora
atk-devel.x86_64 2.18.0-1.fc23 fedora
Loaded plugins: update-motd, upgrade-helper
Available Packages
cairo-devel.x86_64 1.12.14-6.8.amzn1 amzn-main
cairo-devel.i686 1.14.2-2.fc23 fedora
Loaded plugins: priorities, update-motd, upgrade-helper
4627 packages excluded due to repository priority protections
repo id repo name status
!amzn-main/latest amzn-main-Base enabled: 5,493
amzn-main-debuginfo/latest amzn-main-debuginfo disabled
amzn-nosrc/latest amzn-nosrc-Base disabled
amzn-preview/latest amzn-preview-Base disabled
amzn-preview-debuginfo/latest amzn-preview-debuginfo disabled
!amzn-updates/latest amzn-updates-Base enabled: 931
amzn-updates-debuginfo/latest amzn-updates-debuginfo disabled
@jDmacD
jDmacD / Dockerfile
Last active March 3, 2016 14:29
grunt-docker
FROM lightsofapollo/ubuntu-node
RUN apt-get update
RUN apt-get install -y curl nano zip git
RUN npm install -g mocha grunt-cli
COPY config /suite/config/
COPY log /suite/log/
COPY reporters /suite/reporters/
COPY test /suite/test/
// cep-config.js
//grunt-cep version of https://github.com/Adobe-CEP/Samples/tree/master/CEP_HTML_Test_Extension
module.exports = {
bundle: {
version: '1.0',
id: 'com.adobe.CEPHTMLTEST',
name: 'CEPHTMLTEST',
author_name: 'James MacDonald',
//mxi_icon: 'src/TeEx_HTML_TEST_23x23_N.png',
@jDmacD
jDmacD / config
Last active February 27, 2016 12:56
choclatey manifest
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="goolgechrome"/>
<package id="sublimetext3"/>
<package id="cmder"/>
<package id="nodejs.install"/>
<package id="git"/>
<package id="steam"/>
<package id="keepass"/>
<package id="robomongo"/>