Skip to content

Instantly share code, notes, and snippets.

View gemmadlou's full-sized avatar

Gemma Black gemmadlou

View GitHub Profile
.css-selector {
    background: linear-gradient(65deg, #cc51b7, #2ca5dd, #c9a8e4);
    background-size: 600% 600%;
    -webkit-animation: AnimationName 10s ease infinite;
    -moz-animation: AnimationName 10s ease infinite;
    -o-animation: AnimationName 10s ease infinite;
    animation: AnimationName 10s ease infinite;
}
@-webkit-keyframes AnimationName {
    0%{background-position:69% 0%}
.css-selector {
    background: linear-gradient(65deg, #cc51b7, #2ca5dd, #c9a8e4);
    background-size: 600% 600%;
    -webkit-animation: AnimationName 10s ease infinite;
    -moz-animation: AnimationName 10s ease infinite;
    -o-animation: AnimationName 10s ease infinite;
    animation: AnimationName 10s ease infinite;
}
@-webkit-keyframes AnimationName {
    0%{background-position:69% 0%}
@gemmadlou
gemmadlou / gist:3bc63e37dea48c3b11557a8cbbfb6f35
Created November 13, 2020 09:39 — forked from avoelkl/gist:49563c516d6cb318eb34
Non-blocking and quick database dumps for large databases

How-to

Add --single-transaction and --quick to your mysqldump command.

--single-transaction

sets the isolation mode to REPEATABLE READ and starts a transaction before dumping data. useful for InnoDB tables, dumps the consistent state without blocking any applications.

--quick

@gemmadlou
gemmadlou / jq.md
Last active December 3, 2020 14:14
JQ. Cheatsheet

JQ

Key/Value Shape

[{"Name": "Jonny Bravo","Age": "58"},{"Name": "Dexter","Age": "34"}]

Map JSON to CSV

@gemmadlou
gemmadlou / parse_dotenv.bash
Created September 26, 2020 10:45 — forked from judy2k/parse_dotenv.bash
Parse a .env (dotenv) file directly using BASH
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
@gemmadlou
gemmadlou / entrypoint.sh
Created September 9, 2020 10:43
My docker entrypoint example (Node)
#!/bin/sh -e
# https://medium.com/swlh/five-use-cases-for-docker-entry-points-a5eb6661dac6
case $1 in
server)
if [ "$ENVIRONMENT" == "production" ]; then
node /app/server.js
else
@gemmadlou
gemmadlou / auth.js
Created August 6, 2020 19:52
Nuxt Auth0 Vuex Store
import auth from 'auth0-js'
let auth0
let user
export const state = () => ({
isAuthenticated: false,
loggingIn: true,
requiresAuth: false
})
@gemmadlou
gemmadlou / 01.md
Created July 21, 2020 15:09
Kubernetes Filebeat,Elasticsearch and Kibana
  • Filebeat will live on the Kubernetes clusters with the applications as a daemonset
  • Elasticsearch will live on its own cluster
@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