Skip to content

Instantly share code, notes, and snippets.

View mocon's full-sized avatar

Myles O'Connor mocon

View GitHub Profile
@mocon
mocon / bitcoin_practice_app.md
Created September 9, 2017 22:57
Description of my Bitcoin testing app

Bitcoin practice

A simple Node.js server, as well as React UI used for testing Bitcoin payments.

  1. Users log in with their Google or Facebook account, all requests are tied to their unique ID.
  2. The home page is a simple dashboard of basic user information, user transaction history and account balance.
  3. If there are pending payments, there will be a red notification icon

Workflow for a user sending money:

@mocon
mocon / shortcuts.md
Last active September 6, 2017 17:03
My favorite Chrome shortcuts on macOS

Chrome keyboard shortcuts

Here are some of my most-used Chrome shortcuts on macOS.

Tabs

Shortcut Action
⌘ T Open new tab
⌘ ⇧ N Open new Incognito tab
@mocon
mocon / .bash_profile
Created May 31, 2017 16:06
Example `.bash_profile` file
# Edit this file
alias aliases="nano ~/.bash_profile" # usage: type `aliases` in Terminal
# Navigate to location
alias home="cd ~"
alias desktop="cd ~/Desktop/"
alias repos="cd ~/Documents/Repos/"
# Navigate to project directory
alias ds="clear && cd ~/Documents/Repos/design-system"
@mocon
mocon / atom-react.sh
Created May 7, 2017 02:06
Atom React setup
apm install atom-beautify autoclose-html highlight-selected language-babel react linter linter-eslint minimap minimap-highlight-selected pigments seti-ui monokai-seti
@mocon
mocon / git-completion.bash
Created May 4, 2017 16:00
Store in `~/`, and reference in `~/.bash_profile`
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names

📂  repo_root/
    📄 Jenkinsfile (has no file extension, references tasks in xx_BUILD_STEP folders below)

    📂 01_BUILD/
        📄  _build.sh
        (optional - add more files for BUILD stage here)

    📂 02_UNIT_TESTS/
        📄  _unit_tests.sh
        (optional - add more files for UNIT_TESTS stage here)

@mocon
mocon / jenkins_notes.md
Last active December 14, 2016 22:48
Notes from Jenkins conference on 12/14/16

Seven habits of highly effective Jenkins

1. Have a reproducable environment

  • Make Jenkins master stable and restorable
  • Use Jenkins 2 LTS (2.7.x)
  • Have a Jenkins testbed/staging environment
  • Set up example jobs, test your builds in staging prior to production
  • Conservatively upgrade plugins, they can break
  • Backup your configuration (thinBackup plugin within Jenkins)
  • Avoid the "Maven" job type (use freestyle job, select Maven as a build step)
@mocon
mocon / Preferences.sublime-settings
Created August 22, 2016 20:13
Sublime Text 3 user preferences
{
"auto_complete": true,
"auto_complete_selector": true,
"auto_indent": true,
"detect_indentation": false,
"draw_white_space": "all",
"font_size": 14,
"ignored_packages":
[
"Vintage"
@mocon
mocon / autodoc.md
Last active December 22, 2016 20:28
Markdown representation of Autodoc file structure, to be added to the README.

📂  autodocCodeSnippets
    📂  phpstorm
    📂  sublime
    📂  vim
📂  docs
    📄  app.js
    📄  favicon.ico
    📄  index.html
    📄  logo.png
📄  autodocCommentParser.js

@mocon
mocon / reset.js
Created August 4, 2016 20:26 — forked from 19h/reset.js
Node.js — Clear Terminal / Console. Reset to initial state.
console.reset = function () {
return process.stdout.write('\033c');
}