Skip to content

Instantly share code, notes, and snippets.

0000000
011111020 00
011111102200220
011111111020220
0113111110220
012221021120
013333101110
0100300101110
diff --git a/builtin.c b/builtin.c
index 071cb56..a8a8780 100644
--- a/builtin.c
+++ b/builtin.c
@@ -560,7 +560,7 @@ static const char* const jq_builtins[] = {
"def _modify(paths; update): reduce path(paths) as $p (.; setpath($p; getpath($p) | update));",
"def recurse(f): ., (f | select(. != null) | recurse(f));",
"def to_entries: [keys[] as $k | {key: $k, value: .[$k]}];",
- "def from_entries: map({(.key): .value}) | add;",
+ "def from_entries: map({(.key//.Key): (.value//.Value)}) | add;",
diff --git a/bin/check b/bin/check
index e0c34ee..bfbb21b 100755
--- a/bin/check
+++ b/bin/check
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/home/git/.rbenv/shims/ruby
require_relative '../lib/gitlab_init'
require_relative '../lib/gitlab_net'
# CentOS-Vault.repo
#
# CentOS Vault holds packages from previous releases within the same CentOS Version
# these are packages obsoleted by the current release and should usually not
# be used in production
#-----------------
[C6.0-base]
name=CentOS-6.0 - Base
baseurl=http://vault.centos.org/6.0/os/$basearch/
@ywatase
ywatase / .pryrc
Created March 3, 2014 06:08
debugger for rails
# snippet from http://qiita.com/yusabana/items/8ce54577d959bb085b37
## Settings
Pry.config.color = true
Pry.config.editor = "vim"
Pry.config.prompt = proc do |obj, level, _|
prompt = ""
prompt << "#{Rails.version}@" if defined?(Rails)
prompt << "#{RUBY_VERSION}"
<cacti>
<hash_04002412c493499dbf92883d5e1b00144fe390>
<name>F5 BigIP - Snat Statistics</name>
<description>Pull per Snat statistics from a F5 BigIP</description>
<xml_path>&lt;path_cacti&gt;/resource/snmp_queries/f5_bigip_snat.xml</xml_path>
<data_input_id>hash_030024bf566c869ac6443b0c75d1c32b5a350e</data_input_id>
<graphs>
<hash_110024efe0a7ff0304073f1f9acde9a30cdb60>
<name>Snat Traffic (bits/sec)</name>
<graph_template_id>hash_000024b5dfb11167905fd2146817249be1a0d5</graph_template_id>
This file has been truncated, but you can view the full file.
#!/usr/bin/env perl
use strict;
use warnings;
use Resque;
use String::CamelCase qw(decamelize);
use Proclet;
my $cmd = shift @ARGV;
my $job = shift @ARGV;
my $worker = shift @ARGV || 1;
use strict;
use utf8;
use Plack::Request;
use Graph::Easy;
# cpanm Graph::Easy::As_svg;
my $body = <<END;
<!DOCTYPE html>
<html>
<body>
#!/usr/bin/env perl
use strict;
use warnings;
use feature 'say';
use DateTime::Format::HTTP;
use DateTime;
sub t {