Skip to content

Instantly share code, notes, and snippets.

View ciro-mota's full-sized avatar

Ciro Mota ciro-mota

View GitHub Profile
@murder
murder / iptables.md
Last active February 5, 2022 19:05
Configuração iptables OCI

Liberação portas

Caso não queira ler as notas, você pode ir diretamente para a solução aqui

O propósito dessa pequena anotação é a remoção de regras padrões no iptables disponível como padrão nas imagens Canonical Ubuntu da Oracle Cloud

Como funciona o iptables ?

@bentodaniel
bentodaniel / setup_win.bat
Last active October 5, 2023 20:34
Batch scripts using Chocolatey to quickly install windows packages
:: This script installs Chocolatey and some programs
@echo off
cls
set $choco_install=Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
set $program_install=choco install
set $upgrade_install=choco upgrade all
set $programs=googlechrome git vscode sublimetext3 discord k-litecodecpackfull
@tvidal-net
tvidal-net / ls.awk
Last active May 14, 2022 17:02
A simple awk script to add color and file-type emoji to `ls -l`
#!/usr/bin/awk -f
# Usage:
# - create a function like the one below and add it to your .rc file
# lsx () { ls -l --file-type --color=always $* | awk -f /path/to/ls.awk; }
# emoji reference
# https://apps.timwhitlock.info/emoji/tables/unicode
BEGIN {