Skip to content

Instantly share code, notes, and snippets.

View edufolly's full-sized avatar

Eduardo Folly edufolly

View GitHub Profile
@edufolly
edufolly / order-tests-install.sh
Created May 4, 2024 19:35
Script to install order-tests.
#!/bin/sh
filename="order-tests-linux.tar.gz"
latest=$(curl --silent --fail https://api.github.com/repos/edufolly/order_tests/releases/latest)
url=$(jq -r '.assets[] | select(.name == "order-tests-linux.tar.gz").browser_download_url' <<< $latest)
curl --silent --fail --remote-name --location "$url"
@edufolly
edufolly / configurar-host-flashman-docker.sh
Last active February 15, 2024 16:53
Configurar Host Flashman Docker
#!/bin/bash
#Configura host para execução do Flashman via Docker
VERSAO=2024021501
#2024021501 - Atualizado o portainer agent para 2.19.4
#2023112601 - Adicionando parametro de use-vc para uso de TCP em resolucoes de DNS no host
#2023082401 - Adicionando trecho para silenciamento dos logs de erro do docker
#2023072105 - Movendo o trecho que habilita o ufw para antes de bloquear as portas [5]7547. o comando de deny retorna erro quando ufw está disabled
#2023072104 - Consertando if que checa se rede ingress já existe
#!/bin/bash
set -x
apt remove -y --purge snapd
apt autoremove -y
rm -rf ~/snap
@edufolly
edufolly / analysis_options.yaml
Last active February 10, 2023 22:03
Heaviest (less permissive) Flutter Linter Rules
include: package:flutter_lints/flutter.yaml
analizer:
strong-mode:
implicit-casts: false
linter:
# https://dart-lang.github.io/linter/lints/index.html.
rules:
# Errors
@edufolly
edufolly / my_camera.dart
Created February 9, 2021 11:04
My Camera
import 'dart:io';
import 'package:camera/camera.dart';
import 'package:path_provider/path_provider.dart';
class MyCamera {
///
///
///
@edufolly
edufolly / svg2icns.sh
Last active January 7, 2021 01:16 — forked from adriansr/svg2icns.sh
Convert SVG file to macOS icon (icns) format
#!/bin/sh -x
set -e
SIZES="
16,16x16
32,16x16@2x
32,32x32
64,32x32@2x
128,128x128