This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i '/<pattern>/s/^/#/g' file #comment | |
sed -i '/<pattern>/s/^#//g' file #uncomment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# A simple script to build 64-bit and 32-bit Mesa and libdrm on amd64 Debian | |
# stable, Debian testing, Debian unstable, and possibly some Ubuntu versions | |
# with some tweaks. | |
# | |
# libdrm is build too, because often version right now in Debian sid and experimental | |
# is too old for current mesa git repo. Also it is nice to build debug | |
# versions of libdrm when troubleshooting some crashes and bugs. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $# != 2 ]; then | |
echo "Usage: $0 /path/to/input_ipa /path/to/output_ipa" | |
exit 1 | |
fi | |
if ! [ -f $1 ]; then | |
echo "'$1' does not exist" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# If you like this script and my work on libimobiledevice, please | |
# consider becoming a patron at https://patreon.com/nikias - Thanks <3 | |
REV=1.0.17 | |
if test "`echo -e Test`" != "Test" 2>&1; then | |
echo Please run this with zsh or bash. | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Made by @Cryptiiiic, Cryptic#6293 | |
# please build in this docker container: | |
# docker run -it --name debian debian:buster-slim | |
set -e | |
export FR_BASE=/tmp/build | |
export C_ARGS="-fPIC -static" | |
export CXX_ARGS="-fPIC -static" | |
export LD_ARGS="-Wl,--allow-multiple-definition -static -L/usr/lib/x86_64-linux-gnu -L/tmp/out/lib" | |
export C_ARGS2="-fPIC" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> |