Skip to content

Instantly share code, notes, and snippets.

View benleivian's full-sized avatar

Ben Leivian benleivian

View GitHub Profile
@benleivian
benleivian / config.yml
Last active July 22, 2020 19:23 — forked from thijskok/config.yml
CircleCI 2.0 Laravel build configuration with PHP 7.1, NodeJS, and MySQL support. Runs both PHPunit as well as Laravel Dusk. Proper GD configuration for image editing purposes. Several linters included (requires including them in composer / package.json).
version: 2
jobs:
build:
working_directory: ~/user/repo
environment:
BASH_ENV: ~/.bashrc
docker:
@benleivian
benleivian / .hyperterm
Last active August 6, 2016 19:27
Hyperterm config
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 13,
// font family with optional fallbacks
fontFamily: '"Fira Code", "Menlo", "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color (hex)
cursorColor: '#F81CE5',
@benleivian
benleivian / .csscomb.json
Created July 29, 2016 18:35
Atom .csscomb.json
{
"exclude": [
".git/**",
"node_modules/**",
"bower_components/**"
],
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": true,
@benleivian
benleivian / gist:3ded690211fdf96d21f6
Created February 24, 2016 18:46
Cache guzzle request
<?php
public function getRecords($id)
{
$cache_name = 'records_' . $id;
$cache = new FileStore(new Filesystem($cache_name . '.txt'), __DIR__ . '/cache');
// If cache exists
if ($cache->get($cache_name)) {
return $cache->get($cache_name);
} else {
@benleivian
benleivian / CSScomb.sublime-settings
Last active October 6, 2015 20:38
Places variables, imports and includes at the top.
{
"config": {
// Whether to add a semicolon after the last value/mixin.
"always-semicolon": true,
// Set indent for code inside blocks, including media queries and nested rules.
"block-indent": " ",
// Unify case of hexadecimal colors.

Macbook Setup

Generate Key

$ ssh-keygen -t rsa -b 4096

ZSH

$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"