Skip to content

Instantly share code, notes, and snippets.

View lfurrea's full-sized avatar

Luis Urrea lfurrea

  • Simple Communication Services
  • USA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lfurrea on github.
  • I am lurrea (https://keybase.io/lurrea) on keybase.
  • I have a public key ASDL5xKOhPNmy771VRmMgv9P2iAb94gWwYSJDsBUuRpolgo

To claim this, I am signing this object:

@lfurrea
lfurrea / 00custom-setup.el
Created June 9, 2017 05:33
emacs customization
;; To get rid of Weird color escape sequences in Emacs.
;; Instruct Emacs to use emacs term-info not system term info
;; http://stackoverflow.com/questions/8918910/weird-character-zsh-in-emacs-terminal
(setq system-uses-terminfo nil)
;; Prefer utf-8 encoding
(prefer-coding-system 'utf-8)
;; Display continuous lines
(setq-default truncate-lines nil)
@lfurrea
lfurrea / optparse-template.rb
Created October 3, 2016 18:19 — forked from rtomayko/optparse-template.rb
Ruby optparse template
#!/usr/bin/env ruby
#/ Usage: <progname> [options]...
#/ How does this script make my life easier?
# ** Tip: use #/ lines to define the --help usage message.
$stderr.sync = true
require 'optparse'
# default options
flag = false
option = "default value"
given 'www.google.com'
decompose to the different domain components
('com', 'google.com', 'www.google.com')
@lfurrea
lfurrea / blank.json
Created April 17, 2015 23:24
Kibana Blank Dashboard
{
"title": "New Dashboard",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0
$(function () {
$.plot("#placeholder", [{
label: "Abiertos",
data: abiertos
}, {
label: "Cerrados",
data: cerrados
}], {
series: {
<!-- route1.list.html -->
<h3>List of Route 1 Items</h3>
<ul>
<li ng-repeat="item in items">{{item}}</li>
</ul>
<!-- route1.html -->
<h1>Route 1</h1>
<hr/>
<a href="#/route1/list">Show List</a>
<div ui-view></div>
grep -h "'[[:digit:]]\{4\}'\sis now Lagged" full*| tr -s ' ' ' '|cut -d' ' -f1,2,3,11 > atas-middle
grep -h "'[[:digit:]]\{7,8\}'\sis now Lagged" full*| tr -s ' ' ' '|cut -d' ' -f1,2,3,11 > callmyway-middle
joinn by separator ->source-middle
perl -pe 's/\[(.*)\s(.*)\s(.*)\]\s\((.*)ms/$1-$2-$3 $4/;' source-middle > source
cat plot-load.conf |gnuplot