Skip to content

Instantly share code, notes, and snippets.

View d4l3k's full-sized avatar
⛰️
Hi

Tristan Rice d4l3k

⛰️
Hi
View GitHub Profile
Test2_hello( )
{
llOwnerSay( (string)"Hello Other File!" );
}
list Potato_football = [12];
Potato_say_something( )
{
llOwnerSay( (string)"ERMAHGERD PERTATERS!" );
llOwnerSay( (string)"PERFOOTBLLLZ " + (string)( llList2Integer(Potato_football, 0) ) + " " + (string)( Potato_flip( ) ) );
if(1){ state thisotherone; };
@d4l3k
d4l3k / Unicorn 1 worker thread
Last active December 15, 2015 00:49
Sinatra w/ Unicorn benchmark: loading a file from Redis. Machine specs: 2.83 GHz Core 2 Quad, 8gb of RAM
% siege http://localhost:4567/1/edit -c 100 -t 60s -b
** SIEGE 2.72
** Preparing 100 concurrent users for battle.
The server is now under siege...
Lifting the server siege... done.
Transactions: 5889 hits
Availability: 100.00 %
Elapsed time: 59.88 secs
Data transferred: 19.58 MB
@d4l3k
d4l3k / update-resolv-conf
Created June 16, 2013 02:54
Tweaked OpenVPN script to properly configure DNS entries using resolvconf.
#!/bin/bash
#
# Parses DHCP options from openvpn to update resolv.conf
# To use set as 'up' and 'down' script in your openvpn *.conf:
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
#
# Used snippets of resolvconf script by Thomas Hood <[email protected]>
# and Chris Hanson
# Licensed under the GNU GPL. See /usr/share/common-licenses/GPL.
@d4l3k
d4l3k / .Xdefaults
Last active December 21, 2015 13:29
My laptop configuration.
xscreensaver.splash: false
! xscreensaver ---------------------------------------------------------------
!font settings
xscreensaver.Dialog.headingFont: -*-dejavu sans mono-bold-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.bodyFont: -*-dejavu sans mono-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.labelFont: -*-dejavu sans mono-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.unameFont: -*-dejavu sans mono-medium-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.buttonFont: -*-dejavu sans mono-bold-r-*-*-12-*-*-*-*-*-*-*
xscreensaver.Dialog.dateFont: -*-dejavu sans mono-medium-r-*-*-12-*-*-*-*-*-*-*
@d4l3k
d4l3k / gem_make.out
Created September 22, 2013 02:06
Installing do_mysql (0.10.13) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb
checking for main() in -lmysqlclient... no
checking for main() in -lpthread... yes
checking for main() in -lz... yes
checking for main() in -lm... yes
checking for main() in -lrt... yes
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for main() in -ldl... yes
checking for localtime_r()... yes
\documentclass[11pt,letterpaper,twocolumn]{article}
%Gummi|065|=)
\title{\textbf{Calculus 2 Notes}}
\author{Tristan Rice}
\date{}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[margin=2cm,top=1.5cm]{geometry}
\usepackage{multicol}
\newcommand{\be}{\begin{equation}}
diff -uprN -X linux-3.12-rc7-vanilla/Documentation/dontdiff linux-3.12-rc7-vanilla/drivers/hid/hid-axff.c linux-3.12-rc7/drivers/hid/hid-axff.c
--- linux-3.12-rc7-vanilla/drivers/hid/hid-axff.c 2013-10-27 16:12:03.000000000 -0700
+++ linux-3.12-rc7/drivers/hid/hid-axff.c 2013-10-30 22:23:55.172586734 -0700
@@ -95,7 +95,7 @@ static int axff_init(struct hid_device *
}
}
- if (field_count < 4) {
+ if (field_count < 4 && hid->product != 0xf705) {
hid_err(hid, "not enough fields in the report: %d\n",
Step one. Back up your original shipfile before replacing it, this will delete everything in your ship, including your storage, I recommend taking everything you want to keep planetside and storing it there while you transfer everything over to the new ship.
Step two. Unpack/Extract to "C:\Program Files (x86)\Steam\SteamApps\common\Starbound\player"
Step three. Find your existing character code, and rename the included file to that, keeping the ship extension.
Step four. Enjoy a giant completely in-game modular sandbox ship.
@d4l3k
d4l3k / 0_reuse_code.js
Created August 10, 2014 20:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
javascript:var total = 0; var mine = 0; [].forEach.call(document.querySelectorAll('p'), function(a){ var bits = a.innerText.split(":")[1].split("/"); total += parseInt(bits[1]); mine += parseInt(bits[0]);}); alert(mine + " / " + total + "\n" + (mine/total*100).toFixed(1)+"%")