Skip to content

Instantly share code, notes, and snippets.

View weltonrodrigo's full-sized avatar
🏠
Working from home

Welton Rodrigo Torres Nascimento weltonrodrigo

🏠
Working from home
  • Brasília, Distrito Federal, Brasil
View GitHub Profile
[root@zenoss MULTI-SANTANA]# rrdtool dump contadorDeImpressao_total_impressoes.rrd
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- Round Robin Database Dump -->
<rrd>
<version>0003</version>
<step>300</step> <!-- Seconds -->
<lastupdate>1395939015</lastupdate> <!-- 2014-03-27 13:50:15 BRT -->
<ds>
MacBook-Pro-de-Welton-Nascimento:install weltonnascimento$ snmpwalk -v2c -c public -On 10.20.0.112 SNMPv2-SMI::mib-2.43.11.1.1
.1.3.6.1.2.1.43.11.1.1.2.1.1 = INTEGER: 1
.1.3.6.1.2.1.43.11.1.1.3.1.1 = INTEGER: 1
.1.3.6.1.2.1.43.11.1.1.4.1.1 = INTEGER: 3
.1.3.6.1.2.1.43.11.1.1.5.1.1 = INTEGER: 3
.1.3.6.1.2.1.43.11.1.1.6.1.1 = STRING: "Toner Cartridge MT583EXP P/N:MLT-D208L S/N:CRUM-13090547183"
.1.3.6.1.2.1.43.11.1.1.7.1.1 = INTEGER: 7
.1.3.6.1.2.1.43.11.1.1.8.1.1 = INTEGER: 10000
.1.3.6.1.2.1.43.11.1.1.9.1.1 = INTEGER: 9300
@weltonrodrigo
weltonrodrigo / NewsPullService
Created July 1, 2014 22:06
Android IntentService aimed to get news from Folha de Boa Vista Site.
package com.example.android.threadsample;
import android.app.IntentService;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;
import android.webkit.URLUtil;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
@weltonrodrigo
weltonrodrigo / keybase.md
Created September 22, 2014 14:58
keybase.md

Keybase proof

I hereby claim:

  • I am weltonrodrigo on github.
  • I am weltonrodrigo (https://keybase.io/weltonrodrigo) on keybase.
  • I have a public key whose fingerprint is FA65 7A76 D5D9 13B4 465F 5320 2736 99AF 6448 28D2

To claim this, I am signing this object:

@weltonrodrigo
weltonrodrigo / SSLRC4Poke.java
Created July 17, 2015 17:43
SSLRC4Poke to show how java 1.8.51 disabled RC4 ciphers.
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
import java.util.Arrays;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
use v5.14;
use utf8;
use Mojo::Parameters;
use URI::Encode q/uri_encode/;
my %params = (
email => 'fulano@orgao.gov.br',
date => "12/12/1980",
);
use Mojo::UserAgent;
use v5.10;
my $ua = new Mojo::UserAgent;
my $tx = $ua->build_tx(GET => 'www.google.com.br');
say $tx->req->to_string;
$tx->req->headers->referrer('http://www.bing.com');
say $tx->req->to_string;;
@weltonrodrigo
weltonrodrigo / apt.log
Created October 19, 2012 15:57
Upgrade logs.
Log time: 2012-10-18 15:01:27.585471
Log time: 2012-10-18 15:02:40.442754
Log time: 2012-10-18 15:08:10.904122
new important dependency: gir1.2-syncmenu-0.1:i386
Installing gir1.2-syncmenu-0.1 as Recomenda of ubuntuone-client
Installing libsync-menu1 as Depende of gir1.2-syncmenu-0.1
ubuntuone-client:i386 Recomenda on ubuntu-sso-client-gui [ i386 ] < none > ( none ) (>= 2.99.91) can't be satisfied!
Installing gcr as Depende of gnome-keyring
Installing fonts-freefont-ttf as Depende of ttf-freefont
Installing python3 as Depende of apturl-common
welton@butao:~/repo/vala/src$ valac --pkg Gio-2.0 unity-scope-grooveshark.vala
Gio-2.0.gir:44738.7-44738.47: warning: Virtual method `G.Resolver.lookup_service_async' conflicts with method of the same name
<virtual-method name="lookup_service_async">
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Gio-2.0.gir:46661.7-46661.31: warning: Signal `G.Settings.change_event' conflicts with method of the same name
<virtual-method name="change_event">
^^^^^^^^^^^^^^^^^^^^^^^^^
(valac:13581): GLib-CRITICAL **: g_str_has_suffix: assertion `str != NULL' failed
@weltonrodrigo
weltonrodrigo / spirituality.csv
Last active April 6, 2016 17:36
Level in Espirituality scale by age
Spirituality Age
1 4.9 23
2 3.1 30
3 4 32
4 3.9 NA
5 4.8 29
6 4.9 30
7 3.8 23
8 NA 55
9 3.3 22