Skip to content

Instantly share code, notes, and snippets.

Adrienne L. Travis adrienne

Block or report user

Report or block adrienne

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@CasperLaiTW
CasperLaiTW / laravel-forge-ngx-pagespeed.sh
Last active Jun 24, 2019
Laravel Forge Support NGX_PAGESPEED
View laravel-forge-ngx-pagespeed.sh
PAGESPEED_VERSION=v1.12.34.2-stable
apt-get remove nginx nginx-full -y
apt-get install dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev -y
sed -i "s/# deb-src/deb-src/" /etc/apt/sources.list.d/nginx-ubuntu-development-xenial.list
apt-get update
apt-get build-dep nginx -y
cd /tmp
apt-get source nginx
View gist:0fb9748db43ecb14f72f8662516a8047
# Have origin be your fork, upstream is upstream.
$ git remote -v
origin git@github.com:jbeda/kubernetes.git (fetch)
origin git@github.com:jbeda/kubernetes.git (push)
upstream git@github.com:kubernetes/kubernetes.git (fetch)
upstream git@github.com:kubernetes/kubernetes.git (push)
# Make some changes to a bunch of files in a multi commit PR
# Find the commit you want to tweak, copy the hash
@alirobe
alirobe / reclaimWindows10.ps1
Last active Apr 1, 2020
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
View reclaimWindows10.ps1
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@danb-humaan
danb-humaan / UuidModel.php
Created Dec 3, 2015
Trait for implementing UUIDs in Laravel models
View UuidModel.php
<?php
namespace App\Traits;
use Rhumsaa\Uuid\Uuid;
use Illuminate\Database\Eloquent\ModelNotFoundException;
/**
* Trait UuidModel
* @package App\Traits
@lynncyrin
lynncyrin / Hiring.Me.md
Last active Oct 16, 2015
Where would I actually like to work? Well I generally follow these rules ~
View Hiring.Me.md

About Me (not a rule)

These are how I'm appraising places the I'm looking for full time employment. These rules are very specific to me, as a disabled black trans woman. I am not accepting feedback on these rules from anyone except other black trans fem people. Figure out if you / your teams meets the rules before asking me to fill out any sort of application. Feel free to ask me to explain anything here (but like, to explain the facts / wording, NOT explain my reasons for having these rules).

Professionally, I'm a self taught full stack web developer with two years of industry experience, the majority of that experience being with python, team management, and crowdfunding.

View slackbot.md

guys, dudes, bros

I think you mean team...

I think you mean squad..

I think you mean gang...

I think you mean pals...

@hueniverse
hueniverse / gist:a3109f716bf25718ba0e
Last active Feb 22, 2020
Response to Netflix's "Node.js in Flames" Blog Post
View gist:a3109f716bf25718ba0e

If you haven't read Netflix's Node.js in Flames blog post you should. It is a great deep dive into debugging a node performance problem. The post includes useful tips that can help you solve similar problems.

That said...

My feedback from the perspective of a framework developer is quite different. I found the tone and attitude towards express.js to be concerning and somewhat offensive. Here was a developer blaming the framework he chose for poor architecture when they never bothered to actually learn how the framework works in the first place. Everything that followed originated from this basic lack of understanding.

Express uses a very simple router logic which is at the core of how express works, so let’s examine that first (my knowledge of express is somewhat dated but I think the principle is still the same). Express keeps a hash of the various HTTP methods (GET, POST, etc.) and for each method, an array of middlewares. Each middleware is ju

@roachhd
roachhd / README.md
Last active Apr 1, 2020
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻
View README.md

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

View lambda-the-ultimate.md

Lambda the Ultimate

On page 137 of The Little Schemer, this rather convoluted function appears:

(define multirember&co
  (lambda (a lat col)
    (cond
      ((null? lat)
       (col (quote ()) (quote ())))
@croxton
croxton / stash_conditionals.md
Last active Apr 8, 2018
Stash and conditionals in EE 2.9
View stash_conditionals.md

With Stash you have always been able to create global variables and evaluate them in the same template using if/else conditionals:

{exp:stash:set_value name="var" value="cheese" type="snippet"}

{if var == "cheese"}
  	We have cheese!
{if:else}
  	Where's the cheese, gromit? 
{/if}
You can’t perform that action at this time.