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%}
@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 / 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 / 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 / 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 / MergeSHP.md
Created October 25, 2019 17:45 — forked from wuhland/MergeSHP.md
Merging Shapefiles From Command Line with GDAL\OGR2OGR

First put all the shapefiles you want merged in one directory than I run this bash script in the folder

#!/bin/bash

file="./final/merge.shp"

for i in $(ls *.shp)
do
@gemmadlou
gemmadlou / AWSRegionsAndAZs.md
Created May 28, 2019 17:21
List of AWS availability zones for each AWS region
AWS region code AWS region name Number of AZs AZ names
us-east-1 Virginia 4 us-east-1a, us-east-1b, us-east-1c, us-east-1e
us-west-1 N. California 2 us-west-1a, us-west-1b
us-west-2 Oregon 3 us-west-2a, us-west-2b, us-west-2c
eu-west-1 Ireland 3 eu-west-1a, eu-west-1b, eu-west-1c
eu-central-1 Frankfurt 2 eu-central-1a, eu-central-1b
ap-southeast-1 Singapore 2 ap-southeast-1a, ap-southeast-1b
ap-southeast-2 Sydney 2 ap-southeast-2a, ap-southeast-2b, ap-southeast-2c
ap-northeast-1 Tokyo 2 ap-northeast-1a, ap-nort
@gemmadlou
gemmadlou / Dockerfile
Created May 21, 2019 14:59 — forked from perrygeo/Dockerfile
Minimal debian image with Python 3.6 and geo python tools
FROM python:3.6-slim-stretch
ADD requirements.txt /tmp/requirements.txt
RUN apt-get update && \
apt-get install -y \
build-essential \
make \
gcc \
locales \
@gemmadlou
gemmadlou / tailSlack.sh
Created May 4, 2019 18:58 — forked from rikwatson/tailSlack.sh
Stream any log file to Slack using curl
#!/bin/bash
tail -n0 -F "$1" | while read LINE; do
(echo "$LINE" | grep -e "$3") && curl -X POST --silent --data-urlencode \
"payload={\"text\": \"$(echo $LINE | sed "s/\"/'/g")\"}" "$2";
done