Skip to content

Instantly share code, notes, and snippets.

View gemmadlou's full-sized avatar

Gemma Black gemmadlou

View GitHub Profile
@gemmadlou
gemmadlou / gist:56abc88be51f8629bf2c5bf5ed6c7870
Created April 15, 2020 08:21 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@gemmadlou
gemmadlou / store-auth.js
Created April 12, 2020 10:05
Auth0 Vuex based Authentication
import createAuth0Client from '@auth0/auth0-spa-js'
import deepEqual from 'deep-equal'
/**
* A singleton auth0 variable that defines the Auth0 client for single use across the store
*
* @var {Auth0Client}
*/
let auth0 = undefined
@gemmadlou
gemmadlou / .autorc
Last active April 5, 2020 09:37
Auto docker image release
{
"plugins": [
"git-tag",
"conventional-commits",
[
"exec",
{
"afterVersion": "publish"
}
]
@gemmadlou
gemmadlou / .bash_profile
Last active July 10, 2020 09:40
AWS reassigning IP addresses automatically
function renew_aws_ip {
SECURITY_GROUP=$1
NAME_OF_RULE=$2
REGION="--region=eu-west-1"
if [ ! -z "$3" ]; then
REGION="--region=$3"
fi
@gemmadlou
gemmadlou / db-connect-test.php
Created March 12, 2020 11:26 — forked from M165437/db-connect-test.php
Script for a quick PHP MySQL DB connection test.
<?php
# Fill our vars and run on cli
# $ php -f db-connect-test.php
$dbname = 'name';
$dbuser = 'user';
$dbpass = 'pass';
$dbhost = 'host';
$link = mysqli_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'");
@gemmadlou
gemmadlou / mysql_imports.sh
Last active March 4, 2020 16:29
MySQL imports
mysql --defaults-group-suffix=_products --database data_analysis -e "load data local infile 'data/file.csv' into table table_name fields terminated by ',' enclosed by '\"' lines terminated by '\n'"
mysql --defaults-group-suffix=_products --database data_analysis < file.sql
# Dump
mysqldump --defaults-group-suffix=_local_products --column-statistics=0 --no-create-info --set-gtid-purged=OFF --insert-ignore rentr > test.sql
@gemmadlou
gemmadlou / 1.md
Last active January 6, 2020 14:09
Development-Team-Philosophy

Dev Philosophies - Dream

Making quality software fast.

Trust and autonomy {#trust-and-autonomy}

Trust one another to do the right thing for the right reason. At your company, you are part of a talented tech team. Ideas cannot go to waste, so share and try them out. Feel confident that you have the power to innovate. Encourage others to grow and become better developers.

Work wherever is most comfortable

@gemmadlou
gemmadlou / artefact
Created January 1, 2020 14:37
Artefact
#!/usr/bin/env bash
# Usage
# artefact 1.5.6
rm ../$1.zip
(zip -r9 ../$1.zip . -x \*.git\* \*coverage\* \*tests\* \*__tests__\*)
@gemmadlou
gemmadlou / publish.js
Created December 30, 2019 08:02
Publishes new release (no branches)
/**
* Publishes new release
*
* @param {object} inject
* @param {GetLastCommit} inject.getLastCommit
* @param {GetPackage} inject.getPackage
* @param {UpdatePackage} inject.updatePackage
* @param {CommitNewVersion} inject.commitNewVersion
* @param {TagNewVersion} inject.tagNewVersion
* @param {PushCommit} inject.pushCommit
@gemmadlou
gemmadlou / publish.js
Created December 30, 2019 07:58
Publishes new release
/**
* Publishes new release
*
* @param {object} [inject]
* @param {GetLastCommit} [inject.getLastCommit]
* @param {GetPackage} [inject.getPackage]
* @param {UpdatePackage} [inject.updatePackage]
* @param {CommitNewVersion} [inject.commitNewVersion]
* @param {TagNewVersion} [inject.tagNewVersion]
* @param {PushCommit} [inject.pushCommit]