Skip to content

Instantly share code, notes, and snippets.

@enumag
enumag / 01 Create a debug version of the docker image.sh
Created December 10, 2020 19:41 — forked from sh41/01 Create a debug version of the docker image.sh
Debugging segmentation faults in PHP in a docker container.
git clone [email protected]:docker-library/php.git docker-library-php
## Go to the specific version you're interested in
cd docker-library-php/7.1/fpm/alpine
## Edit the .Dockerfile.
## Change
## ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data
## to
## ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --enable-debug
## Comment out or delete:
@enumag
enumag / UnityPosFinder.py
Created August 22, 2018 04:54 — forked from TellowKrinkle/UnityPosFinder.py
Correlates offsets with object IDs in unity asset files
import sys
import unitypack
from unitypack.asset import Asset
if len(sys.argv) < 3:
print("Usage: " + sys.argv[0] + " assetfile.assets (offset | offsetfile.txt)\nOffset file formatting: per line \"offset [printout name]\"")
exit()
try:
targetOffsets = [[int(sys.argv[2], 0), sys.argv[2]]]
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb
sudo dpkg -i elasticsearch-1.1.1.deb