Skip to content

Instantly share code, notes, and snippets.

@magnunleno
magnunleno / simple-arch-install.sh
Created September 5, 2012 18:14
Simplified Arch Linux Install Script (en)
#!/bin/bash
# encoding: utf-8
##################################################
# Variables #
##################################################
# Computer Name
HOSTN=Arch-VM
# Keyboard Layout
@magnunleno
magnunleno / arch-install.sh
Created September 5, 2012 18:13
Arch Linux Install Script (en)
#!/bin/bash
# encoding: utf-8
##################################################
# Variables #
##################################################
# Computer Name
HOSTN=Arch-VM
# Keyboard Layout
@magnunleno
magnunleno / simple-arch-install.sh
Created September 4, 2012 18:50
Simplified Arch Linux Install Script (pt-BR)
#!/bin/bash
# encoding: utf-8
##################################################
# Variaveis #
##################################################
# Nome do Computador
HOSTN=Arch-VM
# Localização. Verifique o diretório /usr/share/zoneinfo/<Zone>/<SubZone>
@magnunleno
magnunleno / arch-install.sh
Created August 11, 2012 03:03
Arch Linux Install Script (pt-BR)
#!/bin/bash
# encoding: utf-8
##################################################
# Variaveis #
##################################################
# Nome do Computador
HOSTN=Arch-VM
# Localização. Verifique o diretório /usr/share/zoneinfo/<Zone>/<SubZone>
@magnunleno
magnunleno / nmkdir.py
Last active October 7, 2015 09:48
nmkdir - criador de diretórios numerados
#!/usr/bin/env python
# encoding: utf-8
# Licença: GPL3
# Autor: Magnun Leno (magnun [dot] leno [at] gmail [dot] com)
import sys
from os import mkdir
def print_ajuda():
@magnunleno
magnunleno / valida_ip.py
Created September 3, 2011 02:53
RegEx e endereços IP - Python
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
'''
Programa responsável por realizar testes de performance na detecção e análise
de endereços IPs utilizando códigos de Python puro e expressões regulares.
Autor: Magnun Leno
Licença: GPLv3
Nome do Arquivo: valida_ip.py
'''
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from platform import architecture
from BeautifulSoup import BeautifulSoup
import urllib2
from sys import argv
BASE_URL = "http://vabs.archlinux-br.org/"