Skip to content

Instantly share code, notes, and snippets.

G3n1ls0nM3ss K4bl0-Skat3R

Block or report user

Report or block K4bl0-Skat3R

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
K4bl0-Skat3R / pf.conf
Created Oct 9, 2017 — forked from rosstimson/pf.conf
Basic FreeBSD PF firewall for web server - /etc/pf.conf
View pf.conf
# vim: set ft=pf
# /etc/pf.conf
webports = "{http, https}"
int_tcp_services = "{domain, ntp, smtp, www, https, ftp}"
int_udp_services = "{domain, ntp}"
set skip on lo
View gist:ae28004b3fce78a13c7e248ed582aac6
# basic pfctl control
# ==
# Related:
# Last update: Tue Dec 28, 2004
# ==
# Note:
# this document is only provided as a basic overview
# for some common pfctl commands and is by no means
# a replacement for the pfctl and pf manual pages.
def soma_matrizes(A, B):
soma = [[A[i][j] + B[i][j] for j in range(len(B[0]))]
for i in range(len(A))]
return soma if soma_possivel(A, B) else "As matrizes nao sao nxn"
def mult_matrizes(A, B):
mult = [[sum(A[i][k] * B[k][j] for k in range(len(B)))
for j in range(len(B[0]))] for i in range(len(A))]
return mult if mult_possivel(A, B) else "Operacao nao eh possivel"
You can’t perform that action at this time.