This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dotenv import load_dotenv | |
import os | |
import asyncio | |
import socket | |
import requests | |
import datetime | |
from sqlalchemy import create_engine, Column, Integer, String, DateTime | |
from sqlalchemy.orm import sessionmaker, declarative_base | |
from telegram import ForceReply, Update | |
from telegram.ext import Application, CommandHandler, ContextTypes, MessageHandler, filters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Deter firewall | |
rcSuSEfirewall2 stop | |
# Iniciar SSH | |
rcsshd start | |
# Habilitar ip forwarding para el NAT | |
echo 1 > /proc/sys/net/ipv4/ip_forward |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rcSuSEfirewall2 stop | |
rcsshd start | |
echo 1 > /proc/sys/net/ipv4/ip_forward | |
iptables -t nat -A POSTROUTING -o p4p2 -j MASQUERADE | |
brctl addbr caasp | |
ip addr add 10.10.20.2/24 brd 10.10.20.255 dev caasp | |
ip link set caasp up | |
sh -c "echo 'options kvm-intel nested=y' >> /etc/modprobe.d/dist.conf" | |
cat /sys/kernel/mm/ksm/run | |
echo 1 > /sys/kernel/mm/ksm/run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am borre on github. | |
* I am borre (https://keybase.io/borre) on keybase. | |
* I have a public key ASDjkZMqvF4Ilres5wwcElRQwFYwSJoMammv0dMyLay5Gwo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#@author Eduardo Hernández <borre@linuxmerida.org> | |
for file in $( ls ); do | |
convert "$file" -resize 50x46\! "$file" | |
echo "converting : " "$file" | |
done | |
echo “Listo! |