Skip to content

Instantly share code, notes, and snippets.

View Vision-X's full-sized avatar

Michael Marlow Vision-X

View GitHub Profile
@Vision-X
Vision-X / March2021-ToDo.md
Last active March 18, 2021 20:44
March 2021 To Do List
  • Convert old Gatsby PS to updated version

  • Change netlify deploy to new, updated repo

  • Confirm deploy

  • Build minimalist site template for PS

  • Evaluate TS code for stock checker / alert

    • Modify for single site
    • Manage proxies
  • Pre-check proxies for active response

@Vision-X
Vision-X / ubuntu-tools-and-commands.md
Last active June 8, 2024 12:00
Ubuntu Tools + Commands

List of Ubuntu tools and commands

  • Description: Hardware monitoring with web interface and customizable GUI templates.

  • Commands

    • start: sudo systemctl start netdata
    • stop: sudo systemctl stop netdata
    • status: sudo systemctl status netdata
#!/bin/bash
PACKAGES=$(cat "${1:-/dev/stdin}" | \
grep "require([\"'][^'\"]*.)" | \
sed 's/^[^(]*(.//g' | \
sed 's/.[\)]*[a-zA-Z;]*$//' | \
sed "s/.[)].*$//" | \
sort | uniq)
# Remove NodeJS built-ins
@Vision-X
Vision-X / sorting-algos.md
Created June 19, 2019 17:04 — forked from justsml/sorting-algos.md
Passing the Tech Screen: Big-O & Sorting algorithms

Sorting algorithms are hard to memorize.

So here's a template for tracking the important differences.

Algo. Name Big-O (worst case) Suitable for large sets? Good for partially/mostly sorted data? Totally random data? Notes
Bubble O(n^2) ๐Ÿ‘Ž ๐Ÿ˜ž ๐Ÿ˜ Simple/not-ideal for large data sets
@Vision-X
Vision-X / git-workflow-team-template.md
Created March 23, 2019 16:53
git-workflow-team-template

Individual branches:

  • git checkout -b MM-my-branch

  • git push and commit to this branch

  • make a pull request, slack a team member to merge

  • slack team after merge, update master

@Vision-X
Vision-X / gist:1077518fc2e889037601c545f1fd8074
Created March 23, 2019 16:52
github-team-workflow-template
Individual branches:
- git checkout -b MM-my-branch
- git push and commit to this branch
- make a pull request, slack a team member to merge
- slack team after merge, update master

Deploying a React App to firebase!!!

NOTE: Before deployment, you will need to first run npm run build to create the build folder which will be used for deployment. You need to have this before starting these firebase commands

1) Install firebase CLI tools with this command:

  • npm install -g firebase-tools

2) In your terminal, run (if its your first time using firebase CLI):

@Vision-X
Vision-X / Install Composer to use MAMP's PHP.md
Created March 15, 2019 23:25 — forked from kkirsche/Install Composer to use MAMP's PHP.md
How to install Composer globally using MAMP's PHP

##Create an alias to MAMP's PHP installation

To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.

Within the terminal, run:

nano ~/.bash_profile

This will open nano with the contents, at the top in a blank line add the following line:

import { expect } from 'chai';
import quickSort from '../scripts/quickSort.js'
import generateRandomArray from '../scripts/generateRandomArray'
describe('quickSort', () => {
it('Should be a function', () => {
expect(quickSort).to.be.a.function
})
import { expect, assert } from 'chai';
import mergeSort from '../scripts/mergeSort'
import generateRandomArray from '../scripts/generateRandomArray'
describe('mergeSort', () => {
it('Should be a function', () => {
expect(mergeSort).to.be.a.function
})
it('Should only sort arrays', () => {;