- First download
dbfpy: http://sourceforge.net/projects/dbfpy/files/latest/download?source=files - Then install:
sudo python setup.py install
To convert DBF file to CSV:
./dbf2csv database.dbf
| ''' Convert any file to base64 using base64 python standard library ''' | |
| import base64 | |
| with open('MyFile.ext', 'rb') as f: | |
| # read file as binary and encode to base64 | |
| encoded_string = base64.b64encode(f.read()) | |
| with open('cer.base64', 'w') as f: | |
| # write in a new file the base64 | |
| f.write(encoded_string) |
| # Redis apps | |
| redis==2.10.5 | |
| rq==0.7.0 | |
| django-redis==4.7.0 | |
| django-rq==0.9.4 | |
| django-rq-email-backend==0.1.3 |
dbfpy: http://sourceforge.net/projects/dbfpy/files/latest/download?source=filessudo python setup.py installTo convert DBF file to CSV:
./dbf2csv database.dbf
| # Look for certain files then get the size of everithng finding on current dir | |
| find . -name "*lua*" -type f -exec du -ch {} + | grep total$ | |
| # Look for files with a patron on a current dir | |
| find . -name "*lua*" -type f | |
| # Delete all files find them with a patron | |
| find . -name "*lua*" -type f -delete |
| Assuming you have the following settings in Sublime: | |
| "tab_size": 2, | |
| "translate_tabs_to_spaces": true, | |
| If you get a file indented with 4 fucking spaces: | |
| `` | |
| Select all | |
| View > Indentation > tab width: 4 | |
| View > Indentation > convert indentation to tabs |
| #Sublime nature exclusions | |
| *.sublime-workspace | |
| *.sublime-project | |
| *.sublime-settings | |
| #MavensMate nature exclusions | |
| config/* | |
| *.log | |
| deploy/ | |
| debug/ |
| #CaracteristicasPersonales | |
| class Parte5View(View): | |
| form_class=Parte5Form | |
| initial='' | |
| errores=[] | |
| template_name = 'anexo8/parte5.html' | |
| def get(self, request): | |
| form = self.form_class(initial=self.initial) | |
| return render(request, self.template_name, {'form': form}) | |
| def post(self, request): |
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Hola Mundo</title> | |
| <link rel="stylesheet" href="css/foundation.min.css"> | |
| </head> | |
| <body> | |
| <h1>Hola Mundo</h1> |
| # -*- coding: utf-8 -*- | |
| """ | |
| lista de estados de la Mexico | |
| """ | |
| AGC = "Aguascalientes" | |
| BCN = "Baja California Norte" | |
| BCS = "Baja California Sur" | |
| CAMP = "Campeche" | |
| CHI ="Chiapas" |
| /** | |
| * N9eeks Saludos | |
| * The first commented line is your dabblet’s title | |
| */ | |
| font-size: 2em; | |
| background: #f06; | |
| background: linear-gradient(20deg, #f06, yellow); | |
| min-height: 100%; | |
| color: #fff; |