Skip to content

Instantly share code, notes, and snippets.


Jefferson Martin jeffersonmartin

View GitHub Profile
jeffersonmartin / Preferences.sublime-settings
Created Sep 18, 2019
Jeff's Sublime Text Editor Preferences
View Preferences.sublime-settings
"allow_git_home_dir": true,
"auto_complete": false,
"bold_folder_labels": true,
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/One Dark Material - Theme/schemes/OneDark.tmTheme",
"copy_with_empty_selection": false,
"drag_text": false,
jeffersonmartin /
Last active Aug 16, 2022
Generate a GitHub Personal Access Token for Private Composer Packages

Generate a GitHub Personal Access Token for Private Composer Packages

If you're trying to load a private repository with Composer/Laravel, we'll need to generate a GitHub Personal Access Token (similar to OAuth token) to access the repository during a composer install without entering credentials.

If you have used other Github packages from {my-org} before, you may be able to skip this step.

  1. Visit

  2. Click Generate new token.

jeffersonmartin / moodle-nginx-config
Created Apr 22, 2017
Nginx Config for Moodle (with proper rewrite/paths)
View moodle-nginx-config
server {
listen 80;
return 301$request_uri;
server {
listen 443 ssl;

Initial Setup of Envoy (for Dev Machine)

When using Envoy for the first time to deploy to production servers, there are quite a few steps to get it running correctly. These are the cliff notes that I use for getting Envoy running.

Create envoy.blade.php in base Laravel project directory

This file includes the descriptive tasks for deployment. Copy this file from an existing repository and make appropriate tweaks.

Include envoy using composer

jeffersonmartin /
Last active Sep 23, 2016
When developing applications, you spend 95% of your time working with models, views, and controllers. However, these respective directories are buried deep in the Laravel application directory structure. This script creates a project folder with symlink folders for Laravel controllers, models, and views for a specific Github repository. This all…
# Automate mysql secure installation for debian-baed systems
# - You can set a password for root accounts.
# - You can remove root accounts that are accessible from outside the local host.
# - You can remove anonymous-user accounts.
# - You can remove the test database (which by default can be accessed by all users, even anonymous users),
# and privileges that permit anyone to access databases with names that start with test_.
jeffersonmartin /
Created Oct 4, 2015 — forked from brandonb927/
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
# Alot of these configs have been taken from the various places
# on the web, most from here
# Set the colours you can use
jeffersonmartin /
Last active Jun 22, 2021
Guacamole 0.8.3 Step-by-Step Instructions (Ubuntu 12.04 LTS)

Guacamole 0.8.3 Instructions

These instructions were written for Ubuntu 12.04 LTS, herein referred to as guac-server.

Install Tomcat Server and Pre-Requisite Packages

Once your Ubuntu 12.04 LTS VM has been installed and the network has been configured, you will need to install the tomcat server and the latest guacamole release. As of this writing, we are using the binary (.war) of Guacamole 0.8.3.

  1. Install the tomcat6 server
    # apt-get update
    # apt-get install tomcat6