install packages first:
yay -S xl2tpd strongswan networkmanager-l2tp
ref: https://wiki.archlinux.org/index.php/Openswan_L2TP/IPsec_VPN_client_setup
# pip install docker | |
import docker | |
from sys import argv | |
cli = docker.APIClient(base_url='unix://var/run/docker.sock') | |
images = cli.images() | |
image_id = argv[-1] |
#!/bin/bash | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
TICKET="${BRANCH_NAME##*/}" | |
EXP='^[0-9]+$' | |
if [ -n "$BRANCH_NAME" ] && [[ $TICKET =~ $EXP ]]; then | |
sed -i.bak -e "1s/^/[ DSO-$TICKET ] - /" $1 | |
fi |
#!/bin/bash | |
git filter-branch --env-filter ' | |
WRONG_EMAIL="[email protected]" | |
NEW_NAME="Your Name" | |
NEW_EMAIL="[email protected]" | |
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ] | |
then | |
export GIT_COMMITTER_NAME="$NEW_NAME" |
#!/bin/bash | |
# | |
# Autor: Aristides Neto | |
# Email: [email protected] | |
# | |
# Data: 11/03/2023 | |
# | |
# Realiza o backup de bancos de dados MySQL | |
# Sincroniza com o S3 da AWS | |
# |
install packages first:
yay -S xl2tpd strongswan networkmanager-l2tp
ref: https://wiki.archlinux.org/index.php/Openswan_L2TP/IPsec_VPN_client_setup
// Gera o arquivo XML do sitemap | |
$xml = '<?xml version="1.0" encoding="UTF-8"?> | |
<urlset | |
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 | |
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> | |
<url> | |
<loc>'.HOME.'</loc> | |
<lastmod>'.$date.'</lastmod> |
[DEFAULT] | |
# Adicione IPs internos e o DNS do Google na lista de redes confiaveis | |
ignoreip = 127.0.0.0/8 10.0.0.0/8 8.8.8.8 103.21.244.0/22 103.22.200.0/22 103.31.4.0/22 104.16.0.0/12 108.162.192.0/18 131.0.72.0/22 141.101.64.0/18 162.158.0.0/15 172.64.0.0/13 173.245.48.0/20 188.114.96.0/20 190.93.240.0/20 197.234.240.0/22 198.41.128.0/17 199.27.128.0/21 | |
# Caso utilize o ManageWP terá que adicionar os IPs deles na WhiteList também (após o último IP na lista acima acrescente um espaço em branco e cole estes endereços): | |
# 35.162.254.253 52.11.12.231 52.11.29.70 52.11.54.161 52.24.142.159 52.25.191.255 52.27.181.126 52.34.126.117 52.34.254.47 52.35.82.99 52.36.28.80 52.38.106.97 52.39.177.152 52.41.230.148 52.41.237.12 52.42.126.166 52.43.13.71 52.43.76.224 52.88.96.110 52.89.155.51 54.148.73.118 54.186.37.105 54.187.92.57 54.191.32.65 54.191.67.23 54.191.80.119 54.191.135.209 54.191.136.176 54.191.137.17 54.191.148.85 54.191.149.8 52.26.122.21 52.24.187.29 52.89.85.107 54.186.128.167 54.191.40.136 52.24.62.11 5 |
#!/bin/bash | |
# | |
# Autor: Aristides Neto | |
# Email: [email protected] | |
# | |
# Data: 09/06/2019 | |
# | |
# Realiza o backup de bancos de dados MySQL | |
# |
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |