Delete all your rules and reset iptables.
My /etc/iptables/iptables.conf :
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p icmp -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
| describe("Testing something.", () => { | |
| describe("Testing something", () => { | |
| let val; | |
| before(async () => { | |
| val = await something(); | |
| }); | |
| it("shouldn't be null", () => { | |
| assert(something !== null); | |
| }) |
| function calc(a: number): Result<string, string> { | |
| if (a !== 0) { | |
| return Some("thing") | |
| } else { | |
| return Err("a cannot be zero") | |
| } | |
| } | |
| let result = calc(0) | |
| if(result.error) { |
Delete all your rules and reset iptables.
My /etc/iptables/iptables.conf :
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p icmp -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
Nagyon sok dolog hiányzik belőle, szigorúan csak 1 principal-re vonatkoztattam! Ezek nem bevett szokások! A bevett szokás az hogy felrakunk egy framework-öt.
Kezdésként vegyünk egy oldalt, ahol minden kívánt funkciót, az elérési úton lévő php fájlban implementáltak, pl:
Más fájlok nincsenek egyenlőre.
| /** | |
| * @author Dávid Biró <dbiro97@gmail.com> | |
| * @module Math | |
| * @license MIT | |
| */ | |
| export default class Vector { | |
| /** | |
| * | |
| * @param {number} x |
| import subprocess | |
| import re | |
| import math | |
| regex = r".*Optional Deps\s*:(.*)\|\|\|Required By" | |
| def getOptDepsFor(lib): | |
| out = subprocess.run(["pacman","-Qi",lib], capture_output=True) | |
| out = out.stdout.decode("utf-8").replace("\n","|||").replace("\r","") | |
| match = re.match(regex, out) | |
| if match: |