Skip to content

Instantly share code, notes, and snippets.

View jeffersonmartin's full-sized avatar

Jefferson Martin jeffersonmartin

View GitHub Profile
@jeffersonmartin
jeffersonmartin / guacamole-0.8.3-instructions.md
Last active June 22, 2021 20:19
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
@jeffersonmartin
jeffersonmartin / osx-for-hackers.sh
Created October 4, 2015 05:40 — 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...
#!/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'
#!/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 September 23, 2016 16:49
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…

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 April 22, 2017 17:50
Nginx Config for Moodle (with proper rewrite/paths)
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 July 25, 2024 09:25
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 https://github.com/settings/tokens.

  2. Click Generate new token.

@jeffersonmartin
jeffersonmartin / Preferences.sublime-settings
Created September 18, 2019 13:05
Jeff's Sublime Text Editor Preferences
{
"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,