Skip to content

Instantly share code, notes, and snippets.

@ryantan
ryantan / resign-ipa.md
Last active January 1, 2025 23:03
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.

@lohanidamodar
lohanidamodar / V2-Style-advance.css
Last active January 1, 2025 23:03 — forked from mewforest/YouTube Chat CSS.css
Styles for YouTube streaming live-chat (tested in OBS)
@import url("https://fonts.googleapis.com/css?family=Candal");
@import url("https://fonts.googleapis.com/css?family=Changa One");
@import url("https://fonts.googleapis.com/css?family=Imprima");
/* Background colors*/
body {
overflow: hidden;
background-color: rgba(0,0,0,0);
}
/* Transparent background. */
@0xjac
0xjac / private_fork.md
Last active January 1, 2025 23:01
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@advaith1
advaith1 / top bots.md
Last active January 1, 2025 23:00
The top Discord bots ranked by server count
Rank Bot Approximate Server Count Library
1 MEE6 21,300,000 Custom Python
2 Rythm 🪦 15,200,000 JDA
3 carl-bot 🅱️ 10,900,000 Pycord
4 Groovy 🪦 10,100,000 JDA, Discord4J
5 Dyno
@devinschumacher
devinschumacher / cloud-gpus.md
Last active January 1, 2025 22:58
Cloud GPUs // The Best Servers, Services & Providers [RANKED!]

Cloud GPUs: Servers, Providers & Everything You Would Ever Need

Your company's GPU computing strategy is essential whether you engage in 3D visualization, machine learning, AI, or any other form of intensive computing.

There was a time when businesses had to wait for long periods of time while deep learning models were being trained and processed. Because it was time-consuming, costly, and created space and organization problems, it reduced their output.

This problem has been resolved in the most recent GPU designs. Because of their high parallel processing efficiency, they are well-suited for handling large calculations and speeding up the training of your AI models.

When it comes to deep learning, good Cloud GPUs can speed up the training of neural networks by a factor of 250 compared to CPUs, and the latest generation of [cloud GPUs is reshaping data science](https://www.perplexity.ai/page/best-cloud-gpu-rental-provider-HNR3Ws

@jamesktan
jamesktan / Shell Commands ePub
Last active January 1, 2025 22:58
Unzipping & Zipping ePub from Command Line
// To unzip the epub, move the ePub to a folder, cd to it then simply:
unzip MyEbook.epub
// To zip up an epub:
1. zip -X MyNewEbook.epub mimetype
2. zip -rg MyNewEbook.epub META-INF -x \*.DS_Store
3. zip -rg MyNewEbook.epub OEBPS -x \*.DS_Store
Some explanations necessary here. We start each line with two flags:
"""
-- requirements.txt
bip_utils==2.9.1
mnemonic==0.21
"""
from mnemonic import Mnemonic
from bip_utils import Bip44, Bip44Changes, Bip44Coins
mnemonic = "bottom drive obey lake curtain smoke basket hold race lonely fit walk"
passphrase = "password here"
@haseeb-heaven
haseeb-heaven / PyPiano.py
Created November 24, 2023 23:26
Turn your keyboard to Piano using Python.
import io
from pydub import AudioSegment
from pydub.generators import Sine
from pydub.playback import play
from pynput.keyboard import Key, Listener
import threading
from math import log2
# Function to generate a sine wave tone
def generate_tone(frequency, duration=500):
@paulirish
paulirish / how-to-view-source-of-chrome-extension.md
Last active January 1, 2025 22:49
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.