por Miguel | Jun 26, 2017 | bash
This one was easy, first create a file (hosts_ip.txt) with the IP of each server to get its /etc/hosts: 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6 192.168.0.7 Generate a private/public pair key and add the public one in authorized_keys of each server : # generate...
por Miguel | Jun 26, 2017 | jira, python
I wrote a script with python to automate some things with JIRA and I used the module Requests: #!/usr/bin/python # m.ortiz # Requiere modulo requests: http://docs.python-requests.org/en/latest/ # Documentacion de este script:FIXME # modulos import sys,requests The...
por Miguel | Jun 22, 2017 | jira, python
I’m working in some automation and one of the things I needed to solve was a script to download JIRA attachments with Python, here’s how I did it. Using the REST API of JIRA and some python modules: We start defining the she-bang, author, modules and...
por Miguel | Jun 8, 2017 | python
While executing a bash subshell inside a Python script I had to inherit the environment variables, that can be done in this way: Bashrc $ cat ~/.bashrc |grep LOLO export LOLO=»/foo/bar» *Here you need to restart your shell in order to execute .bashrc and export the...
por Miguel | Jun 6, 2017 | windows
Today I’ve come across a weird an annoying problem «a undeletable file» in Windows that was created while using a shell script in Cygwin. The file had owner: «Unknown+User» and group: «Unknown+Group» making virtually impossible to delete the file without...
por Miguel | Jun 1, 2017 | jenkins, windows
Change Cygwin’s user I’ve tried looking for an option like «login» but didn’t work for me. As a workaround I use this: #using RUNAS runas /user:<HOSTNAME>\<USER> D:\cygwin-64\Cygwin.bat #using PSEXEC psexec \\computername -u...
por Miguel | Abr 17, 2017 | windows
If you are experiencing this messages: cygwin Warning: Input is not from a terminal cygwin Warning: Output is not from a terminal Using GIT or just vim only, here’s a couple of things you can try: If you get those errors using vim only maybe you want to try bash...
por Miguel | Nov 24, 2016 | devops
Creo que encontrarán cientos de páginas hablando sobre el tema, sin embargo aquí entraré en detalles específicos de la aplicación de DevOps, los perfiles que se buscan en el mercado (tanto en Latinoamérica como Norteamérica y Europa) y qué es necesario para que de una...
por Miguel | Oct 19, 2016 | nic.ar
Son muy recientes todos los cambios de nic.ar y el gobierno a fin de controlar no solo la adquisición de dominios sino también el control económico del AFIP en este ámbito. Antes podíamos ingresar normalmente al sistema con usuario y contraseña, ahora es requiere todo...
por Miguel | Sep 8, 2016 | linux
Two days ago I had an interview in a Buenos Aires’ software company. They decided to test my Linux skills with a simple task, to create a .deb package with certain characteristics. They provided to me a binary in Python (which you can download here) that runs in...