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/python3 | |
import sys | |
import subprocess | |
def execute(command): | |
subprocess.check_call(command, shell=True, stdout=sys.stdout, stderr=subprocess.STDOUT) | |
narg = len(sys.argv) |
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
# Create Backup | |
sudo cp /var/snap/docker/common/var-lib-docker/network/files/local-kv.db /tmp/local-kv.db | |
# Remove config file | |
sudo rm /var/snap/docker/common/var-lib-docker/network/files/local-kv.db | |
# Set new network bridge | |
sudo printf '{\n "bip": "172.18.0.1/16",\n "ipv6": false,\n "fixed-cidr": "172.18.0.1/24"\n}\n' > /etc/docker/daemon.json | |
# Restart system | |
sudo systemctl restart docker | |
# Verify Network | |
ip a |
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
import requests | |
from bs4 import BeautifulSoup as bs | |
from urllib.parse import unquote as udecode | |
from tqdm import tqdm | |
import os | |
from argparse import ArgumentParser | |
class Download: | |
def __init__(self): |
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
# Ruby way for python | |
# By [email protected] | |
from datetime import datetime | |
import types | |
class Dynamic: | |
@staticmethod |
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
### | |
## Writed By [email protected] | |
### | |
import json | |
class Object: | |
pass | |
class Pyo(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
# theme | |
https://gitlab.com/spass/toffee-xfwm-theme | |
# info | |
Theme: Xfce-dawn [GTK2], Adwaita [GTK3] | |
Icons: Newaita [GTK2], Adwaita [GTK3] | |
Clock: Conky |
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
# show all routes | |
ip route | |
# add route | |
ip route add [network/mask] dev [interface] | |
ip route add 192.168.0.0/24 dev ens33 | |
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
# Listar todas las zonas | |
firewall-cmd --list-all-zones |more | |
# Listar servicios | |
firewall-cmd --list-services | |
# Mostrar informacion de un servicio |
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
# example with ens33 interface | |
# down interface | |
ifdown ens33 | |
# set static ip netmask network | |
nano /etc/sysconfig/network-scripts/ifcfg-ens33 | |
# append and save | |
DEVICE=ens33 |
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
import { Injectable } from '@angular/core'; | |
import { HttpClient } from '@angular/common/http' | |
import { HttpHeaders } from '@angular/common/http'; | |
import { Autenticar } from './Autenticar' | |
import { Observable } from 'rxjs'; | |
export interface Config { | |
heroesUrl: string; |
NewerOlder