Skip to content

Instantly share code, notes, and snippets.

Rachelle Gray Rrrapture

Block or report user

Report or block Rrrapture

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Rrrapture
Rrrapture / shell-vim-commands.txt
Last active May 25, 2017
General Terminal Commands - Bash shell, vim - that I'm just learning or want to have as a reference.
View shell-vim-commands.txt
The text M-k is read as `Meta-K, labeled ALT - the left one - on many keyboards
If you do not have a Meta or ALT key, or another key working as a Meta key, the identical keystroke can be generated by typing ESC first, and then typing k. Either process is known as metafying the k key.
UNDO!!! LAST COMMAND:
for my terminal at least: C-_ that's control and underscore
clear-screen (C-l)
Clear the screen and redraw the current line, leaving the current line at the top of the screen.
- use instead of $:clear
@Rrrapture
Rrrapture / lamp-laravel-aimeos-local-install-setup.txt
Last active Jul 20, 2017
LAMP laravel aimeos install - Mac - local
View lamp-laravel-aimeos-local-install-setup.txt
laravel-local-install-setup.txt
https://github.com/revolunet/sublimetext-markdown-preview/blob/master/README.md
specific to El Capitan, should work in Sierra as well
2017-04-21
https://laravel-news.com/laravel-5-5-php-7-0
@Rrrapture
Rrrapture / git-feature-branch-merge-steps.txt
Created Dec 24, 2016
Follow these explicit steps for using git in a command line. This walks you through a complete cycle of completing a simple story), of a feature branching workflow using just a working dev and a topic branch. Uses fetch/merge not pull, and merge commits not rebasing. Assumes a local initiated git repo and a hosted remote repo of name "origin". A…
View git-feature-branch-merge-steps.txt
Rachelle Gray
Git Feature Merging and Branching Workflow
- indented numbered items are command line arguments
- flush comments to give context
Follow these explicit steps for using git in a command line. This walks
you through a complete cycle of completing a simple story), of a feature
branching workflow using just a working dev and a topic branch. Uses
fetch/merge not pull, and merge commits not rebasing. Assumes a local
initiated git repo and a hosted remote repo of name "origin". Assumes
@Rrrapture
Rrrapture / regExDataTypePropertyToKey.txt
Created Dec 1, 2016
RegEx to convert a commented line of "data type" "property name" to a key value pair with comma
View regExDataTypePropertyToKey.txt
^\s?(?:\*|//)\s?[A-Za-z0-9_]+\s([a-z0-9_]+)$
\1: "",
RegEx to convert a commented line of "data type" "property name" to a key value pair with comma
Assumes property names are lowercase, it's the only part that's captured
Line 1 - Find
Line 2 - replace with
ex:
Find:
@Rrrapture
Rrrapture / javaScriptDataTypesAcronym.txt
Last active Jan 20, 2017
OBUNNSS Acronym for JavaScript Data Types
View javaScriptDataTypesAcronym.txt
7 JavaScript data types: OBUNNSS
* Object
* Boolean
* Undefined
* Null
* Number
* Symbol
* String
http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values
@Rrrapture
Rrrapture / regexSwapReplaceTab.txt
Created Dec 1, 2016
RegEx Find/Replace snippet to swap data property name and data type
View regexSwapReplaceTab.txt
^\s\*\s([a-z0-9_]+)[\t]([a-z_]+)$
* \2 \1
RegEx Find/Replace Snippet to swap data property name and data type in commented out JavaScript file.
Used in Sublime Text editor. Probably compliant with most regex-supporting languages including JS
Line 1 is Find, Line 2 is replace field
ie:
* event_category string
with
* string event_category
You can’t perform that action at this time.