Skip to content

Instantly share code, notes, and snippets.

View thomasv314's full-sized avatar

Thomas Vendetta thomasv314

View GitHub Profile
dbag = search('aws_opsworks_app').first
environment_string = dbag['environment'].map do |key, val|
"export #{key}=#{val}"
end.join("\n")
file '/etc/environment' do
content dbag['environment'].map { |k, v| "export #{k}=#{v}" }.join("\n")
owner 'root'
group 'root'
package main
import (
"gobot.io/x/gobot/drivers/gpio"
"gobot.io/x/gobot/platforms/firmata"
"log"
)
func main() {
pinNumber := "2"
module Decorators
module BlacklightDecorator
::Blacklight::FacetsHelperBehavior.module_eval do
def render_selected_facet_value(facet_field, item)
content_tag(:h1) do
"YO SUP"
end
end
end
end

Thomas Vendetta Keybase proof

I hereby claim:

  • I am thomasv314 on github.
  • I am vendetta (https://keybase.io/vendetta) on keybase.
  • I have a public key whose fingerprint is D45A 59C2 70CE E3CF D72D 3FFA C97B D2CD 3138 D7BB

To claim this, I am signing this object:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC56Ro1t7+XhZWCzSlYqGSKzk6rkIBiVuqGbfr9Jxnscpb8T0kUIXizhhrJRR282KPJX98YEld6VwRuY3xlBEsGswguZz2My31qJAQlHE9c992fJmaalvlWsH2u2cO/0x37sRrpQsAy1wZuMIXErft5HK5eIWDb+AMQgKawsBmsK3F1E8uuDK/fi/DuIboKsvZ1YiVseUHI4oGGsUaoYjopUY7FuINEqdnX9TjiUd90gWBckbuJMCbuuKX7ba2AWt2c4HqIEgTzSdDhxW8Mv3mqRtviYD/J5htv0py4+ul5ZB+W7iumnmV22ZjvTU5ldMOOcxZHzl1rSUoLHKurkzYh hasc@hasc-Z87X-OC
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | \
sudo apt-key add -
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-2 -O - | \
sudo apt-key add -
sudo dpkg -i intel-linux-graphics-installer_1.0.1_i386.deb
sudo apt-get -f install
intel-linux-graphics-installer
#https://01.org/linuxgraphics/downloads
message = {
"securityKey": "KEY",
"someCodes": {
"string": "RRUSAS"
},
"FirstRecordNumber": 1,
"NumberOfRecords": 2000
}
'use strict';
angular.module('instangApp')
.service('TagService', function TagService($http, $q, $angularCacheFactory, Nginsta) {
// AngularJS will instantiate a singleton by calling "new" on this function
var cache = $angularCacheFactory('tagCache', {
maxAge: 3600000
});
@thomasv314
thomasv314 / application_controller.rb
Created January 15, 2014 23:46
An example of how we check to see if the current visitor is allowed to see the beta running in production.
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :check_beta, :except => [ :beta ]
def beta
render :layout => "blank"
end