Skip to content

Instantly share code, notes, and snippets.

View cubehouse's full-sized avatar
🎢
Whee!

Jamie Holding cubehouse

🎢
Whee!
View GitHub Profile
@cubehouse
cubehouse / tokyodisney.patch
Created June 3, 2018 12:45
Quick fix for Tokyo wait times
diff --git a/lib/disneytokyo/index.js b/lib/disneytokyo/index.js
index 6a6e26a..0c95059 100644
--- a/lib/disneytokyo/index.js
+++ b/lib/disneytokyo/index.js
@@ -64,7 +64,7 @@ class DisneyTokyoPark extends Park {
var rideObject = this.GetRideObject({
id: ride.ID,
- name: rideData[ride.ID]
+ name: ride.Name
@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 / test.dart
Created August 12, 2018 11:38
Flutter Tab Crash #11895
import 'package:flutter/material.dart';
void main() {
runApp(TabBarDemo());
}
class TabBarDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@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'
// 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: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)