Skip to content

Instantly share code, notes, and snippets.

View noslin005's full-sized avatar

Nilson Lopes noslin005

  • Source Code Corp.
  • United States of America
View GitHub Profile
@noslin005
noslin005 / gist:d6627e0563034a06599b87a95f66e189
Created August 22, 2019 20:19 — forked from phillipsm/gist:0ed98b2585f0ada5a769
Example of parsing a table using BeautifulSoup and requests in Python
import requests
from bs4 import BeautifulSoup
# We've now imported the two packages that will do the heavy lifting
# for us, reqeusts and BeautifulSoup
# Let's put the URL of the page we want to scrape in a variable
# so that our code down below can be a little cleaner
url_to_scrape = 'http://apps2.polkcountyiowa.gov/inmatesontheweb/'
@noslin005
noslin005 / gist:4aa0da1a3591a11faea2433fde78e2e6
Created June 8, 2018 04:55
GNS3: Configuring NAT for connecting to the internet
On the router (R1) connected to NAT device:
R1(config)#access-list 10 permit any
R1(config)#ip nat inside source list 10 interface FastEthernet 1/0 overload
R1(config)#interface FastEthernet1/0
R1(config-if)#description "Connected to NAT"
R1(config-if)#ip nat outside
R1(config)#interface FastEthernet0/0
R1(config-if)#description "Connected to LAN"
R1(config-if)#ip nat inside
R1(config)#interface FastEthernet0/1
Router > enable
Router# configure terminal
Router(config)# hostname R1
Router(config)# username admin secret cisco
Router(config)# enable secret cisco
R1(config)# ip domain-name localhost.local
R1(config)# crypto key generate rsa
R1(config)# ip ssh version 2
R1(config)# line vty 0 4
R1(config-line)# transport input ssh
#EXTM3U
#EXTINF:0,Rádio Cidade
http://radios.vpn.sapo.pt/CV/radio1.mp3
#EXTINF:0,Rádio Morabeza
http://radios.vpn.sapo.pt/CV/radio3.mp3
#EXTINF:0,PraiaFm
http://radios.vpn.sapo.pt/CV/radio4.mp3
@noslin005
noslin005 / pilha.c
Created July 1, 2014 19:04
Pilha usando listas encadeadas
//
// pilha.c
//
// Created by Nilson Lopes on 01/07/14.
// Copyright (c) 2014 Nilson Lopes. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#define TRUE 1
#define FALSE 0