Skip to content

Instantly share code, notes, and snippets.

View tylersamples's full-sized avatar
🏠

Tyler Samples tylersamples

🏠
View GitHub Profile
@OEP
OEP / mayaOnUbuntu.sh
Created September 23, 2012 18:14 — forked from heiths/mayaOnUbuntu.sh
Shell script to install and setup Autodesk Maya 2013 on Ubuntu 12.04
#!/bin/bash
#Heith Seewald 2012
#Feel free to extend/modify to meet your needs.
#Maya on Ubuntu v.1
#This is the base installer... I’ll add more features in later versions.
#if you have any issues, feel free email me at heiths@gmail.com
#### Lets run a few checks to make sure things work as expected.
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
@h3
h3 / trynetconf.sh
Last active December 18, 2015 23:49
Try networking configuration and set a restore time (tested on Ubuntu)
#/bin/sh
RESTART="/etc/init.d/networking restart"
FILEPATH="/etc/network/interfaces"
BACKUPPATH="$FILEPATH.BAK"
RESET_TIME="now + ${1:-5min}"
sudo cp -fp $FILEPATH $BACKUPPATH && \
sudoedit $FILEPATH && \
sudo bash -c "echo 'cp -fp $BACKUPPATH $FILEPATH && $RESTART' | at $RESET_TIME" && \
@ericstumper
ericstumper / context.ex
Created June 10, 2016 11:18
Guardian Authentication with Absinthe GraphQL in Elixir
defmodule Languafy.Web.Context do
@behaviour Plug
import Plug.Conn
alias Languafy.User
def init(opts), do: opts
def call(conn, _) do
case build_context(conn) do
{:ok, context} ->