Skip to content

Instantly share code, notes, and snippets.

View DannyCrews's full-sized avatar

Dan Crews DannyCrews

View GitHub Profile

Modifying Data With SQL Cheatsheet

Adding a Row to a Table

Inserting a single row:

INSERT INTO <table> VALUES (<value 1>, <value 2>, ...);

Reporting with SQL Cheatsheet

Ordering Columns

Ordering by a single column criteria:

SELECT * FROM <table name> ORDER BY <column> [ASC|DESC];

SQL Basics Cheatsheet

Find All Columns and Rows in a Table

SELECT * FROM <table name>;

@DannyCrews
DannyCrews / git_cheatsheet.md
Last active May 9, 2016 00:48
Git command cheatsheet from Michael Hartl's Learn Enough Git to be Dangerous

Getting started

Command Description Example
git help Get help on a command $ git help push
git config Configure Git $ git config --global …
source <file> Activate Bash changes $ source ~/.bash_profile
mkdir -p Make intermediate directories as necessary $ mkdir -p repos/website
git status Show the status of the repository $ git status
touch <name> Create empty file $ touch foo
git add -A Add all files or directories to staging area $ git add -A
@DannyCrews
DannyCrews / command_line_cheat_sheet.md
Last active May 9, 2016 00:48
A collection of the most useful command line commands per Michael Hartl's 'Learn Enough Command Line to be Dangerous'

Basics

Command Description Example
echo <string> Print string to screen $ echo hello
man <command> Display manual page for command $ man echo
⌃C Get out of trouble $ tail^C
⌃A Move to beginning of line
⌃E Move to end of line
⌃U Delete to beginning of line
Option-click Move cursor to location clicked
@DannyCrews
DannyCrews / curl.md
Created February 10, 2014 03:48 — forked from btoone/curl.md

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post