Skip to content

Instantly share code, notes, and snippets.

View Chell0's full-sized avatar
πŸ‘¨β€πŸ’»
Just Coding

Machel G O O Chell0

πŸ‘¨β€πŸ’»
Just Coding
View GitHub Profile
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@Kartones
Kartones / postgres-cheatsheet.md
Last active October 28, 2025 17:42
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@carolineartz
carolineartz / calculations.js
Last active May 24, 2023 00:03 — forked from dbc-challenges/calculations.js
Calculate the sum, mean, and median of an array in JavaScript
/*
Write THREE functions: sum, mean, and median. Each accepts an array
and returns its respective calculation.
Below you will find driver code. Run the code in this file either from the command line
using Node.js or by pasting the code of this entire file into your
browser console. All tests will log 'true' in the console when
they pass--false, otherwise.
@TylerFisher
TylerFisher / hosting-on-github.md
Last active October 7, 2025 14:02
Basic steps for hosting on Github

Hey there, apparently people are still using this Gist from 2013! It's out of date! Consult the Github docs.

Steps for Hosting a Website on GitHub

  1. Create a GitHub account on github.com.
  2. Download either [GitHub for Mac][1] or [GitHub for Windows][2], depending on your operating system. Open the app and log in using the account you just created.
  3. (On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
  4. Create a new repository in your GitHub application. Name it your-username.github.io. The name is very important. Note the folder that GitHub is saving the repository to. Make sure the "Push to GitHub?" box is checked.
  5. Move your website's files into the folder that GitHub just created when you made the repository. IMPORTANT: Your homepage HTML file must be called "index.html", and it must exist in the top-level