Skip to content

Instantly share code, notes, and snippets.

@franckweb
Last active November 20, 2018 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franckweb/2acebf598db1a84fb54ea6a21178c147 to your computer and use it in GitHub Desktop.
Save franckweb/2acebf598db1a84fb54ea6a21178c147 to your computer and use it in GitHub Desktop.
Helpful scripts
## VIM usage
# to delete all lines in a file
:1,$d
## SUBLIME Tabs
{ "keys": "ctrl+pagedown", "command": "next_view_in_stack" },
{ "keys": "ctrl+pageup", "command": "prev_view_in_stack" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
## SUBLIME Installation
1. wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
2. echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
3. sudo apt-get update
sudo apt-get install sublime-text
### Sublime packages
CompanionPHP, Emmet, TerminalView, MoveTab
## LARAVEL Debugging
$lastQuery = Base::getLastQuery();
Log::info(__METHOD__ . " last query1: " . print_r($lastQuery, true));
## Node Sass error on gulp
npm rebuild node-sass
## find calling function PHP
debug_backtrace()[1]['function']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment