Skip to content

Instantly share code, notes, and snippets.

@Ryex
Ryex / killseedboxrsync
Created May 22, 2016 21:45
seedbox rsync automation: down load all files from a seed box or other remote server with rsync
#!/bin/bash
pid_file="/path/to/destination/rsync.pid"
rsync_pid=$(cat $pid_file)
if [[ -z "${rsync_pid// }" ]] ; then
echo "[$(date)] no PID for seedbox rsync, exiting"
exit
else
@Ryex
Ryex / ResourceParserWorker.js
Created January 2, 2016 22:20
XML Resource parsing
function Clone() { }
function clone(obj) {
Clone.prototype = obj;
return new Clone();
}
//load sprintf
//importScripts('sprintf.js')
@Ryex
Ryex / RubyMarshal.py
Created July 27, 2015 19:27
Ruby Marshal version 4.8 Reader in Python
from struct import pack, unpack
#============================================================================================
# RubyMarshal
#--------------------------------------------------------------------------------------------
# This class is able to read and write Ruby Marshal format.
#============================================================================================
class RubyMarshal:
@Ryex
Ryex / PygletWX.py
Last active November 11, 2023 08:28
wxPython + Pyglet
"""
LICENSE
Copyright (c) 2014, Rachel Powers All rights reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause
"""
import wx