Skip to content

Instantly share code, notes, and snippets.

View LuisPalacios's full-sized avatar
🏠
Working from home

Luis Palacios Derqui LuisPalacios

🏠
Working from home
View GitHub Profile
marte ~ # virsh shutdown aplicacionix
$ cd /Apps/data/web/www.luispa.com/wordpress/wp-includes/
@LuisPalacios
LuisPalacios / gist:6b2aa3635b6543d58313
Created July 7, 2015 19:44
../wordpress/wp-includes/pluggable.php
// Set to use PHP's mail()
$phpmailer->IsSMTP();
@LuisPalacios
LuisPalacios / virt-manager-osx
Last active October 5, 2016 14:32 — forked from holms/virt-manager-osx
Install virt-manager osx
# Adapted to user HOME install
# Sources
mkdir -p $HOME/github
cd $HOME/github
git clone https://github.com/virt-manager/virt-manager
cd virt-manager
sudo port -v install intltool py27-pygtk
@LuisPalacios
LuisPalacios / gist:afcb7817de9861397f5e
Created March 21, 2016 08:15 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@LuisPalacios
LuisPalacios / tv_grab_movistartv
Last active May 28, 2021 07:21
Script de apoyo a Tvheadend para “leer” el fichero XMLTV (descrito en https://www.luispa.com/tv/2016/02/28/tvh-movistar-2016.html)
#!/bin/bash
xmltv_file_location=/home/luis/guia/guia.xml
dflag=
vflag=
cflag=
qflag=
if (( $# < 1 ))
then
cat "$xmltv_file_location"
exit 0
@LuisPalacios
LuisPalacios / gist:71d4ed76fdcb78a4be9c5c9aa400d85f
Created March 20, 2021 12:26
Instalar Python3 en OSX (3.9.2).
https://docs.python.org/3/using/mac.html
- OSX trae versiones antiguas de Python.
- Instalo la última versión de Python3 desde aquí:
- https://www.python.org/downloads/mac-osx/ (Me bajé la 3.9.2 para Intel)
- Ejecutar la instalación.
- Ejecutar “Install Certificates.command” desde /Applications/Python 3.9 (Desde FINDER)
- Abrir una SHELL (Terminal.app o iTerm) y ejecutar:
- /Applications/Python\ 3.9/Update\ Shell\ Profile.command
# Comprobar el precio de un producto en Amazon
'''
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
pip install virtualenv
virutalenv venv
@LuisPalacios
LuisPalacios / gist:b906b58128a2d4cb62799220df628bd0
Created May 28, 2021 07:24
Canales Movistar TV en 2014 (Ref: "Router Linux para Movistar" - https://www.luispa.com/tv/2014/10/05/router-linux.html)
#EXTINF:-1,[000] Movistar TV - Promocional
rtp://@239.0.0.77:8208
#EXTINF:-1,[001] La 1
rtp://@239.0.0.76:8208
#EXTINF:-1,[002] La 2
rtp://@239.0.0.2:8208
#EXTINF:-1,[003] Antena 3
rtp://@239.0.0.3:8208
#EXTINF:-1,[004] Cuatro
rtp://@239.0.0.4:8208
@LuisPalacios
LuisPalacios / gist:1a2bc5a354537857a524d9e7375af0c0
Created May 28, 2021 07:28
Canales en format HTTP Movistar TV en 2014 (Ref: "Router Linux para Movistar" - https://www.luispa.com/tv/2014/10/05/router-linux.html)
#EXTINF:-1,[000] Movistar TV - Promocional
http://192.168.1.1:4022/udp/239.0.0.77:8208
#EXTINF:-1,[001] La 1
http://192.168.1.1:4022/udp/239.0.0.76:8208
#EXTINF:-1,[002] La 2
http://192.168.1.1:4022/udp/239.0.0.2:8208
#EXTINF:-1,[003] Antena 3
http://192.168.1.1:4022/udp/239.0.0.3:8208
#EXTINF:-1,[004] Cuatro
http://192.168.1.1:4022/udp/239.0.0.4:8208