Skip to content

Instantly share code, notes, and snippets.

@jezuk
jezuk / ost_cf_migrate.sql
Created February 21, 2014 11:05
Migrate a custom text field from osTicket 1.6 to 1.8
-- jezuk @ http://osticket.com/forum/profile/120676/jezuk
-- You must change all references to `vessel` with your own source column name from ost_ticket
CREATE PROCEDURE `ost_cf_migrate`()
BEGIN
DECLARE my_form_id INT DEFAULT 2; -- form_id taken from ost_form_field
DECLARE my_field_id INT DEFAULT 14; -- id taken from ost_form_field
@jezuk
jezuk / trans-seq-pri.py
Last active November 1, 2020 02:38
Sequential file priority python script for transmission bit torrent client
#!/usr/bin/env python
'''
Transmission Automatic File Prioritiser V2
Less evil version of sequential downloading, only prioritises files sequentially
Keeps other files in the torrent on normal priority (if set to download)
Enter path to .netrc file below containing login details in format (without <>):
machine localhost login <transmission-username> password <transmission-password>