Skip to content

Instantly share code, notes, and snippets.

View cngondo's full-sized avatar
🎯
Focusing

Cornellius Ngondo cngondo

🎯
Focusing
  • Galvanize
  • Mexico City, Mexico
View GitHub Profile
@bradtraversy
bradtraversy / docker-help.md
Last active June 16, 2024 19:34
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@robhrt7
robhrt7 / MySQL_5-7_macOS.md
Last active February 28, 2024 03:48 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@64kramsystem
64kramsystem / pg_hba.conf
Created February 15, 2018 22:08
PostgreSQL 10 default pg_hba.conf
# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file. A short
# synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
@ibraheem4
ibraheem4 / postgres-brew.md
Last active June 16, 2024 04:48 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@d2s
d2s / installing-node-with-nvm.md
Last active March 13, 2024 12:09
Installing Node.js to Linux & macOS & WSL with nvm

Installing Node.js with nvm to Linux & macOS & WSL

A quick guide on how to setup Node.js development environment.

Install nvm for managing Node.js versions

nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.

  1. Open new Terminal window.
@vitorbritto
vitorbritto / rm_mysql.md
Last active June 21, 2024 17:50
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
@Cfeusier
Cfeusier / singly-linked-list.js
Created December 14, 2014 09:25
Singly Linked List implementation in JavaScript
var Node = function(value) {
var node = {};
node.value = value;
node.next = null;
return node;
};
var LinkedList = function() {
var list = {};
list.head = null;
@Cfeusier
Cfeusier / undirected-graph.js
Created December 14, 2014 09:20
Simple undirected graph implementation in JavaScript
var Graph = function() {
this.nodes = {};
this.edges = {};
};
Graph.prototype.addNode = function(node) {
this.nodes[node] = node;
};
Graph.prototype.contains = function(node) {
@Cfeusier
Cfeusier / simple-tree.js
Created December 14, 2014 09:13
Simple Tree implementation in JavaScript
var Tree = function(value) {
var newTree = {};
newTree.value = value;
newTree.children = [];
_.extend(newTree, treeMethods);
return newTree;
};
var treeMethods = {};
@Cfeusier
Cfeusier / hashTable.js
Last active May 14, 2018 20:47
Hash Table implementation in JavaScript
var HashTable = function() {
this._limit = 8; // choose any size of hash table bucket limit
this._count = 0;
this._storage = [];
};
HashTable.prototype.insert = function(k, v) {
var i = this._getHashIndex(k, this._limit);
this._checkLimit(i); // make sure hashidx is in bounds
var bucket = this._storage[i];