Skip to content

Instantly share code, notes, and snippets.

Jeffrey Jones rurounijones

Block or report user

Report or block rurounijones

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View jones.lua
_ = function(p) return p; end;
name = _('Jones');
Description = 'Jones Custom Display'
Viewports =
{
Center =
{
x = 0;
y = 0;
width = 1920;
View gist:42339b07b4a9fe6de50d2c64a3969cc5
LoadError: either sequel_pg not loaded, or an old version of sequel_pg loaded
/home/jjones/.rvm/gems/ruby-2.4.3@ganges_product_service/gems/sequel_pg-1.8.1/lib/sequel/extensions/pg_streaming.rb:2:in `<top (required)>'
/home/jjones/.rvm/gems/ruby-2.4.3@ganges_product_service/gems/sequel-5.5.0/lib/sequel/core.rb:145:in `require'
/home/jjones/.rvm/gems/ruby-2.4.3@ganges_product_service/gems/sequel-5.5.0/lib/sequel/core.rb:145:in `block in extension'
/home/jjones/.rvm/gems/ruby-2.4.3@ganges_product_service/gems/sequel-5.5.0/lib/sequel/core.rb:145:in `each'
/home/jjones/.rvm/gems/ruby-2.4.3@ganges_product_service/gems/sequel-5.5.0/lib/sequel/core.rb:145:in `extension'
/home/jjones/.rvm/gems/ruby-2.4.3@ganges_product_service/gems/sequel-5.5.0/lib/sequel/database/misc.rb:204:in `extension'
/home/jjones/Programming/ganges/product_service/test/service/service_test.rb:11:in `mock'
/home/jjones/Programming/ganges/product_service/test/service/service_test.rb:40:in `block (2 levels) in <top
View attributes.json
// This is a json file used by chef-solo with the -j option
{
"postgresql" : {
"pg_hba": [
{ "type":"host", "db":"all", "user":"master", "addr":"10.80.79.0/24", "method":"md5"}
]
}
}
@rurounijones
rurounijones / Add attribute
Last active Dec 18, 2015
yum error in Chef wrapper cookbook
View Add attribute
tarting Chef Client, version 11.4.4
[2013-06-17T02:12:45+00:00] INFO: *** Chef 11.4.4 ***
[2013-06-17T02:12:45+00:00] DEBUG: Building node object for
connector-dev
[2013-06-17T02:12:45+00:00] DEBUG: Extracting run list from JSON attributes
provided on command line
[2013-06-17T02:12:45+00:00] INFO: Setting the run_list to
["recipe[connector::default]"] from JSON
[2013-06-17T02:12:45+00:00] DEBUG: Applying attributes from json file
[2013-06-17T02:12:45+00:00] DEBUG: Platform is centos version 6.4
@rurounijones
rurounijones / connector.json
Created May 17, 2013
Chef json and master cookbook recipe.
View connector.json
{
"run_list": [ "recipe[connector]" ],
"postgresql" : {
"version" : "9.2",
"enable_pgdg_yum" : "true",
"password" : {
"postgres" : "password"
},
"config" : {
"listen_addresses" : "*"
@rurounijones
rurounijones / gist:5062171
Created Mar 1, 2013
visualVM logfile. Initial connection failure is when visualvm attempted to auto-connect based on previous session, for some reason it does not keep username/password. After that I connected manually according to torquebox documentation and the connection succeeds but no information is being displayed: * Monitor tab empty * Thread tab empty etc.
View gist:5062171
-------------------------------------------------------------------------------
>Log Session: Friday, March 1, 2013 11:57:08 AM JST
>System Info:
Product Version = VisualVM 1.3.5
Operating System = Windows Server 2008 R2 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_15; Java HotSpot(TM) 64-Bit Server VM 23.7-b01; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.7.0_15-b03
Java Home = C:\Program Files\Java\jdk1.7.0_15\jre
System Locale; Encoding = ja_JP (visualvm); MS932
Home Directory = C:\Users\Administrator
View gist:4943156
# yum clean all
loaded plugins: product-id, subscription-manager
Updating certificate-based repositories
Please use yum-config-manager to configure which software
repositories are used with Red Hat Subscription Management.
Cleaning repos: epel pgdg92 rhel-6-server-cf-tools-1-rpms
: rhel-6-server-optional-rpms rhel-6-server-rhev-agent-rpms
: rhel-6-server-rpms
View gist:4760311
http://yum.postgresql.org/9.2/redhat/rhel-6Server-x86_64/repodata/primary.sqlite.bz2 [Errno -1] Metadata file does not match checksum.
View node_status_processor.rb
class NodeStatusProcessor < TorqueBox::Messaging::MessageProcessor
def on_message(message)
status_record = DocumentQueue.where(:name => message[:queue_name]).first.
document_queue_processors.where(:node_name => message[:node_name]).first
if status_record
# For some reason this isn't triggering automatically so we will do it manually.
status_record.updated_at = Time.zone.now
@rurounijones
rurounijones / elasticsearchstatus.json
Created Jan 29, 2013
Logstash problem, elasticsearch status
View elasticsearchstatus.json
{
"ok" : true,
"_shards" : {
"total" : 220,
"successful" : 110,
"failed" : 0
},
"indices" : {
"logstash-2013.01.06" : {
"index" : {
You can’t perform that action at this time.