Skip to content

Instantly share code, notes, and snippets.

View cubehouse's full-sized avatar
🎢
Whee!

Jamie Holding cubehouse

🎢
Whee!
View GitHub Profile
// start with:
// frida -U -l pinning.js -f [APP_ID] --no-pause
Java.perform(function () {
console.log('')
console.log('===')
console.log('* Injecting hooks into common certificate pinning methods *')
console.log('===')
var X509TrustManager = Java.use('javax.net.ssl.X509TrustManager');
@cubehouse
cubehouse / gist:3839159
Created October 5, 2012 10:34
WordPress Fake Page Generator - Use in Theme/Plugin to create non-existant pages dynamically
// create fake page called "chat-room"
// modify function and variable names with "ABCD" to whatever you like
// modify variable $fakepage_ABCD_url to the fake URL you require
add_filter('the_posts','fakepage_ABCD_detect',-10);
function fakepage_ABCD_detect($posts){
global $wp;
global $wp_query;
global $fakepage_ABCD_detect; // used to stop double loading
@cubehouse
cubehouse / DisableASW.bat
Created April 18, 2018 08:51
Quick bat file to disable Space Warp on Oculus Rift
echo server:asw.Off > "TEMP.txt"
echo exit >> "TEMP.txt"
call "C:\Program Files\Oculus\Support\oculus-diagnostics\OculusDebugToolCLI.exe" -f "%~dp0\TEMP.txt"
del "TEMP.txt"
@cubehouse
cubehouse / auth.php
Created September 22, 2012 13:28
eJabberd Auth.php for WordPress authentication
#!/usr/bin/php
<?php
/*
Copyright (c) <2005> LISSY Alexandre, "lissyx" <alexandrelissy@free.fr>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software andassociated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,
@cubehouse
cubehouse / AnimatedImage.cpp
Created April 17, 2018 13:44 — forked from grisevg/AnimatedImage.cpp
UMG Animated Image.
#include "AnimatedImage.h"
void UAnimatedImage::SetCurrentFrame(int32 Frame)
{
CurrentFrame = Frame;
if (CurrentFrame < 0) CurrentFrame = 0;
if (CurrentFrame > TotalFrames - 1) CurrentFrame = TotalFrames - 1;
SynchronizeProperties();
}
@cubehouse
cubehouse / gist:c4c15bbf090d6db7e975e81e1ffbccd8
Created July 18, 2020 20:25
Bash Script to convert HDR video files into SDR format. Decent CPU can re-encode around 3-4x faster than video length.
#!/bin/bash
function convert {
filename=$(echo "$1" | cut -f 1 -d '.')
newFilename=${filename}_HD.mkv
if [ -f "$newFilename" ]; then
echo \* $newFilename already exists!
else
COLORS=$(ffprobe -show_streams -v error "$1" |egrep "^color_transfer|^color_space=|^color_primaries=" |head -3)
@cubehouse
cubehouse / index.js
Created July 8, 2018 16:32
Efteling New App - July 2018
const Moment = require("moment-timezone");
const Park = require("../park");
const GeoLocation = require("../geoLocation.js");
const s_apiVersion = Symbol();
const s_apiKey = Symbol();
const s_searchURL = Symbol();
const s_waitTimesURL = Symbol();
@cubehouse
cubehouse / FetchCharacterAppearances.js
Created January 31, 2017 18:34
Fetch Disney character appearances for Disneyland California using themeparks library
var ThemeParks = require("themeparks");
var MagicKingdom = new ThemeParks.Parks.DisneylandResortMagicKingdom();
// https://api.wdpro.disney.go.com/bulk-service/snapshot/DLR-mobile-character-appearances
// for reference: above URL requests these two URLs at the same time (hense the "bulk-service")
// https://api.wdpro.disney.go.com/global-pool-override-B/bulk-service/snapshot/DLR-mobile-dl-character-appearances
// https://api.wdpro.disney.go.com/global-pool-override-B/bulk-service/snapshot/DLR-mobile-ca-character-appearances
MagicKingdom.GetAPIUrl({
@cubehouse
cubehouse / WDWEntertainmentAreas.js
Created November 19, 2017 17:48
Walt Disney World - Entertainment Area Opening Times Fetching
// include themeparks library
const themeparks = require("themeparks");
// extend random Disney World park and override few bits we need (WDW Magic Kingdom has most the configuration already that we need)
class DisneysTyphoonLagoon extends themeparks.Parks.WaltDisneyWorldMagicKingdom {
constructor(options = {}) {
options.name = options.name || "Disney's Typhoon Lagoon";
options.latitude = options.latitude || 28.3650;
@cubehouse
cubehouse / Dockerfile
Created August 12, 2018 14:30
Build protobuf files for Dart - Docker image
FROM ubuntu
RUN mkdir /proto
WORKDIR /proto
RUN apt update && apt install apt-transport-https gnupg2 curl unzip wget -y
RUN sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
RUN sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'