Skip to content

Instantly share code, notes, and snippets.

Avatar

Jefferson Martin jeffersonmartin

View GitHub Profile
@jeffersonmartin
jeffersonmartin / guacamole-0.8.3-instructions.md
Last active Sep 4, 2017
Guacamole 0.8.3 Step-by-Step Instructions (Ubuntu 12.04 LTS)
View guacamole-0.8.3-instructions.md

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
@jeffersonmartin
jeffersonmartin / osx-for-hackers.sh
Created Oct 4, 2015 — forked from brandonb927/osx-for-hackers.sh
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...
View osx-for-hackers.sh
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
View mysql_secure.sh
#!/bin/bash
#
# 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
jeffersonmartin / laravel-project-symlink.sh
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…
View laravel-project-symlink.sh
View envoy-initial-setup.md

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
jeffersonmartin / moodle-nginx-config
Created Apr 22, 2017
Nginx Config for Moodle (with proper rewrite/paths)
View moodle-nginx-config
server {
listen 80;
server_name learn.mydomain.com;
return 301 https://learn.mydomain.com$request_uri;
}
server {
listen 443 ssl;
server_name learn.mydomain.com;
@jeffersonmartin
jeffersonmartin / composer-private-package-github-token.md
Last active Apr 17, 2021
Generate a GitHub Personal Access Token for Private Composer Packages
View composer-private-package-github-token.md

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 https://github.com/settings/tokens.

  2. Click Generate new token.

@jeffersonmartin
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,