Skip to content

Instantly share code, notes, and snippets.

View Affenpilot's full-sized avatar

Florian Büchner Affenpilot

View GitHub Profile
@llagerlof
llagerlof / generateCallTrace.php
Last active February 23, 2022 09:35
PHP function to generate a human readable call trace.
<?php
/**
* generateCallTrace() function
*
* A function for getting a nice and comprehensible call trace.
* It is probably more resource-intensive than some other alternatives but it is short,
* understandable, and gives nice output (Exception->getTraceAsString()).
*
* @package generateCallTrace
* @version 1.0
@carcinocron
carcinocron / debugger pause beforeunload
Last active July 10, 2024 08:48
Chrome: pause before redirect
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
@magnetikonline
magnetikonline / README.md
Last active July 7, 2024 05:27
Setting Nginx FastCGI response buffer sizes.
@ozh
ozh / composer-proxy.md
Created March 24, 2014 23:30
Using Composer behind a proxy

Define the proxy in the CLI :

$ export https_proxy='87.248.188.202:8080'
$ export http_proxy='87.248.188.202:8080'

Check proxy :

@sweetports
sweetports / phpstorm-FTPerror(timestamp)
Last active March 3, 2021 08:18
Phpstorm FTP uploading error(timestamp)
PhpstormでFTPアップロードで以下のエラーが出るとき
Failed to change timestamp of the file
Tool - Deployment -Optionsにて、「Preserve files timestamps」のチェックを外す
@jessejlt
jessejlt / elasticsearch.yml
Created August 19, 2011 21:47
EalsticSearch synonym configuration
# The cluster name
cluster.name: media
# Path Settings
#path.conf: /path/to/conf
#path.data: /path/to/data
#path.work: /path/to/work
#path.logs: /path/to/logs