Skip to content

Instantly share code, notes, and snippets.

sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
% Example LaTeX document for GP111 - note % sign indicates a comment
\documentstyle[11pt]{article}
% Default margins are too wide all the way around. I reset them here
\setlength{\topmargin}{-.5in}
\setlength{\textheight}{9in}
\setlength{\oddsidemargin}{.125in}
\setlength{\textwidth}{6.25in}
\begin{document}
\title{LaTeX Typesetting By Example}
\author{Phil Farrell\\
@bigbeno37
bigbeno37 / cmd.sh
Created September 24, 2015 05:09
Remove node_modules
npm prune
jekyll serve
rake post title="the title you want"
rake page name="about" # creates domain.com/about, which is actually domain.com/about/index.html!
@bigbeno37
bigbeno37 / Palindrome.py
Created December 17, 2015 06:16
First time using TDD
class Palindrome(object):
def is_palindrome(self, palindrome):
if not isinstance(palindrome, str):
return False
# Define all variables
lower_case_palindrome = palindrome.lower().replace(' ', '').replace(',', '').replace('.', '')
reversed_palindrome = self.reverse_palindrome(lower_case_palindrome)
layout title date categories
post
Introduction to Gulp Boilerplate!
2016-02-24 10:27:02 +1100
gulp jade stylus preprocessor workflow
@bigbeno37
bigbeno37 / .gitignore
Created July 27, 2016 09:38
Unity gitignore
# =============== #
# Unity generated #
# =============== #
Temp/
Obj/
UnityGenerated/
Library/
Assets/AssetStoreTools*
Test_Data/
vagrant init unbuntu/xenial64
cd #location/of/.box
vagrant box add ubuntu/xenial64 #nameof.box
@bigbeno37
bigbeno37 / install-laravel.sh
Last active November 20, 2021 11:14
Install Laravel 5.4, MySQL 5.7, Apache2.4 and PHP7.1 on Ubuntu 16.04
# CREATED BY BEN O'SULLIVAN / BIGBENO37 (GITHUB.COM/BIGBENO37)
# LICENSED UNDER CREATIVE COMMONS 'Attribution 4.0 International' LICENSE
# https://creativecommons.org/licenses/by/4.0/
# FEEL FREE TO USE AND ADAPT THIS SCRIPT IN COMMERCIAL AND NON COMMERICAL PRODUCTS
# AS LONG AS PROPER ACCREDITATION IS GIVEN
# VARIABLES
echo -e "\x1B[01;95mWhat would you like to name your Laravel project?\x1B[0m"
read LARAVEL_PROJECT_NAME
@bigbeno37
bigbeno37 / install_LIDEH.sh
Last active February 13, 2017 01:21
Install Laravel IDE Helper
echo -e "\x1B[01;95mWhere was your Laravel project installed? (Use a full path such as /home/ubuntu/projects/blog/)\x1B[0m"
read PATH
cd $PATH
echo -e "\x1B[01;95mHas Laravel IDE Helper been installed? (Y/n)\x1B[0m"
read INSTALLED
if [ $INSTALLED = "n" ] || [ $INSTALLED = "N" ]; then
echo -e "\x1B[01;93mInstalling...\x1B[0m"
composer require barryvdh/laravel-ide-helper
echo -e "\x1B[01;93mAdd this to providers array in app.php in config\x1B[0m"
echo -e "\x1B[01;93mBarryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class\x1B[0m"