Skip to content

Instantly share code, notes, and snippets.

View jamescarlos's full-sized avatar

James Carlos jamescarlos

View GitHub Profile
@jamescarlos
jamescarlos / config.gateway.json
Created April 9, 2018 20:18
AT&T Bypass Unifi Security Gateway
{
"interfaces": {
"ethernet": {
"eth0": {
"address": [
"dhcp"
],
"description": "WAN",
"dhcp-options": {
"client-option": [
@jamescarlos
jamescarlos / GitHub-Forking.md
Created September 11, 2016 09:01 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, when I started going through the process of forking and issuing pull requests, I had some trouble figuring out the proper method for doing so and made quite a few mistakes along the way. I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your

Keybase proof

I hereby claim:

  • I am jamescarlos on github.
  • I am jamescarlos (https://keybase.io/jamescarlos) on keybase.
  • I have a public key ASCE4P6qmGpt0rxV06RBfnTpMhrs_QGsNFTA_oNPE-Kkqgo

To claim this, I am signing this object:

@jamescarlos
jamescarlos / cache_backup.sh
Created May 27, 2015 10:21
Backup unRAID cache drive
#!/bin/bash
LogFile=/var/log/cache_backup.log
BackupDir=/mnt/disk6/cache_backup
echo `date` "Starting cache drive backup to " $BackupDir >> $LogFile
#Stop plugin services located in /etc/rc.d/
# enter in plugins to stop here, if any
# /etc/rc.d/rc.plexmediaserver stop >> $LogFile
@jamescarlos
jamescarlos / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jamescarlos
jamescarlos / airsonos.md
Last active August 29, 2015 14:07
airsonos

Open Terminal (Spotlight -> Terminal)
Copy and paste the following 3 commands in this order

  1. Install Homebrew:
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  2. Install Node:
    brew install node

  3. Install airsonos:

@jamescarlos
jamescarlos / solarized_dark_slack.txt
Last active August 29, 2015 14:05
solarized dark theme for slack
#002B36,#073642,#073642,#268BD2,#073642,#839496,#B58900,#DC322F
@jamescarlos
jamescarlos / gist:9416691
Created March 7, 2014 18:09
PDF thumbnails with Google Docs
http://docs.google.com/viewer?url=MY_PDF_LINK.pdf&a=bi&pagenumber=1&w=800
<a href="my_pdf_link.pdf" title="">
<img src="http://docs.google.com/viewer?url=MY_PDF_LINK.pdf&a=bi&pagenumber=1&w=800" alt="" />
</a>
<?php
class Post
{
protected $table = 'posts';
/**
* You can define your own custom boot method.
*
* @return void
**/
@jamescarlos
jamescarlos / Preferences.sublime-settings
Last active December 15, 2015 14:09
Sublime Text - User Settings
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"detect_indentation": false,
"detect_slow_plugins": false,
"draw_white_space": "all",
"font_face": "Source Code Pro",
"font_size": 11.0,
"highlight_line": true,