Skip to content

Instantly share code, notes, and snippets.

Unicorns Rock

Jeremy Kenedy jeremykenedy

Unicorns Rock
View GitHub Profile
nickbclifford /
Last active Sep 10, 2021
How to automatically deploy code to a server using Travis CI

Auto-Deploying via Travis CI

Because Travis CI can automatically execute scripts after successfully (or unsuccessfully!) executing tests, it is an obvious choice for a deployment tool. In order to deploy to a Git repository on a remote server, the process generally is as follows:

  • Set up SSH keys
  • Add the server's copy of the repository as a Git remote
  • Push to the remote
  • SSH into the server and execute any installation/compilation/miscellaneous commands

Before even touching .travis.yml...


jeremykenedy / gulpfile.js
Created Dec 19, 2016 — forked from torgeir/gulpfile.js
Example gulpfile.js
View gulpfile.js
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
imagemin = require('gulp-imagemin'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
andysnell /
Created Sep 19, 2016
SQL Server Driver Installer for Laravel Homestead
# SQL Server Driver Installer for Laravel Homestead
# This script downloads, compiles, and installs the PHP 7 extension
# files for both the native sqlsrv and the PDO pdo_sqlsrv drivers.
# Get the Microsoft Driver Source Code from Github
cd ~
git clone
cd msphpsql
leonardofed /
Last active Oct 18, 2021
A curated list of AWS resources to prepare for the AWS Certifications

A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

vluzrmos / paginate.php
Created Jul 20, 2016
Laravel Paginate Collection or Array
View paginate.php
* Gera a paginação dos itens de um array ou collection.
* @param array|Collection $items
* @param int $perPage
* @param int $page
* @param array $options
* @return LengthAwarePaginator
View google_font_importer.php
* Google Font Importer
$fonts = "";
$fonts = file_get_contents($fonts, 0, null, null);
$fp = fopen('fonts.txt', 'w');
belsrc / gist:672b75d1f89a9a5c192c
Last active Sep 21, 2021
Simple Vue.js filters that I usually need
View gist:672b75d1f89a9a5c192c
* Changes value to past tense.
* Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc.
* @param {String} value The value string.
Vue.filter('past-tense', function(value) {
// Slightly follows
var vowels = ['a', 'e', 'i', 'o', 'u'];
janez89 / SampleModel.php
Created Aug 9, 2014
Type cast for Laravel Eloquent ORM. Tested on Laravel 4.2 Requires PHP 5.4
View SampleModel.php
class SampleModel extends \Eloquent
use TypeCast;
protected $table = 'manufacturer';
protected $fillable = [];
protected $guarded = [
View cornify.js
var cornify_count = 0;
var cornify_add = function() {
cornify_count += 1;
var cornify_url = '';
var div = document.createElement('div'); = 'fixed';
var numType = 'px';
var heightRandom = Math.random()*.75;
var windowHeight = 768;