Skip to content

Instantly share code, notes, and snippets.

View antonioams's full-sized avatar

Antonio Anderson Souza antonioams

  • Vizir Software Studio
  • São Paulo, Brasil
View GitHub Profile
@antonioams
antonioams / discover-pci-slot-type-linux
Created April 9, 2012 20:39
How to discover PCI Slot Type in a Linux Server
[root@local ~]# dmidecode | grep -A 5 "System Slot"
System Slot Information
Designation: PCI1
Type: x4 PCI Express Gen 2 x8
Current Usage: Available
Length: Long
Characteristics:
--
System Slot Information
Designation: PCI2
@antonioams
antonioams / robot.js
Created December 8, 2012 19:18
antbot
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
@antonioams
antonioams / robot.js
Created December 8, 2012 19:29
antbot
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
mysql> explain select * from vicidial_list where vendor_lead_code = 1594473320 and entry_date between '2013-07-16 00:00:00' and sysdate();
+----+-------------+---------------+------+---------------------------------------------------------------------------------------------+------+---------+------+---------+-------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+---------------+------+---------------------------------------------------------------------------------------------+------+---------+------+---------+-------------+
| 1 | SIMPLE | vicidial_list | ALL | vendor_lead_code_entry_date,idx_vicidial_list_vendor_lead_code,idx_vicidial_list_entry_date | NULL | NULL | NULL | 2498197 | Using where |
+----+-------------+---------------+------+---------------------------------------------------------------------------------------------+----
{
"title": "Logstash Search",
"services": {
"query": {
"idQueue": [
1
],
"list": {
"0": {
"query": "{{ARGS.query || '*'}}",
[
"7up",
"A grande familia",
"Abercrombie",
"Absolut",
"Accor",
"Ace",
"Acqua Panna",
"Activia",
"Actmel",
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDp5knluDgV74YKW6zXI+a1pQNpyNtrz+kpbkVVDLTnCg84u95xxZHICym/LQNPd5Ra2n/Qko4V8q9SoaC3CMgaL3tqPf5A0pT9iB32xmUMc2K/QxFj5HEM+NTWcgpsj7v3ZPEgSb2OmS3/nGZnknphh7zzcFXcm4fSYRzyPdWwztPjhwf5m6/E9ChrvJmAu4qwx2I2R3JhlwukOTdxaH4VhD8JE40WhITXGBMNHTWGgshDqD7gQdQTl7FEL72MeSIADAZUDiRWh9/gLQALLTHCOSPSk+Gr45vMauYwzrpAgSfe45yWxnj9VAB5l21nuyWZh3FE8lwSKo09rlM4XiE5 paulo@paulo-nb
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZUHeQK/zrayZKJu8d+lL1p2rmSO22ee+KhSZsOrd1dbG1CrTAVrueBfFuCaig8uvzlNXDHI4+PS/FRuH1cAxfwRfDDpcVrWI9RCbpq2yxqgeZuYoCe+8PwrWY7MdvSvVctvDWwL4GhO9/GUIMPEiBZaEC0JHpJyInzqOY/R83vbvWaY6UkXXR0jA9bipS6J5IT11Nz4jiSyQIZnubBP6cJLBG0YizcfHQg7nId4c7OkV2RpJItE0uemmxppkYuO4Hcrci8BSl6Jds6gYcyTY/NRsAYBtzHLpk8t8eS1R4ZOC8LkWKSy6gLYZGLkHmJZ16wf6a6AbuL1Fk2HQY/A4L [email protected]