Skip to content

Instantly share code, notes, and snippets.

View noeldiaz's full-sized avatar

Noel Diaz noeldiaz

  • Baylor College of Medicine
  • Houston, TX
View GitHub Profile
@noeldiaz
noeldiaz / twittermute.txt
Created January 4, 2020 18:36 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@noeldiaz
noeldiaz / sublime-merge-cli.sh
Created September 30, 2018 19:59 — forked from paulredmond/sublime-merge-cli.sh
Put smerge in your path on OS X - Sublime Merge CLI
#!/usr/bin/env bash
ln -s /Applications/Sublime\ Merge.app/Contents/SharedSupport/bin/smerge /usr/local/bin/smerge
@noeldiaz
noeldiaz / carbon_macro_age.php
Created September 12, 2018 12:31 — forked from rcubitto/carbon_macro_age.php
Get the age based on a given date
<?php
\Illuminate\Support\Carbon::macro('age', function ($date) {
return $this->diff($this->parse($date))->format('%y');
});
@noeldiaz
noeldiaz / .zshrc
Created April 21, 2017 19:02 — forked from bmhatfield/.zshrc
OSX Keychain Environment Variables
# If you use bash, this technique isn't really zsh specific. Adapt as needed.
source ~/keychain-environment-variables.sh
# AWS configuration example, after doing:
# $ set-keychain-environment-variable AWS_ACCESS_KEY_ID
# provide: "AKIAYOURACCESSKEY"
# $ set-keychain-environment-variable AWS_SECRET_ACCESS_KEY
# provide: "j1/yoursupersecret/password"
export AWS_ACCESS_KEY_ID=$(keychain-environment-variable AWS_ACCESS_KEY_ID);
export AWS_SECRET_ACCESS_KEY=$(keychain-environment-variable AWS_SECRET_ACCESS_KEY);
@noeldiaz
noeldiaz / pagination.blade.php
Created April 21, 2017 18:52 — forked from themsaid/pagination.blade.php
Pagination view for UIkit
@if ($paginator->hasPages())
<ul class="uk-pagination">
@if ($paginator->onFirstPage())
<li class="uk-disabled"><a href="#"><span uk-pagination-previous></span></a></li>
@else
<li><a href="{{ $paginator->previousPageUrl() }}"><span uk-pagination-previous></span></a></li>
@endif
{{-- Pagination Elements --}}
@foreach ($elements as $element)
@noeldiaz
noeldiaz / readme.md
Created February 2, 2017 03:46 — forked from nasrulhazim/readme.md
Using Middleware to Check Account Activation and Resend Activation E-mail
@noeldiaz
noeldiaz / readme.md
Created February 2, 2017 03:46 — forked from nasrulhazim/readme.md
Enable Account Activation in Order to Login to the System.
@noeldiaz
noeldiaz / readme.md
Created February 2, 2017 03:46 — forked from nasrulhazim/readme.md
Send Welcome Email Notification with Event and Listener

Send Welcome Email Notification with Event and Listener

Step 1

Create SendWelcomeEmailNotification notification

php artisan make:notification SendWelcomeEmailNotification
@noeldiaz
noeldiaz / README.md
Created September 21, 2016 02:16
Clone repository and cd into the directory

Installation

You can add the gcd script to your local bin path or you can add the followin snippet to your bash .profile or zsh .zshrc file.

function gcd {
  REPO=$1
  CLONEPATH=$2

 if [ -z $CLONEPATH ]; then
@noeldiaz
noeldiaz / README.md
Created April 8, 2016 13:54 — forked from Maximwolker/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/