Skip to content

Instantly share code, notes, and snippets.

View gist:5564337
// update master
git checkout master
git pull elk master
// add a new branch from caching
git checkout Caching
git checkout -b refactorings
git rebase -i 807738bc8dd6de98d04dc5ad02a897067edd90b8
// you should have a window allowing you to pick only some commits and comment out others
View gist:5542609
git pull -f elk master
// where 'elk' is the name of your remote for elkarte/Elkarte
View gist:4644089
who = !echo \"== Commits by Author:\\n`git shortlog -s -n`\\n\"
##Make it pretty
lp = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(blue)<%an>%Creset' --abbrev-commit --date=relative --graph
ui = true
View gist:4380530
* This class is an experiment for the job of handling errors.
class error_context
* Holds the unique identifier of the error (a name).
View gist:4277926
// ...
$listOptions = array(
'id' => 'attach_paths',
'base_href' => $scripturl . '?action=admin;area=manageattachments;sa=attachpaths;' . $context['session_var'] . '=' . $context['session_id'],
'title' => $txt['attach_paths'],
'get_items' => array(
'function' => 'list_getAttachDirs',
View gist:4253788
* This is the function that initializes whatever needed, load templates, etc
* @uses Profile language files and Reminder template
function pre_reminder()
global $txt, $context;
View gist:4250282
$subActions = array(
'edit' => 'ModifyLanguages',
'add' => 'AddLanguage',
'settings' => 'ModifyLanguageSettings',
'downloadlang' => 'DownloadLanguage',
'editlang' => 'ModifyLanguage',
call_integration_hook('integrate_manage_languages', array($subActions));
View gist:4081632
git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(blue)<%an>%Creset' --abbrev-commit --date=relative --graph
View gist:4047952
class BreezeDispatcher
* Used in:
* 'integrate_actions' => 'BreezeDispatcher::actions'
* @param array $actions
View gist:4047291
abstract class Controller
abstract function dispatch();
class BreezeSomething extends Controller
function dispatch()
// ...
You can’t perform that action at this time.