Skip to content

Instantly share code, notes, and snippets.

View jarod51's full-sized avatar

Arnaud Lecat jarod51

View GitHub Profile
Entity:
actAs:
Timestampable: ~
Sluggable:
fields: [title]
NestedSet: ~
Commentable: ~
columns:
entity_id:
type: string
<?php
use Carbon\Carbon as Carbon;
use Faker\Factory as Faker;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
/**
* Class BrandTableSeeder
*/
class BrandTableSeeder extends Seeder {
@jarod51
jarod51 / gitconfig.ini
Created December 13, 2016 15:59 — forked from tdd/gitconfig.ini
Nice, useful global Git configuration
# Put this in your ~/.gitconfig or ~/.config/git/config
# Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName>
[user]
name = Your Full Name
email = your@email.tld
[color]
# Enable colors in color-supporting terminals
ui = auto
[alias]
st = status
@jarod51
jarod51 / gitcom.md
Created January 9, 2017 12:27 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@jarod51
jarod51 / .bashrc
Created January 9, 2017 12:27 — forked from jednano/.zshrc
# copy into ~/.profile or ~/.bashrc
#alias ls='ls -F --color --show-control-chars'
alias ls='ls -F --show-control-chars'
alias ll='ls -l'
# Windows aliases
alias cls='clear'
alias dir='ls -F --color=always'
alias del='rm'
@jarod51
jarod51 / Maintain a fork.md
Last active July 17, 2017 09:07 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@jarod51
jarod51 / laravel_nginx.md
Created June 15, 2017 20:00 — forked from folivares/laravel_nginx.md
Nginx configuration for Laravel 5.1

Nginx Server Blocks configuration to run more than one Laravel 5.1 web-app off of a single Linux server

Prerequisites

  • PHP package: php5-fpm php5-mcrypt php5-mysql
  • Laravel 5.1
  • Nginx 1.8

Default Server Block

@jarod51
jarod51 / twitter.html
Last active December 5, 2017 16:10 — forked from Radostin/twitter.html
Twitter Mockup with TailwindCSS
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Twitter</title>
<link rel="stylesheet" type="text/css" href="./css/tailwind.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
@jarod51
jarod51 / reset_keys.sh
Created December 12, 2017 10:15
Reset keys in Antergos
sudo pacman -Scc <-- reply with explicit y to the first question
sudo pacman -Syy
sudo pacman -S haveged
sudo haveged -w 1024
sudo pacman-key --init
sudo pacman-key --populate archlinux antergos
sudo pkill haveged
sudo pacman -S antergos-keyring
sudo pacman -Syu
@jarod51
jarod51 / venv_cheat_sheet.md
Created April 29, 2019 09:31 — forked from bbengfort/venv_cheat_sheet.md
My virtualenv and virtualenv wrapper cheat sheet. I alias the commands of virtualenv and virtualenv wrapper for my own development environment.

Ben's VirtualEnv Cheatsheet

This cheat sheet describes my usage/implementation of virtualenv with virtualenv wrapper and the bash foo that I added with the help of many blogs to make it all tick together in fun land.

Quick Reference

$ echo $WORKON_HOME
/Users/benjamin/.virtualenvs

$ echo $PROJECT_HOME