Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jeffreysbrother on github.
  • I am jeffreysbrother (https://keybase.io/jeffreysbrother) on keybase.
  • I have a public key ASB-LG7Czl0iPXsvWpkkevxsCEeATluBDyOP2kmTY500Ewo

To claim this, I am signing this object:

@jeffreysbrother
jeffreysbrother / index.php
Last active March 11, 2020 10:22
Generators in PHP
<?php
$start_time = microtime(true);
$startMemoryUsage = memory_get_peak_usage();
/**********************************************
WITHOUT GENERATOR
**********************************************/
$array = [];
var plan = require('flightplan');
var username = 'logicfo3';
plan.target('production', [
{
host: '69.195.124.76',
username: username,
privateKey: '/Users/jc/.ssh/id_rsa',
agent: process.env.SSH_AUTH_SOCK
},
@jeffreysbrother
jeffreysbrother / init.vim
Created January 10, 2018 21:31
SpaceVim config, etc
" Dark powered mode of SpaceVim, generated by SpaceVim automatically.
let g:spacevim_enable_debug = 1
let g:spacevim_realtime_leader_guide = 1
call SpaceVim#layers#load('incsearch')
call SpaceVim#layers#load('lang#go')
call SpaceVim#layers#load('lang#haskell')
call SpaceVim#layers#load('lang#javascript')
" call SpaceVim#layers#load('lang#php')
call SpaceVim#layers#load('lang#python')
call SpaceVim#layers#load('lang#markdown')
@jeffreysbrother
jeffreysbrother / config.cson
Last active December 13, 2017 00:20
Atom config 2017
"*":
Zen:
gutter: true
tabs: "multiple"
"atom-beautify":
js:
space_after_anon_function: true
"atom-clock":
dateFormat: "h:mm a"
showTooltip: true
@jeffreysbrother
jeffreysbrother / settings.json
Last active June 13, 2017 17:28
Visual Studio Code settings.json
// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 15,
"editor.lineHeight": 23,
"editor.roundedSelection": false,
"editor.renderIndentGuides": true,
"editor.tabCompletion": true,
"editor.matchBrackets": false,
"subtleBrackets.style": {
"borderWidth": "1px",
@jeffreysbrother
jeffreysbrother / Preferences.sublime-settings2
Created May 29, 2017 00:50
2016/2017 Sublime Text settings ... influenced by the Laracasts guy.
{
"always_show_minimap_viewport": true,
"color_scheme": "Packages/User/SublimeLinter/Facebook (SL).tmTheme",
"font_face": "Fira Code",
"font_size": 15,
"hot_exit": false,
"ignored_packages":
[
"Vintage"
],
@jeffreysbrother
jeffreysbrother / .vimrc
Last active December 5, 2017 18:24
2017 work .vimrc
set runtimepath+=~/.vim_runtime
source ~/.vim_runtime/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/filetypes.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim
source ~/.vim_runtime/vimrcs/extended.vim
try
source ~/.vim_runtime/my_configs.vim
catch
{
"always_show_minimap_viewport": true,
"color_scheme": "Packages/Colorsublime - Themes/Boron.tmTheme",
"font_face": "Fira Code",
"font_size": 11,
"hot_exit": false,
"ignored_packages":
[
"Vintage"
],
@jeffreysbrother
jeffreysbrother / commit-msg
Created October 10, 2016 17:19
Add branch name to beginning of commit message
# add file to {projectname}/.git/hooks/
# please ensure that the .sample extension is not included
NAME=$(git branch | grep '*' | sed 's/* //')
DESCRIPTION=$(git config branch."$NAME".description)
echo "$NAME"' '$(cat "$1") > "$1"
if [ -n "$DESCRIPTION" ]
then
echo "" >> "$1"