Skip to content

Instantly share code, notes, and snippets.

View pharaoh1's full-sized avatar

The Architect pharaoh1

View GitHub Profile
@pharaoh1
pharaoh1 / extend-trial-jetbrains-windows.bat
Created September 21, 2024 04:41 — forked from rjescobar/extend-trial-jetbrains-windows.bat
JetBrains IDE trial reset windows
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
@pharaoh1
pharaoh1 / laravel_valet_setup.md
Created November 28, 2023 16:16 — forked from bradtraversy/laravel_valet_setup.md
Laravel Valet install on mac

Laravel Valet Setup (Mac)

This will get you setup with Laravel & Valet on your Mac. Quentin Watt has a good video tutorial on getting setup here as well

Install Homebrew

Go to https://brew.sh/ and copy the command and run in your terminal

It will be something like this...

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@pharaoh1
pharaoh1 / laravel_xampp_setup.md
Created November 28, 2023 16:16 — forked from bradtraversy/laravel_xampp_setup.md
Laravel Xampp setup on Mac and Windows

Laravel Xampp Setup (Windows & Mac)

Install Xampp

Install Xampp from https://www.apachefriends.org/index.html

  • Run the Xampp installer and open the Xampp control panel
  • Make sure that you enable the Apache and MySQL services
  • On mac you need to click "Start" on the Home tab, "Enable" on the Network tab and "Mount" on the Location Tab. Click "Explore" on the location tab to open your Xampp/Lampp folder

Install Composer

@pharaoh1
pharaoh1 / colors
Created August 19, 2023 03:16 — forked from dtmilano/colors
Shows terminal colors
#! /bin/bash
n=32
arg=setaf
text='Hello World! This is %s %d'
_help()
{
printf 'usage: %s [--help|-H] [--16] [--256] [-t|--tiny] [--background|-b]\n' "$(basename $0)"
exit 0
@pharaoh1
pharaoh1 / demo1.py
Created August 18, 2023 21:57 — forked from richardbwest/demo1.py
Python ANSI Colors Tutorial example
import os
os.system("cls") #use this for windows. change to os.system("clear") for linux
COLORS = {\
"black":"\u001b[30;1m",
"red": "\u001b[31;1m",
"green":"\u001b[32m",
"yellow":"\u001b[33;1m",
"blue":"\u001b[34;1m",
@pharaoh1
pharaoh1 / ios_14_downgrade.md
Created December 10, 2021 18:37
How to downgrade from iOS 15 to iOS 14

How to downgrade from iOS 15 to iOS 14

The latest SEP/BB as of right now is iOS 15.1, and is partially or fully compatible with iOS 14 depending on your device. See the appropriate section for exact compatibility info.

Prequisites

Notes

  • If the exploit fails even after multiple attempts or your device reboots out of DFU mode, you'll have to start over from the beginning and be quicker next time. (You don't have to redownload anything though.) You may have to force restart your device if it's stuck in DFU.
@pharaoh1
pharaoh1 / phoenix.c
Created April 25, 2021 15:56 — forked from Siguza/phoenix.c
Phœnix exploit / iOS 9.3.5
// Bugs by NSO Group / Ian Beer.
// Exploit by Siguza & tihmstar.
// Thanks also to Max Bazaliy.
#include <stdint.h> // uint32_t, uint64_t
#include <stdio.h> // fprintf, stderr
#include <string.h> // memcpy, memset, strncmp
#include <unistd.h> // getpid
#include <mach/mach.h>
#include <stdlib.h>
@pharaoh1
pharaoh1 / tutorial.md
Created April 8, 2021 15:00 — forked from dhinakg/tutorial.md
iOS/iPadOS 14.3 OTA
//A7~A9, use SHA1 algorithm to generate apnonce.
unsigned long buf = 0x1111111111111111;
unsigned char result[CC_SHA1_DIGEST_LENGTH];
CC_SHA1(&buf, sizeof(buf), result);
for (int i = 0; i < CC_SHA1_DIGEST_LENGTH; i++)
printf("%02" PRIx32, result[i]);
putchar('\n');
//A10~A11, use SHA384 algorithm, but only take the first 32 bits to generate apnonce.
unsigned long buf = 0x1111111111111111;
@pharaoh1
pharaoh1 / devicetree-iPhone12,3-17C54.txt
Created February 24, 2021 08:08 — forked from bazad/devicetree-iPhone12,3-17C54.txt
iPhone12,3 17C54 device tree
device-tree:
target-type (5): "D421"
mlb-serial-number (32): "C07947707R3LTPJB"
compatible (27): "D421AP\0iPhone12,3\0AppleARM\0"
secure-root-prefix (3): "md"
AAPL,phandle (4): 0x1
platform-name (32): "t8030"
device_type (8): "bootrom"
region-info (32): "LL/A"
regulatory-model-number (32): "A2160"