Skip to content

Instantly share code, notes, and snippets.

View basdp's full-sized avatar
🏠
Working from home

Bas du Pré basdp

🏠
Working from home
View GitHub Profile
@basdp
basdp / remove-foreign-langs-from-mkv.sh
Created April 11, 2025 09:38
Remove foreign languages from MKV file(s), e.g. Russian, Ukrainian, etc
#!/bin/bash
set -euo pipefail
# Ensure mkvmerge is installed
if ! command -v mkvmerge &> /dev/null; then
echo "Error: mkvmerge is not installed. Please install it first."
exit 1
fi
export component Demo {
Rectangle {
init => {
// This line crashes
debug(self.absolute-position.y);
}
}
}
struct Port {
x: length,
y: length,
name: string,
}
component Node inherits Rectangle {
in-out property <[Port]> ports;
private property <Port> port: ports[0];
@basdp
basdp / screencast
Created October 18, 2016 09:15 — forked from pmilosev/screencast
Stream iPhone's screen over WIFI
/*
* 1) Download CocoaHTTPServer from Github: https://github.com/robbiehanson/CocoaHTTPServer
* 2) Include the downloaded source (except the samples) in your project
* 3) Define the SCREENCAST macro for the target/configuration you want to enable the screencast for (SCREENCAST=1)
* 4) Add the code below to your main.m file before the main() method
*/
#if SCREENCAST
#import "HTTPServer.h"
#import "HTTPConnection.h"
#!/bin/bash
# USAGE: sign.sh INPUT CERTIFICATE_NAME PROVISIONING_PROFILE_FILE OUTPUT [optional: BUNDLE_ID]
SOURCEIPA="$1"
DEVELOPER="$2"
MOBILEPROV="$3"
TARGET="$4"
BUNDLEID="$5"