Skip to content

Instantly share code, notes, and snippets.

Alberto ramsys

Block or report user

Report or block ramsys

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ramsys
ramsys / gist:5419469
Created Apr 19, 2013
Script in python that print the hex value from a base4 string passed by argument
View gist:5419469
import sys
import base64
#import binascii
#Controlamos que tenga argumento
if(len(sys.argv)!=2):
print 'usage: convert_base64_to_hex.py <DigestValue>'
sys.exit(2)
base64string = sys.argv[1]
@ramsys
ramsys / gist:5419656
Created Apr 19, 2013
Create a xml file from a csv file
View gist:5419656
import csv
#import sys
from xml.etree import ElementTree
from xml.dom import minidom
csvFileName = "Distribuidoras.csv"
xmlFileName = "distribuidoras.xml"
def unicode_csv_reader(utf8_data, dialect=csv.excel, **kwargs):
You can’t perform that action at this time.