Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 1: Drop invalid packets ### | |
/sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP | |
### 2: Drop TCP packets that are new and are not SYN ### | |
/sbin/iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP | |
### 3: Drop SYN packets with suspicious MSS value ### | |
/sbin/iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP | |
### 4: Block packets with bogus TCP flags ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- OverloadedStrings is often useful. | |
:set -XOverloadedStrings | |
-- Scoped type variables is often useful so we can specify the types | |
-- of variables (for example, in lambda expressions). | |
:set -XScopedTypeVariables | |
-- useful for import from specified package | |
:set -XPackageImports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function validaCPF($cpf) { | |
// Extrai somente os números | |
$cpf = preg_replace( '/[^0-9]/is', '', $cpf ); | |
// Verifica se foi informado todos os digitos corretamente | |
if (strlen($cpf) != 11) { | |
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import asyncio | |
import subprocess | |
import importlib | |
import sys | |
from dotenv import load_dotenv | |
from lionagi import Session | |
from e2b_code_interpreter import CodeInterpreter | |
from llama_index.core import ( | |
VectorStoreIndex, |
Anydesk doesn't support and doesn't work on Jetson Nano (aarch64). So you will need to install VNC, the easiest and fastest is to install the X2Go server. NoMachine, TeamViewer, AnyDesk, OpenVino, VNC, RDP, XRDP, Remote access for Jetson Nano / Xavier.
sudo apt update
sudo apt upgrade
sudo apt install openssh-server vim git gcc g++ net-tools
sudo apt-get install xubuntu-desktop
(selectlightdm
)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# CloneConvert.FCMacro | |
# Cree un clone ou une copie de l'objet ou des objets selectionne(s) et le met e l'echelle de la grandeur choisie | |
# utilisation : lancer CloneConvert selectionnez un objet choisissez la grandeur et cliquez sur OK | |
# | |
# Creates a clone of one copy the selected object and updates the selected size range | |
# use: start CloneConvert select an object choose the size and click OK | |
# | |
#OS: Windows 10 (10.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
font-family: oxygen, sans-serif; | |
font-size: 16px; | |
max-width: 78rem; | |
background-color: rgb(253, 253, 253); | |
color: rgb(0, 0, 0); | |
} | |
.background-logo { | |
width: 100%; |
NewerOlder