Skip to content

Instantly share code, notes, and snippets.

View tomcatfever's full-sized avatar

Tom Adams tomcatfever

  • youngstown, ohio
View GitHub Profile
@tomcatfever
tomcatfever / ErrorEaddrinuseResolve.md
Created May 25, 2018 16:26
Release localhost from Error: listen EADDRINUSE

Run:
ps -ax | grep node

You'll get something like:
60778 ?? 0:00.62 /usr/local/bin/node abc.js

Then do: kill -9 60778

@tomcatfever
tomcatfever / emacs-jargon.md
Created May 11, 2018 16:56
Emacs Jargon Description

The following table is another way to help you understand the emacs jargon:

emacs terminology common terminology buffer document/workspace evaluate expressions interpret/execute some code font locking syntax highlighting filling line wrapping frame window kill cut mark beginning of the selected area

Homebrew Permissions Denied Issues Solution

Installing and fixing node.JS


brew install node

@tomcatfever
tomcatfever / trek-series.json
Last active April 6, 2018 14:26
A list of Star Trek series names
{
"full":
{"StarTrek":
["The Origional Series","The Animated Series","The Next Generation","Deep Space 9","Voyager","Enterprise","Discovery","Novels"]
},
"abbr":
{"ST":
["TOS","TAS" "TNG","DS9","VOY","ENT","DIS","Novels"]
}
}
@tomcatfever
tomcatfever / rules-of-acquisition.md
Created April 6, 2018 14:18
The Ferengi Rules Of Acquisition
  1. "Once you have their money, you never give it back." "The Nagus" (DS9 episode)
  2. "The best deal is the one that makes the most profit." The 34th Rule (DS9 novel)
  3. "Never spend more for an acquisition than you have to." "The Maquis, Part II" (DS9 episode)
  4. "A woman wearing clothes is like a man in the kitchen." The Ferengi Rules of Acquisition (DS9 novel)
  5. "Always exaggerate your estimates." Cold Fusion (SCE novel)
  6. "Never let family stand in the way of opportunity." "The Nagus" (DS9 episode)
  7. "Always keep your ears open." "In the Hands of the Prophets" (DS9 episode)
  8. "Small print leads to large risk." The Ferengi Rules of Acquisition (DS9 novel)
  9. "Instinct, plus opportunity, equals profit." "The Storyteller" (DS9 episode)
  10. "Greed is eternal." "Prophet Motive" (VOY episode)
@tomcatfever
tomcatfever / dock-space.sh
Last active May 9, 2018 14:42
Create a space in OSX Doc from command line
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
@tomcatfever
tomcatfever / unicode-keyboard-symbols.md
Created March 2, 2018 16:54
Unicode keyboard symbols - Works on Mac with U+ unicode hex input keyboard enabled.

⌘ – ⌘⌘ – the Command Key symbol
⌥ – ⌥⌥ – the Option Key symbol
⇧ – ⇧⇧ – the Shift Key symbol
⌃ – ⌃⌃ – the Control Key symbol
⎋ – ⎋⎋ – the ESC Key symbol
⇪ – ⇪⇪ – the Capslock symbol
⏎ – ⏎⏎ – the Return symbol
⌫ – ⌫⌫ – the Delete / Backspace symbol
⇥ – ⇥⇥ – the Tab Key symbol

@tomcatfever
tomcatfever / edit-webcpy.js
Last active February 5, 2018 07:40
edit website copy on page
// edit any website text with this console script
// good for mock-up and copy testing
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0
@tomcatfever
tomcatfever / vs-code-settings.js
Last active May 4, 2018 15:15
VS Code User Settings
{
/* Editor UI */
"editor.minimap.enabled": false,
"window.zoomLevel": 0,
"workbench.activityBar.visible": true,
// configure emmet
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"javascript": "JSX",
},
var myString = "Sentence to reverse";
var result = myString.split(" ").map(words => words.split("").reverse().join("")).join(" ");
// add a way to change case
console.log(result);