Skip to content

Instantly share code, notes, and snippets.

View esc0rtd3w's full-sized avatar

Jason Borowski esc0rtd3w

View GitHub Profile
#!python2
#ps4 related changes -oct0xor
import sys, os, struct
from io import BytesIO
from pprint import pprint
def read_cstring(f):
bytes = []
@esc0rtd3w
esc0rtd3w / read-write-file.js
Created January 12, 2018 05:21
Read Write to file with javascript
/// write to file
var txtFile = "c:/test.txt";
var file = new File(txtFile);
var str = "My string of text";
file.open("w"); // open file with write access
file.writeln("First line of text");
file.writeln("Second line of text " + str);
file.write(str);
file.close();
<?php
/*
Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch)
---------
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
#!/bin/bash
if [ $# -lt 2 ]; then
echo "format: git_cleanup <repo name> [-x/--expunge <directory 1> -l/--keeplatest <directory 2> ...]"
exit
fi
PROJ="$1"
shift
@esc0rtd3w
esc0rtd3w / rename-apk-namespace
Created July 3, 2016 06:47 — forked from vavrecan/rename-apk-namespace
Script that allows renaming namespace of Android APK so you can install same application multiple times
#!/bin/bash
# author Marek Vavrecan (vavrecan@gmail.com)
# show usage
[ $# -eq 0 ] && { echo "Usage: $0 [apk path] [source namespace] [target namespace]"; exit 1; }
APK_PATH="$1"
NAMESPACE_FROM="$2"
NAMESPACE_TO="$3"