Skip to content

Instantly share code, notes, and snippets.

View georgantasp's full-sized avatar
👍

Peter 👍 georgantasp

👍
View GitHub Profile
@georgantasp
georgantasp / gnu-screen-vertsplit.patch
Created March 30, 2018 19:31
Screen Vertical Patch
$ cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/screen co screen
$ curl https://gist.githubusercontent.com/georgantasp/6b2e6e5849766134bfafe7dfb4cadb7a/raw/ab933216aec3191397eb00f5c9584e950bf56340/gnu-screen-vertsplit.patch > gnu-screen-vertsplit.patch
$ cd screen/src
$ patch < ../../gnu-screen-vertsplit.patch
$ ./configure --enable-locale --enable-telnet --enable-colors256 --enable-rxct_osc
$ make
$ sudo make install
require 'uri'
require 'net/http'
require 'nokogiri'
require 'json'
class NjLookUp
def perform_search(options)
uri = URI.parse("http://tax1.co.monmouth.nj.us/cgi-bin/inf.cgi")
http = Net::HTTP.new(uri.host, uri.port)
[2013-03-05 17:26:16,541] WARN [stat-listener-jetty-28] (MetricsServlet.java:392) : Error evaluating gauge
Status Code: 400, AWS Service: AmazonElasticMapReduce, AWS Request ID: c92f245a-85b9-11e2-a8ab-6dad9b639363, AWS Error Code: Throttling, AWS Error Message: Rate exceeded
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:614)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:312)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:165)
at com.amazonaws.services.elasticmapreduce.AmazonElasticMapReduceClient.invoke(AmazonElasticMapReduceClient.java:651)
at com.amazonaws.services.elasticmapreduce.AmazonElasticMapReduceClient.describeJobFlows(AmazonElasticMapReduceClient.java:402)
at com.rightaction.logimporter.mapreduce.AWSClusterService.lookupJobFlowDetailsByJobFlowId(AWSClusterService.java:94)
at com.rightaction.logimporter.mapreduce.AWSClusterService.lookupJobFlowDetail(AWSClus
@georgantasp
georgantasp / gist:3976621
Created October 29, 2012 21:21
settings.xml
<!-- vim:set ts=2 sw=2 et ai syn=xml: -->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>rightaction</id>
<username></username>
<password></password>
def parse_url url_string
begin
if url_string.start_with?('http')
uri = URI.parse(url_string)
else
uri = URI.parse('http://' + url_string)
end
domain = uri.host unless uri.host.nil?
if domain.start_with? "www."
require 'cipher_wrapper'
require 'cipher'
class CipherWrapper
initialize
self.cipher = Cipher.new
end
@georgantasp
georgantasp / test
Created October 24, 2011 20:57
test
testt