Skip to content

Instantly share code, notes, and snippets.

@SwedishGojira
SwedishGojira / ubooquity-hack.sh
Last active October 18, 2018 08:49
Script to hack Ubooquity to allow for full original imagesize and more preloaded pages.
#!/bin/bash
## Back up Ubooquity.jar just in case...
echo "Backing up 'Ubooquity.jar' to 'Ubooquity.original.jar' just in case..."
cp Ubooquity.jar Ubooquity.original.jar
## Extract comicreader.js from Ubooquity.jar
echo "Extracting 'comicreader.js' from 'Ubooquity.jar'"
unzip -q Ubooquity.jar comicreader/comicreader.js
@SwedishGojira
SwedishGojira / download_buildbot_cores.py
Created January 29, 2019 15:12 — forked from zach-morris/download_buildbot_cores.py
Simple python script to install latest retroarch cores from buildbot
#Simple python script to install latest retroarch cores from buildbot
#To use this script, edit the settings below and from the command line, call python "...path_to_file/download_buildbot_cores.py"
## Script settings
#Buidbot URL for your system
buildbot_url = 'http://buildbot.libretro.com/nightly/apple/osx/x86_64/latest/'
#Temporary directory to download files to, you must have write access to this directory
temp_directory = '/Users/enter_username_here/Downloads/temp_cores'
delete_temp_directory_after_complete = False
#!/usr/bin/env bash
# github.com/cpinkus
update_core()
{
path="$1"
corename="$(basename $path)"
timestamp_old="$(grep $corename $cores_path/.timestamps.old)"
timestamp_new="$(grep $corename $cores_path/.timestamps.new)"
if [[ "$timestamp_new" == "$timestamp_old" ]]