Skip to content

Instantly share code, notes, and snippets.

Avatar

Darron Driver darronz

  • Freelancer
  • London, UK
View GitHub Profile
@darronz
darronz / rebase.sh
Created Sep 2, 2019
Bash script to rebase your current branch on master
View rebase.sh
#!/bin/bash
# store name of current branch
BRANCH=$(git branch | grep \* | cut -d ' ' -f2)
# checkout master
git checkout master
# pull the latest changes
git pull
@darronz
darronz / ex.js
Created May 17, 2017 — forked from JeffreyWay/ex.js
Laracasts.com Episode: Algolia + JavaScript + Vue
View ex.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Algolia with JS</title>
<link rel="stylesheet" href="app.css">
</head>
<body>
View keybase.md

Keybase proof

I hereby claim:

  • I am darronz on github.
  • I am darronz (https://keybase.io/darronz) on keybase.
  • I have a public key ASAyN3RO4QR7pKiJ9D-CpL1oaIvL_iyh_GeBJNqj0VZxAAo

To claim this, I am signing this object:

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@darronz
darronz / Setcom Error Code List PHP array
Last active Dec 19, 2015
Setcom Error Code List: 07 July 2013 as a PHP array
View Setcom Error Code List PHP array
<?php
$codes = array(
'10000' => array(
'type' => 'Setcom',
'description' => 'Processing error',
'solution' => 'Please contact customer services',
),
'10101' => array(
'type' => 'Setcom',
@darronz
darronz / gist:3525070
Created Aug 30, 2012
Homebrew php53 installation fails
View gist:3525070
```
~ # brew update
Already up-to-date.
~ # brew doctor
Error: Failed to import: abstract-php-extension
Error: Failed to import: php54-apc
Error: Failed to import: php54-gearman
Error: Failed to import: php54-http
Error: Failed to import: php54-igbinary
Error: Failed to import: php54-imagick
You can’t perform that action at this time.