Skip to content

Instantly share code, notes, and snippets.

View marioaugustorama's full-sized avatar

Mário Nunes marioaugustorama

  • Zello Tecnologia
  • Brasília, DF
  • 03:22 (UTC -03:00)
View GitHub Profile
@marioaugustorama
marioaugustorama / archived.md
Created December 19, 2023 00:56 — forked from nevack/archived.md
[ARCHIVED] Fix for CSR Dongle 0a12:0001 ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

This gist is currenctly archived.

Please refer to previous revisions if you know what to do.

The patch proposed was merged into kernel in 5.8 release, but no longer working as of linux 5.11

@marioaugustorama
marioaugustorama / gist:9689fcfa48f7ad76190a8f794a73eca4
Last active February 11, 2022 14:30
How to resolve wazuh ( cluster currently has [1000]/[1000] maximum shards open) error message
Using a workaround method,
Run: curl -X PUT localhost:9200/_cluster/settings -H "Content-Type: application/json" -d '{ "persistent": { "cluster.max_shards_per_node": "3000" } }'
This will increase the shards limit to 3k.
@marioaugustorama
marioaugustorama / cloud_init.yaml
Created August 4, 2021 17:55 — forked from HighwayofLife/cloud_init.yaml
Install Docker via Cloud Init on Ubuntu VM
#cloud-config
packages:
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common
# Enable ipv4 forwarding, required on CIS hardened machines
@marioaugustorama
marioaugustorama / wxWidgets3_Hello_World_Ubuntu_18_CMake.md
Created December 24, 2020 02:34 — forked from patrickmoffitt/wxWidgets3_Hello_World_Ubuntu_18_CMake.md
Step-by-step instructions for installing wxWidgets 3.0 and CMake on Ubuntu 18 for the purpose of building and running the Hello World! demo application.

How to Build wxWidgets 3.0 Hello World! on Ubuntu 18 with CMake

Install wxWidgets 3.0

sudo apt-get update
sudo apt-get full upgrade
sudo apt install wx-common wx3.0-doc wx3.0-examples wx3.0-headers wx3.0-i18n \
cmake libwxbase3.0-dev libwxbase3.0-dev libwxgtk-media3.0-dev \
libwxgtk-media3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libwxgtk3.0-dev \
libwxgtk3.0-gtk3-dev libwxsqlite3-3.0-dev libcanberra-gtk-dev \
@marioaugustorama
marioaugustorama / remove_passphrase.sh
Created July 1, 2020 17:06
Remove senha de arquivo pfx
#!/bin/bash
infile=$1
password=$2
outfile=$3
if [ -z "$infile" ]
then
echo "Argument not present"
echo "Usage $0 [input_certificate.pfx] [passphrase] [output_certificate.pfx]"
@marioaugustorama
marioaugustorama / node_exporter.default
Created June 8, 2018 03:50 — forked from eloo/node_exporter.default
Init.d script for prometheus node exporter
# Set the command-line arguments to pass to the server.
ARGS='-web.listen-address=:9100 -collector.diskstats.ignored-devices="^(ram|loop|fd)\\d+$"'
# Prometheus-node-exporter supports the following options:
# -collector.diskstats.ignored-devices="^(ram|loop|fd|(h|s|v|xv)d[a-z])\\d+$": Regexp of devices to ignore for diskstats.
# -collector.filesystem.ignored-mount-points="^/(sys|proc|dev)($|/)": Regexp of mount points to ignore for filesystem collector.
# -collector.ipvs.procfs="/proc": procfs mountpoint.
# -collector.megacli.command="megacli": Command to run megacli.
# -collector.ntp.server="": NTP server to use for ntp collector.
# -collector.textfile.directory="": Directory to read text files with metrics from.
@marioaugustorama
marioaugustorama / Conversion.bat
Created May 12, 2018 21:27 — forked from andrewabest/Conversion.bat
Convert a crt + p7b (from godaddy) to pfx
echo off
:: download OpenSSL if you don't have it for the below
:: Conver the p7b into PEM format
openssl pkcs7 -in mydomain.p7b -print_certs -out mydomain.pem
:: Combine this with the crt server certificate and private key into a PFX
openssl pkcs12 -export -in mydomain.crt -inkey mydomain.key -certfile mydomain.pem -out mydomain.pfx
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db