Skip to content

Instantly share code, notes, and snippets.

View JustJoostNL's full-sized avatar
😀
I am coding something cool!

Joost JustJoostNL

😀
I am coding something cool!
View GitHub Profile
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active May 9, 2025 04:24
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@ummahusla
ummahusla / git-overwrite-branch.sh
Last active September 5, 2024 13:48 — forked from brev/git-overwrite-branch.sh
Git overwrite branch with another branch
# overwrite master with contents of feature branch (feature > master)
git checkout feature # source name
git merge -s ours master # target name
git checkout master # target name
git merge feature # source name
@jordicenzano
jordicenzano / generate-fairplay.sh
Last active February 15, 2025 16:46
Bash script that generates an HLS chunklist with Fairplay DRM from MP4. Also providing a test chunklist bypassing DRM
#Generate fairplay file with random generated Key, IV.
#And generate also a trobleshooting chunklist bypassing fairplay server and providing the plain key for testing
#Source data
SOURCE="/Users/jcenzano/Movies/test10m_baseline_30_320x240_a25fpsB.mp4"
#Dest data
DEST="/Users/jcenzano/Movies/hls-encrypted/result-fairplay"
KEYS_DIR="keys"
KEY_IV_FILENAME="key-iv.bin"
@scotticles
scotticles / dynamicdnsupdater.sh
Last active December 30, 2024 11:30
Dynamically update UFW with a dynamic dns for access to your home network or device with wireguard and ssh.
#!/bin/bash
#SET THE FOLLOWING
HOSTNAME=mydyndns.com
SSH_PORT=22
WIREGUARD_PORT=5246
#IF IT DOES NOT WORK, AT LEAST ON UBUNTU INSTALL, bind-utils to get the host command
@EvanBacon
EvanBacon / skeleton.tsx
Created October 23, 2024 23:38
Animated skeleton component with Expo SDK 52
"use client";
import React from "react";
import { View, StyleSheet, Animated, Easing, ViewStyle } from "react-native";
const BASE_COLORS = {
dark: { primary: "rgb(17, 17, 17)", secondary: "rgb(51, 51, 51)" },
light: {
primary: "rgb(250, 250, 250)",
secondary: "rgb(205, 205, 205)",
@stenuto
stenuto / hls.sh
Created November 7, 2024 16:58
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@benjaminkomen
benjaminkomen / potential_expo_ui_elements.md
Last active February 28, 2025 08:45
Potential Expo UI elements

Potential Expo UI elements

I think the idea of Expo UI is to provide components that are then natively implemented by:

  • Swift UI for iOS
  • Jetpack Compose for Android

I am not sure whether the component needs to exist for both and to what extend they need to be complete primitives or can be higher order, i.e. a common combination of them.

Components