I hereby claim:
- I am fboaventura on github.
- I am fboaventura (https://keybase.io/fboaventura) on keybase.
- I have a public key whose fingerprint is 9BE3 AF3E 474E ACAB A98D C461 D43F 8C0E A119 95AA
To claim this, I am signing this object:
/** | |
* Teste de posicionamento | |
*/ | |
#box1 { | |
color: white; | |
background: linear-gradient(45deg, #def, navy); | |
width: 10em; | |
height: 5em; | |
border: 1px black solid; |
I hereby claim:
To claim this, I am signing this object:
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.sock mode 660 level admin | |
stats timeout 30s | |
user haproxy | |
group haproxy | |
daemon | |
maxconn 2048 |
This is a sequel to "Postfix: relay to authenticated SMTP".
I would like to send mail from two different Gmail accounts using Postfix. Here is the relevant section in the Postfix documentation: Configuring Sender-Dependent SASL authentication.
As a concrete example, here's how to set up two Gmail accounts (only relevant sections of the config files are listed below):
/etc/postfix/main.cf:
# sender-dependent sasl authentication
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/bash | |
QTVER="5" | |
emerge -avu1 $(qlist -IvC dev-qt/ | grep ${QTVER}. | sed s/-${QTVER}.*//) |
<IfModule mod_proxy.c> | |
ProxyPass /.well-known/acme-challenge ! | |
</IfModule> | |
Alias /.well-known/acme-challenge /var/www/html/.well-known/acme-challenge | |
<Directory "/var/www/html/.well-known/acme-challenge"> | |
Options None | |
AllowOverride None | |
AddDefaultCharset off |
"""a tutorial example of A CLI module using an argparse.Action class instance to find all files in a directory tree | |
""" | |
from argparse import Action, ArgumentParser | |
from sys import argv, stderr, stdout | |
from os import _exit, scandir | |
from os.path import exists, isdir | |
__VERSION__ = "1.0.0" |
#!/usr/bin/bash | |
## Run every 24h via cron | |
## Old entries will time out later automatically | |
( | |
cd /var/lib/firewall | |
wget -qN 'http://www.spamhaus.org/drop/drop.txt' | |
ipset create -exist spamhaus_drop hash:net counters timeout 90000 comment |
""" | |
Whois client for python | |
transliteration of: | |
http://www.opensource.apple.com/source/adv_cmds/adv_cmds-138.1/whois/whois.c | |
Copyright (c) 2010 Chris Wolf | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal |