Skip to content

Instantly share code, notes, and snippets.

View eddy85br's full-sized avatar
:atom:

Eduardo L. Francisco eddy85br

:atom:
View GitHub Profile
@eddy85br
eddy85br / imersao_dados_4_aula01.ipynb
Last active May 30, 2022 19:03
Imersão_dados_4.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eddy85br
eddy85br / Toggle_push_button_LED.ino
Created January 24, 2021 03:19
Arduino Toggle LED with a push button
/*
Fade
This example shows how to fade an LED on pin 9
using the analogWrite() function.
The analogWrite() function uses PWM, so if you
want to change the pin you're using, be sure to
use another PWM capable pin. On most Arduino,
the PWM pins are identified with a "~" sign,
like ~3, ~5, ~6, ~9, ~10 and ~11.
@eddy85br
eddy85br / keybase.md
Created September 3, 2019 02:57
Keybase.md

Keybase proof

I hereby claim:

  • I am eddy85br on github.
  • I am eduardolf85 (https://keybase.io/eduardolf85) on keybase.
  • I have a public key ASCa6c5hbgi6P1ok4T0fWvNSW8lSQD4JFRWXYvgKiHJrsQo

To claim this, I am signing this object:

@eddy85br
eddy85br / netgrep.pl
Last active August 12, 2017 15:58
Grep Netstat Header and Results (netstat -tupan | egrep ...)
#!/usr/bin/env perl
use warnings;
use strict;
use feature 'say';
die 'Pass some port, PID, string or RegExp (between quotation marks) as command arguments.'."\n" if !scalar(@ARGV);
map { $_ =~ s/\"/\\\"/g; } @ARGV;
@eddy85br
eddy85br / swapgrep.sh
Created April 17, 2015 15:17
View Swap Usage for running processes
#!/bin/bash
# Get current swap usage for all running processes
# Erik Ljungstrom 27/05/2011
#
## Adapted by Jhonatan Piffer Siqueira and Eduardo Lemons Francisco (eddy85br).
OVERALL=0
PROGLIST=$(ps axw -o pid,args --no-headers)
while read PID ARGS; do
@eddy85br
eddy85br / psgrep.sh
Last active February 1, 2018 20:26
Grep Running Processes (psgrep)
#!/bin/bash
################################################################################
## Similar to run: ps aux | grep "RegExp" ##
## Script that receives a list o keywords and search then in "ps axw" command ##
## and returns ps's header and processes that where found with keywords. ##
## Accepts grep options, like '-c' to count number of matched processes. ##
################################################################################
if [ "$#" -eq 0 ]; then