Skip to content

Instantly share code, notes, and snippets.

View llitfkitfk's full-sized avatar
🎯
Focusing

Paul llitfkitfk

🎯
Focusing
View GitHub Profile
@llitfkitfk
llitfkitfk / README.md
Created June 21, 2019 04:35 — forked from cocoastorm/README.md
rexray/s3fs Docker Plugin Install with Minio

Getting Started

Make sure Docker is installed!

Get your Minio endpoint url, accesskey, and secretkey ready!

Install Docker Plugin

docker plugin install rexray/s3fs \
@llitfkitfk
llitfkitfk / regexCheatsheet.js
Created January 15, 2019 02:40 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@llitfkitfk
llitfkitfk / git-tag-delete-local-and-remote.sh
Created December 25, 2017 13:51 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName

Redis Cluster Setup with Docker Swarm

Setup

./redis.sh

Test

test the redis cluster