Skip to content

Instantly share code, notes, and snippets.

View jacquelineIO's full-sized avatar

Jacqueline McK jacquelineIO

  • Montgomery, AL, USA
View GitHub Profile

<% tp.file.title %> Weekly 📅

Small, Smart Choices + Consistency + Time = RADICAL DIFFERENCE

Startup

  • Transpose Meetings & Appointments
  • Set Goals
  • Move Items from backlog into todo that will help accomplish goals

Goals

Current big 3 goals

tags
DailyNote 2021

creation date: 2021-12-10 20:35 modification date: <%+ tp.file.last_modified_date('dddd Do MMMM YYYY HH:mm:ss') %>

<% tp.file.title %>

<< [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>>

@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 / php_generate_token.php
Created June 18, 2018 18:53
How to generate a token in PHP (copied from: https://security.stackexchange.com/a/40312)
<?php
function generateToken($length = 24) {
if(function_exists('openssl_random_pseudo_bytes')) {
$token = base64_encode(openssl_random_pseudo_bytes($length, $strong));
if($strong == TRUE)
return strtr(substr($token, 0, $length), '+/=', '-_,'); //base64 is about 33% longer, so we need to truncate the result
}
//fallback to mt_rand if php < 5.3 or no openssl available
$characters = '0123456789';
@jacquelineIO
jacquelineIO / mysql_calc_table_checksum.sql
Created May 23, 2018 16:59
MySQL Calculate Table Checkum Using CRC32. CRC32 can also be MD5 or something else. Adapted from SO post https://stackoverflow.com/a/591329
SELECT crc
FROM
(
SELECT @r := crc32(CONCAT( IFNULL(TABLE_CATALOG,''),
IFNULL(TABLE_SCHEMA,''),
IFNULL(TABLE_NAME,''),
IFNULL(TABLE_TYPE,''),
IFNULL(ENGINE,''),
IFNULL(VERSION,''),
IFNULL(ROW_FORMAT,''),