Skip to content

Instantly share code, notes, and snippets.

View cborgia's full-sized avatar

Chris Borgia cborgia

  • Stafford, VA
View GitHub Profile
@cborgia
cborgia / index.html
Created April 7, 2018 06:59
doctype html head template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Title</title>
<meta name="description" content="">
<meta name="author" content="">
@cborgia
cborgia / MEMP
Last active August 29, 2015 14:10
MEMP php location block
The following are config files for a NGINX/MySQL/PHP setup on homebrewed Mac
@cborgia
cborgia / _head.blade.php
Last active August 29, 2015 14:01
head for laravel-radiate
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Laravel Radiate</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
@cborgia
cborgia / routes.php
Last active August 29, 2015 14:01
routes for laravel-radiate
<?php
Route::get('/', function()
{
return View::make('pages.home');
});
Route::get('about', function()
{
return View::make('pages.about');
@cborgia
cborgia / default
Last active December 29, 2015 23:48
server {
listen 80;
server_name localhost;
root /srv/public/;
index index.php index.html index.htm;
# Check if file exists
if (!-e $request_filename)
{
@cborgia
cborgia / Preferences.sublime-settings
Last active April 7, 2018 06:13
Sublime Text 3 User Settings
{
"added_words":
[
"Techtegrity",
"Valrank",
"Airbnb",
"Ubaldo",
"Poshtone"
],
"always_show_minimap_viewport": true,
@cborgia
cborgia / gist:7219786
Created October 29, 2013 18:14
only add deleted files to git (useful when making commits based on clean up)
git ls-files --deleted -z | xargs -0 git rm
@cborgia
cborgia / terminal-speedtest.sh
Created October 2, 2013 22:37
terminal speed test
# 10 mb test
wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip
# 500 mb test
wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip
@cborgia
cborgia / apt-get.bash
Last active December 21, 2015 20:29
apt-get alias's (I really don't like typing 7 chars "apt-get" when I am used to 3 "yum")
# if you like the 3 letter approach (ala yum)
alias apt='sudo apt-get'
# if you like the whole thing spelled out for you
alias agu='sudo apt-get update'
alias agi='sudo apt-get install'
alias agd='sudo apt-get dist-upgrade'
alias agr='sudo apt-get remove'
alias ags='sudo aptitude search'
alias agsh='sudo apt-cache show'