Skip to content

Instantly share code, notes, and snippets.

View rpg600's full-sized avatar

Reinis Grinbergs rpg600

  • SensioLabs
  • Paris
View GitHub Profile
@skigun
skigun / .zshrc
Last active January 16, 2020 08:59
Alias bash Prowbce
# Personal
alias p="pwd"
alias vm="cd /Users/bertillon/Sites/developmentVM && vagrant"
alias vmssh="vm ssh"
alias pg="ping 8.8.8.8"
alias hacksensio="sudo ifconfig en0 lladdr #taCruLustucru"
alias t="multitail"
alias mo='meteor'
alias gremot='git remote show origin'
alias fig='docker-compose'
@lyrixx
lyrixx / segfault-finder.php
Last active September 23, 2025 16:12
How to find a segfault in PHP
<?php
register_tick_function(function() {
$bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
$last = reset($bt);
$info = sprintf("%s +%d\n", $last['file'], $last['line']);
file_put_contents('/tmp/segfault.txt', $info, FILE_APPEND);
// or
// file_put_contents('php://output', $info, FILE_APPEND);
});