Skip to content

Instantly share code, notes, and snippets.

View briped's full-sized avatar

Brian Schmidt Pedersen briped

View GitHub Profile
const jscad = require('@jscad/modeling');
const { polyhedron, cylinder } = jscad.primitives;
const { subtract } = jscad.booleans;
const getParameterDefinitions = () => [
{ name: 'baseGroup', type: 'group', caption: 'Base' },
{ name: 'width', type: 'number', caption: 'Width:', initial: 20.00, min: 20.00, max: 200.00, step: 5.00 },
{ name: 'depth', type: 'number', caption: 'Depth:', initial: 20.00, min: 20.00, max: 200.00, step: 5.00 },
{ name: 'height', type: 'number', caption: 'Height:', initial: 3.20, min: 1.00, max: 10.00, step: 0.10 },
{ name: 'taper', type: 'number', caption: 'Taper:', initial: -2.00, min: -10.00, max: 10.00, step: 0.10 },
@briped
briped / resign-ipa.md
Created June 4, 2025 23:53 — forked from ryantan/resign-ipa.md
How to resign an .ipa

How to Resign an iOS App

Let's say you receive an app (e.g. MyApp.ipa) from another developer, and you want to be able to install and run it on your devices (by using ideviceinstaller, for example).

Or your certificates and provision profiles have expired and you want to provide a new build to your clients without having to make a new build on the latest XCode or iOS SDK.

Prepare New Signing Assets

The first step is to attain a Provisioning Profile which includes all of the devices you wish to install and run on. Ensure that the profile contains a certificate that you have installed in your Keychain Access (e.g. iPhone Developer: Some Body (XXXXXXXXXX) ). Download the profile (MyProfile.mobileprovision) so you can replace the profile embedded in the app.

@briped
briped / Write-Rainbow.ps1
Created March 22, 2025 01:29
Writes rainbow text to the host
function Write-Rainbow {
[CmdletBinding()]
param (
[Parameter(Mandatory = $true
, Position = 0
, ValueFromPipeline = $true
, HelpMessage = "Enter text to write in rainbow colors.")]
[System.Object]
$Object
,
@briped
briped / KeepAlive.ps1
Created March 19, 2025 14:09
Simple script to keep your Windows RDP session alive
function Send-KeepAliveKey {
[CmdletBinding()]
param(
# Interval, in seconds, to send keep alive key.
[Parameter()]
[int]
$Interval = 240
,
# Maximum period in minutes that the script is continously running.
[Parameter()]