Skip to content

Instantly share code, notes, and snippets.

View r3wt's full-sized avatar
😅
Move Fast. Break Things.

Garrett R. Morris r3wt

😅
Move Fast. Break Things.
  • Walmart
  • Hartman, Arkansas, United States
View GitHub Profile
@r3wt
r3wt / subarrays.php
Last active August 29, 2015 14:24
create a contiguous subarray lambda
<?php
function create_csl($length = 3,$comparison_operator = '>')
{
$fn = '';
$i = 0;
while(true)
{
if($i == 0)
{
@r3wt
r3wt / gist:83629275bd3a153915ef
Last active January 24, 2018 12:21
Rollback hhvm on ubuntu
1. go to http://dl.hhvm.com/ubuntu/pool/main/h/hhvm/ and right click and copy the link to the version of hhvm you want to rollback to
2. sudo apt-get autoremove hhvm -y
3. wget <link you just copied>
4. sudo dpkg -i <name of file u just downloaded>
5. apt-get install -f
6. service hhvm start
Edit: Don't worry when it errors out on step 4. that is expected. just continue to step 5.