Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am sfstpala on github.
  • I am sfs (https://keybase.io/sfs) on keybase.
  • I have a public key whose fingerprint is 1D8A 9756 CBC9 F920 F12D C47C BA9C F6A6 4D55 AB1B

To claim this, I am signing this object:

import random
random = random.SystemRandom()
def naive_is_prime(n):
if n <= 1:
return False
if n == 2:
@sfstpala
sfstpala / main.cf
Created April 28, 2017 08:36
Postfix config
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
myorigin = /etc/mailname
mydestination = {{ mailname }}
relayhost =
mynetworks = {{ networks | join(' ') }} 127.0.0.0/8 [::1]/128 [fe80::]/64
mailbox_size_limit = 0
recipient_delimiter = +
Instance Overview
Info
Name
hello
ID
4d7809a7-af4f-4809-84e2-3ead149a0cac
Status
Error
Availability Zone
nova
@sfstpala
sfstpala / gpg_sign.py
Created May 26, 2013 22:29
GPG Signatue with python3-gpgme
#!/usr/bin/python3
import io
import gpgme
def sign(filename):
context = gpgme.Context()
context.armor = True
context.signers = tuple(i for i in context.keylist() if i.can_sign)