#!/usr/bin/env bash | |
# install docker | |
# https://docs.docker.com/engine/installation/linux/ubuntulinux/ | |
# install docker-compose | |
# https://docs.docker.com/compose/install/ | |
# install letsencrypt | |
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 |
La idea es tener un tunel de acceso a un vps o servidor remoto usando un remoteforward. | |
Este ejemplo es con upstart porque tengo un ubuntu 14.x para 16.x hay que hacer lo mismo con systemd (fuera del scope de este gist) | |
Server laptop | |
1-ssh >----4444----> | |
2 configura un remoteforward, ej tcp/2200 | |
3 <----2200----< ssh -p 2200 user@localhost | |
4 Profit! | |
En el server logeados con el usuario serveruser (de administracion) configuramos: | |
$ sudo apt install y autossh |
#!/bin/bash | |
#Since I couldn't find a nice way to add these rules into ubuntu Network manager in order to maintain a simple policy routing, | |
#I wrote this. I am realy sorry about it but it works. | |
#Original ideas came from: https://blog.scottlowe.org/2013/05/29/a-quick-introduction-to-linux-policy-routing/ | |
#Add it to cron as: | |
# */30 * * * * /home/user/check.sh | |
#Make sure you can passwordless sudo - su or it will fail. | |
#This horrible hack checks if there are rules for TO and FROM. | |
#It also verifies if the "custom" route is present and if not it will be added. | |
# TOADDR is resolved from DNS because most likely it will be an external host and bound to change. |
[Unit] | |
Description=Keeps a tunnel to 'remote.example.com' open | |
After=network-online.target ssh.service | |
[Service] | |
Environment="AUTOSSH_DEBUG=1" | |
# User=autossh | |
# -p [PORT] | |
# -l [user] | |
# -M 0 --> no monitoring |
It's hard to quarrel with that ancient justification of the free press: "America's right to know." It seems almost cruel to ask, ingeniously, "America's right to know what, please? Science? Mathematics? Economics? Foreign languages?"
None of those things, of course. In fact, one might well suppose that the popular feeling is that Americans are a lot better off without any of that tripe.
There is a cult of ignorance in the United States, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way throughout political and cultural life, nurtured by the false notion that democracy means that "my ignorance is just as good as your knowledge."
Politicians have routinely striven to speak the language of Shakespeare and Milton as ungrammaticaly as possible in order to avoid offending their audiences by appearing to have gone to school. Thus, Adlai Stevenson, who incautiously allowed intelligence and learning and wit to peep out of his speeches, found the American people
Un culto a la ignorancia, Isaac Asimov, 1980. | |
--------------------------------------------- | |
Es difícil lidiar con esa antigua justificación de la prensa libre: "América tiene derecho de a saber". Parece casi cruel preguntar, ingeniosamente, "¿América tiene derecho a saber qué, por favor? ¿Ciencias? ¿Matemáticas? ¿Economía? ¿Lenguas extranjeras?" | |
Ninguna de esas cosas, por supuesto. De hecho, uno podría suponer que el sentimiento popular es que los estadounidenses están mucho mejor sin nada de eso. | |
Hay un culto a la ignorancia en los Estados Unidos, y siempre lo ha habido. La tensión del antiintelectualismo ha sido un hilo constante que se abre camino a lo largo de la vida política y cultural, alimentada por la falsa noción de que democracia significa que "mi ignorancia es tan buena como su conocimiento". | |
Los políticos se han esforzado rutinariamente por hablar el lenguaje de Shakespeare y Milton de la manera menos gramatical posible para evitar ofender a sus audiencias al parecer que han ido a la escuela. |
version: "3" | |
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ | |
services: | |
pihole: | |
container_name: pihole | |
image: pihole/pihole:latest | |
network_mode: host | |
# ports: | |
# - "53:53/tcp" |
version: "3" | |
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ | |
services: | |
pihole: | |
container_name: pihole | |
image: pihole/pihole:latest | |
network_mode: host | |
# ports: | |
# - "53:53/tcp" |
- Tomorrow (noun): A magical place where 99% of all human productivity, motivation, and achievement is stored |