Skip to content

Instantly share code, notes, and snippets.

View thomasv314's full-sized avatar

Thomas Vendetta thomasv314

View GitHub Profile
#!/bin/bash
SQUID_DOCKER_IMAGE="sameersbn/squid"
SQUID_DOCKER_VERSION="3.3.8-23"
SQUID_DOCKER_FQN="$SQUID_DOCKER_IMAGE:$SQUID_DOCKER_VERSION"
CONTAINER_NAME="squid"
function pull_image_if_missing() {
docker inspect $SQUID_DOCKER_FQN &> /dev/null
image_exists=$?
#!/usr/bin/python
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Amazon Software License (the "License"). You may not use
# this file except in compliance with the License. A copy of the License is
# located at http://aws.amazon.com/asl/ or in the "license" file accompanying
# this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
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
}