Skip to content

Instantly share code, notes, and snippets.

View ryanhalliday's full-sized avatar
🌲
Biology is as close as we have to alien technology

Ryan Halliday ryanhalliday

🌲
Biology is as close as we have to alien technology
View GitHub Profile
@ryanhalliday
ryanhalliday / run-me-in-console.js
Created November 3, 2016 03:55
Snippet from CSS Tricks to find unintended body overflow
var docWidth = document.documentElement.offsetWidth;
[].forEach.call(
document.querySelectorAll('*'),
function(el) {
if (el.offsetWidth > docWidth) {
console.log(el);
}
}
);
@ryanhalliday
ryanhalliday / victoria-wifi-autologin.sh
Created July 22, 2015 02:05
Automatic configuration script for the Victoria University wireless network
#!/bin/bash
#######
#BASIC SETTINGS
#Include Student\ or Staff\ at the start of your username
USERNAME=
PASSWORD=
#######
#DOCUMENTATION
#Place this file in /etc/NetworkManager/dispatcher.d/ with any name
@ryanhalliday
ryanhalliday / CocosDeps.sh
Last active August 29, 2015 14:24
A script for installing Cocos2d-x dependencies on Ubuntu
#!/bin/bash
#A script for installing Cocos2d-x dependencies on Ubuntu
#Install cmake, fontconfig and curl
sudo apt-get install cmake libfontconfig1-dev libcurl3 libcurl3-gnutls libcurl4-openssl-dev
#GLFW
#Currently manually specifying version 3.1.1
wget https://github.com/glfw/glfw/releases/download/3.1.1/glfw-3.1.1.zip
unzip glfw-3.1.1.zip
@ryanhalliday
ryanhalliday / posts.json
Created December 31, 2014 05:38
Jekyll file-based Posts API
---
layout: null
---
[
{% for post in site.posts %}
{
"slug":{{post.title | slugify}}
"url":"{{site.url}}{{post.url}}",
"title":"{{post.title}}",
"date":,"{{post.date}}"
@ryanhalliday
ryanhalliday / wow.reg
Created December 9, 2014 09:55
World of Warcraft on Linux Registry File
REGEDIT4
[HKEY_CURRENT_USER\Software\Wine\OpenGL]
"DisabledExtensions"="GL_ARB_vertex_buffer_object"
@ryanhalliday
ryanhalliday / WoW.md
Last active August 29, 2015 14:11
World of Warcraft on Linux

#World of Warcraft on Linux

I will keep this updated with any extra things I do.

This is not going to including anything regarding installation or updating, personally I still have a Windows installation with Battle.Net to do that on. If you are interested in that, you can look at the Arch Linux Wiki for more information

##Installation Probably the easiest in Wine history, simply install Wine (sudo apt-get install wine) and run WoW with wine /path/to/Wow.exe or double-click on Wow.exe

@ryanhalliday
ryanhalliday / SQLConnections.php
Last active August 29, 2015 14:07
SQL Connection Manager
<?php
namespace Ry167\SQL;
use InvalidArgumentException;
/**
* SQL Connection Manager
*
* Manages a multiple SQL Connections and their initiation.
@ryanhalliday
ryanhalliday / setup.sh
Last active August 29, 2015 14:07
What I use to install Ubuntu
#!/bin/bash
#Setup apt
sudo add-apt-repository ppa:lestcape/cinnamon
sudo add-apt-repository ppa:numix/ppa
sudo apt-get update
#Install software
sudo apt-get install cinnamon git chromium-browser calibre steam thunderbird apache2 mysql-server php5 php5-mysqlnd php5-mcrypt php5-intl php5-imap php5-imagick php5-gd php5-geoip php5-sqlite php5-json php5-curl php5-cli libapache2-mod-php5 apache2-utils curl xfce4-terminal guake numix-gtk-theme numix-icon-theme-circle vlc
@ryanhalliday
ryanhalliday / lcthwNextPage.tamper.js
Last active August 29, 2015 14:01
LCTHW Next Page
// ==UserScript==
// @name Learn C The Hard Way Next Page
// @namespace http://cyanium.com/
// @version 0.1
// @description Add a next page button to the bottom of Learn C The Hard Way
// @match http://c.learncodethehardway.org/book/*
// @grant none
// @copyright 2012+, Ry167
// ==/UserScript==
(function(){
@ryanhalliday
ryanhalliday / HN_New_Tab.tamper.js
Last active August 29, 2015 13:58
HackNews New Tab
// ==UserScript==
// @name HN New Tab
// @namespace https://news.ycombinator.com/
// @version 0.1
// @description Makes all links to posts and users open in a new tab
// @match https://news.ycombinator.com/*
// @grant none
// @copyright 2014+, Ry167
// ==/UserScript==
(function(){