This file contains hidden or 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
*** glibc detected *** php: free(): invalid pointer: 0x00000000019be940 *** | |
======= Backtrace: ========= | |
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7fc6664a5b96] | |
php(sapi_shutdown+0x17)[0x686b77] | |
php(main+0x3d1)[0x464bf1] | |
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fc66644876d] | |
php[0x464ddd] | |
======= Memory map: ======== | |
00400000-00b8d000 r-xp 00000000 ca:01 1192719 /usr/bin/php5 | |
00d8d000-00e2f000 r--p 0078d000 ca:01 1192719 /usr/bin/php5 |
This file contains hidden or 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
<?php | |
error_reporting(E_ALL ^ E_NOTICE); | |
/** | |
* Timer Manager | |
*/ | |
class TimerManager | |
{ | |
private $_timers; | |
private $_timeouts; |
This file contains hidden or 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
ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="robbyrussell" | |
DISABLE_CORRECTION="true" | |
plugins=(git osx brew rake rbenv tmux) | |
source $ZSH/oh-my-zsh.sh | |
# vi-mode | |
bindkey -v | |
bindkey -a u undo | |
bindkey -a '^R' redo |
This file contains hidden or 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
Show hidden characters
[ | |
{ "keys": ["ctrl+l"], "command": "expand_selection", "args": {"to": "line"} }, | |
{ "keys": ["ctrl+d"], "command": "find_under_expand" }, | |
{ "keys": ["ctrl+w"], "command": "expand_selection", "args": {"to": "scope"} }, | |
{ "keys": ["ctrl+i"], "command": "expand_selection", "args": {"to": "indentation"} }, | |
{ "keys": ["ctrl+]"], "command": "goto_definition" }, | |
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }, | |
{ "keys": ["ctrl+["], "command": "reveal_in_side_bar" } | |
] |
This file contains hidden or 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
{ | |
"always_prompt_for_file_reload": false, | |
"always_show_minimap_viewport": false, | |
"animation_enabled": true, | |
"atomic_save": true, | |
"auto_close_tags": true, | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": false, | |
"auto_complete_delay": 50, | |
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin", |
This file contains hidden or 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 | |
# CentOS rbenv system wide installation script | |
# Forked from https://gist.github.com/1237417 | |
# Installs rbenv system wide on CentOS 5/6, also allows single user installs. | |
# Install pre-requirements | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ | |
make bzip2 autoconf automake libtool bison iconv-devel git-core |
This file contains hidden or 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
SELECT table_schema AS "Database name", SUM(data_length + index_length) / 1024 / 1024 AS "Size (MB)" FROM information_schema.TABLES GROUP BY table_schema; |
This file contains hidden or 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 sh | |
function apkinfo() | |
{ | |
for part in $(aapt d badging $1 |grep package) | |
do | |
echo $part | |
done | |
echo "size: $(wc -c $1 |cut -d " " -f2)" | |
echo "hash: $(shasum $1 |cut -d " " -f1)" |
This file contains hidden or 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
alias realpath='python -c '\''import os,sys; print (os.path.abspath(sys.argv[1]) if len(sys.argv)>1 and os.path.exists(sys.argv[1]) else "Invalid path\nUsage: realpath <path>")'\' |
NewerOlder