Skip to content

Instantly share code, notes, and snippets.

View jacquelineIO's full-sized avatar

Jacqueline McK jacquelineIO

  • Montgomery, AL, USA
View GitHub Profile
@jacquelineIO
jacquelineIO / happy_git_on_osx.md
Created December 26, 2018 20:17 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@jacquelineIO
jacquelineIO / git-feature-workflow.md
Created November 29, 2018 23:07 — forked from blackfalcon/git-feature-workflow.md
Git basics - a general workflow

There are many Git workflows out there, I heavily suggest also reading the atlassian.com [Git Workflow][article] article as there is more detail then presented here.

The two prevailing workflows are [Gitflow][gitflow] and [feature branches][feature]. IMHO, being more of a subscriber to continuous integration, I feel that the feature branch workflow is better suited.

When using Bash in the command line, it leaves a bit to be desired when it comes to awareness of state. I would suggest following these instructions on [setting up GIT Bash autocompletion][git-auto].

Basic branching

When working with a centralized workflow the concepts are simple, master represented the official history and is always deployable. With each now scope of work, aka feature, the developer is to create a new branch. For clarity, make sure to use descriptive names like transaction-fail-message or github-oauth for your branches.

@jacquelineIO
jacquelineIO / migrate-django.md
Created August 17, 2018 03:26 — forked from sirodoht/migrate-django.md
How to migrate Django from SQLite to PostgreSQL

How to migrate Django from SQLite to PostgreSQL

Dump existing data:

python3 manage.py dumpdata > datadump.json

Change settings.py to Postgres backend.

Make sure you can connect on PostgreSQL. Then:

@jacquelineIO
jacquelineIO / Setting up subdomain with Drupal installation on Linode
Created August 13, 2018 15:26 — forked from klan/Setting up subdomain with Drupal installation on Linode
How to set up a subdomain on a Linode server with a Drupal installation and a repository
• SSH to your server to start creating a subdomain (https://library.linode.com/hosting-website#sph_configuring-name-based-virtual-hosts)
• Go to ~/public/
› mkdir -p sub.example.com/{public,log,backup}
› cd sub.example.com/public/
› nano index.html | nano index.php
• Write 'Hello world' or whatever, we just need a html|php file to test with
@jacquelineIO
jacquelineIO / Contract Killer 3.md
Created July 19, 2018 03:21
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@jacquelineIO
jacquelineIO / GitHub-Forking.md
Created August 15, 2017 22:43 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@jacquelineIO
jacquelineIO / lambda-not-anon.md
Created April 7, 2017 16:35
The distinction between anonymous functions and lambdas in JavaScript.

TL;DR - Lambda means "function used as data".

Anonymous function means "function without a name".

This is one of the relatively few cases where the Wikipedia definition of a word, while not entirely wrong, is misleading. Lambdas and anonymous functions are distinct ideas.

These ideas are commonly confused because in many programming languages (and lambda calculus) all lambdas are anonymous or vise verse.

In JavaScript, not all lambdas are anonymous, and not all anonymous functions are lambdas, so the distinction has some practical meaning.

@jacquelineIO
jacquelineIO / git-standup
Created March 7, 2017 18:49 — forked from mrliptontea/git-standup
Git Daily Scrum helper
#!/bin/bash
# ------------------------------------------------------------------
# Git Daily Scrum (stand-up meeting) helper.
#
# The script helps you remember what you did last time and facilitates
# writing daily log for remote teams. Be aware that it assumes that
# meetings are conducted at the same time every day.
#
# Installation:
# 1. Place the script in some folder, e.g. your home:
@jacquelineIO
jacquelineIO / meetings.rst
Created March 7, 2017 18:46 — forked from gregglind/meetings.rst
Guidelines for Efficient Moderated Meetings

Guidelines for Efficient Moderated Meetings

Purpose

  • have short, efficient meetings that honor the contributions of all members

  • prevent many failure modes that derail meetings, including:

    • going too long
DELIMITER $$
DROP PROCEDURE IF EXISTS setupLogging $$
CREATE PROCEDURE setupLogging()
BEGIN
CREATE TABLE IF NOT EXISTS sp_logger(ts timestamp DEFAULT current_timestamp, thingID bigint, msg varchar(512)) ENGINE = MyISAM;
END $$
CALL setupLogging() $$
DROP PROCEDURE IF EXISTS setupTmpLog $$