Skip to content

Instantly share code, notes, and snippets.

View clivecorbishley's full-sized avatar

Clive Corbishley clivecorbishley

View GitHub Profile
@clivecorbishley
clivecorbishley / gist:447324ed1c23b3ab797074931f8c531a
Created September 2, 2020 09:13
OSx pbcopy alias with stdout
# Copy and paste this line into ~/.bashrc or ~/.zshrc
alias copy="tee >(pbcopy)"
@clivecorbishley
clivecorbishley / .travis.yml
Last active October 15, 2018 17:11
Version Tracking Travis config
---
...
env:
global:
- APP_VERSION=3.23
...
jobs:
include:
- stage: Deploy
before_deploy:
@clivecorbishley
clivecorbishley / email_regex.rb
Created July 23, 2018 21:08
Ruby email regex snippets
'email@email.com' =~ URI::MailTo::EMAIL_REGEXP
'email@email.com;split.tes2email@wwwwwww.co.za'.split(';').map { |v| v =~ URI::MailTo::EMAIL_REGEXP }
'email@email.com;split.tes2email@wwwwwww.co.za'.split(';').map { |v| v =~ /\A[\w+\-.]+@[a-z\d\-]+(\.[a-z\d\-]+)*\.[a-z]+\z/ }