Skip to content

Instantly share code, notes, and snippets.

View sjmuniz's full-sized avatar

Sebastian Javier sjmuniz

  • Mar del plata, Argentina
View GitHub Profile
@sjmuniz
sjmuniz / reclaimWindows10.ps1
Last active September 15, 2021 01:29 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@sjmuniz
sjmuniz / remeras
Created August 16, 2019 03:15
Ideas para Remeras
- Tomorrow (noun): A magical place where 99% of all human productivity, motivation, and achievement is stored
@sjmuniz
sjmuniz / docker-compose.yaml
Created August 16, 2019 02:43
pi-hole ServerIP set.
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"
@sjmuniz
sjmuniz / docker-compose.yaml
Created August 16, 2019 02:43
pi-hole ServerIP not set.
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"
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.
@sjmuniz
sjmuniz / cult_of_ignorance.md
Created April 22, 2019 04:48 — forked from conspect/cult_of_ignorance.md
A Cult Of Ignorance, Isaac Asimov

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

@sjmuniz
sjmuniz / autossh.service
Last active November 27, 2017 04:01 — forked from thomasfr/autossh.service
Systemd service for autossh
[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
@sjmuniz
sjmuniz / check_routingpolicy.sh
Last active November 27, 2017 02:07
Simple policy routing check to use with Network Manager.
#!/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.
@sjmuniz
sjmuniz / gist:5033ad65e7ea69259f2d890d6a5b93d7
Created July 8, 2017 04:07
autossh para remote access con remoteforward.
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