Skip to content

Instantly share code, notes, and snippets.

@MarcoCiaramella
MarcoCiaramella / UDP.java
Last active April 22, 2023 13:07
UDP sender and receiver for Android.
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostException;
@victorbrca
victorbrca / chrome-remote-desktop
Created April 3, 2020 00:27
Add option to use existing Xorg session for chrome-remote-desktop
#!/usr/bin/python2
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Virtual Me2Me implementation. This script runs and manages the processes
# required for a Virtual Me2Me desktop, which are: X server, X desktop
# session, and Host process.
# This script is intended to run continuously as a background daemon
# process, running under an ordinary (non-root) user account.
@coolaj86
coolaj86 / Create a Bootable MacOS Recovery USB with Linux.md
Last active December 20, 2025 05:34
How to create Apple's Bootable MacOS Rescue Image from Linux

See bootableinstaller.com

How to create a Bootable MacOS Recovery USB from Linux

If your Mac is out-of-order or you otherwise cannot download macOS from the App Store, you can still create a bootable OS X recovery USB, and you can use that to create an Installer USB.

The downloads used in this process are legal and freely avaliable - including disk images directly from Apple's IT support pages, and open source utilities for extracting and converting pkg, dmg, and HFS+.

@coolaj86
coolaj86 / Empty Bootable macOS ISOs.md
Last active February 5, 2021 13:50
Empty ISOs for creating Bootable MacOS Installers

See https://bootableinstaller.com

Empty Bootable ISO

In order to create a bootable macOS installer or bootable OS X Installer from Windows or Linux you'll need to have an empty ISO file.

These are various sizes of SPUD / Apple Partition Map ISO files created with hdiutil.

macOS verison Suggested Minimum Suggested Maximum
@coolaj86
coolaj86 / Bootable Mac ISO with Linux.md
Last active April 20, 2025 01:25
Create Bootable MacOS ISO from Apple's Free PKG
Text to Speech For Pepegas
*Only tested with Brian voice*
Testing your message
You can use the following website which emulates TTS:
https://5e7en.me/tts
Cheering vs Donations
@judero01col
judero01col / Service KMS
Last active December 16, 2025 17:56
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@esutton
esutton / macos-installer-to-iso.sh
Last active January 12, 2023 05:25
Create macOS Catalina Bootable ISO Image
#!/bin/sh
#
# File: macos-installer-to-iso.sh
#
# Create a bootable ISO image from a macOS installer to install VMware ESXi guests.
#
# https://gist.github.com/Kutkovsky/613e29f35d3ef420b23b59ecdf7a28e0
# Debug on: set -x
set -eux
@ScribbleGhost
ScribbleGhost / Personal Windows 10 customization script.bat
Last active July 7, 2023 19:26
A personal collection of Windows 10 customizations. Run as admin. Has to be run as a batch file, not in CMD.
REM ----------------------------------------------------------------------------------------------------------
REM ### Apps and app suggestions
REM ----------------------------------------------------------------------------------------------------------
REM TITLE: Turn Off Automatic Installation of Suggested Apps in Windows 10
REM LINK: https://www.tenforums.com/tutorials/68217-turn-off-automatic-installation-suggested-apps-windows-10-a.html
REM OPTIONS: 0x00000001=On, 0x00000000=Off
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /V "SilentInstalledAppsEnabled" /T "REG_DWORD" /D "0x00000000" /F 1>NUL 2>&1
@ccdle12
ccdle12 / Rust-Cheat-Sheet.md
Last active December 20, 2025 17:23
My Cheat Sheet for programming in Rust.

Rust Cheat Sheet

Covers different areas of programming and the best practices/components explained.

Frequently used crates

A crate that contains a trait StructOpt. Allows a structure Opt to be converted