Skip to content

Instantly share code, notes, and snippets.

View Rrrapture's full-sized avatar

Rachelle Gray Rrrapture

View GitHub Profile
@Rrrapture
Rrrapture / shell-vim-commands.txt
Last active May 25, 2017 18:22
General Terminal Commands - Bash shell, vim - that I'm just learning or want to have as a reference.
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 / git-feature-branch-merge-steps.txt
Created December 24, 2016 03:21
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…
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
@ivan-loh
ivan-loh / rename.sh
Created December 12, 2016 20:06
bash script to mass rename files in a directory
#!/bin/sh
SRCEXT="html"
DSTEXT="txt"
for file in *.$SRCEXT; do
echo "$file -> `basename "$file" .$SRCEXT`.$DSTEXT"
mv "$file" "`basename "$file" .$SRCEXT`.$DSTEXT"
done
@Rrrapture
Rrrapture / javaScriptDataTypesAcronym.txt
Last active January 20, 2023 13:08
OBUNNSS Acronym for JavaScript Data Types
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
@RyanThompson
RyanThompson / lineup.md
Last active August 31, 2017 17:30
Private Addon Lineup
@eporama
eporama / phpupdate.sh
Last active April 22, 2017 00:25
A bash script to brew update php and relink in phpenv
#!/usr/bin/env bash
# Use this script to update multiple versions of PHP
versions=(56 70);
echo "Updating brew"
brew update
for version in ${versions[@]}
@foolip
foolip / document.md
Last active September 20, 2018 00:33
Document interfaces
webpack --display-modules | awk '{print $3$4" "$2}' | grep -v bytes | sort -n | tail -100
@markerikson
markerikson / webpackAndNodeEnv.md
Last active January 18, 2018 03:01
Webpack and confusion with process.env.NODE_ENV

2016-07-10 - #webpack - Initial discussion and confusion

[09:38 PM] Steven: No matter what I do, I cannot get the NODE_ENV to be production for the purposes of webpack compiling
I have tried every example on the web

    plugins: [  
        new webpack.DefinePlugin({  
            'process.env':{  
 'NODE_ENV': JSON.stringify('production') 
@artjomb
artjomb / create.js
Created June 4, 2016 14:23
ECMAScript 6 capability of PhantomJS 2.1.1
// PhantomJS script for creating this data
var page = require('webpage').create();
var fs = require('fs');
var url = "https://kangax.github.io/compat-table/es6/";
page.onConsoleMessage = function(msg, lineNum, sourceId) {
console.log('CONSOLE> ' + msg);
};