Skip to content

Instantly share code, notes, and snippets.

View NathanAlcantara's full-sized avatar
🚀
Automating everything

Nathan Alcantara NathanAlcantara

🚀
Automating everything
  • Sênior Sistemas S/A
  • Blumenau-SC
View GitHub Profile
@NathanAlcantara
NathanAlcantara / array-findById.js
Created March 11, 2022 16:56
Find object on a complex array by id
// Example object that contains a complex array (an array with object that has arrays and go on)
const json = {
type: 'AdaptiveCard',
version: '1.4',
body: [
{
type: 'Container',
items: [
{
type: 'TextBlock',
@NathanAlcantara
NathanAlcantara / start_vpn.sh
Created July 14, 2021 20:45
Script to start a vpn via openconnect;
#! /bin/bash
#####
#
# Script to start a vpn via openconnect;
#
#####
PORTAL="<DNS_OR_IP>"
USER="<USER>"
@NathanAlcantara
NathanAlcantara / change_bluetooth.sh
Created July 14, 2021 20:45
Script for Linux to change between Bluetooth devices like speaker and headphone
#! /bin/bash
#####
#
# Script for Linux to change between Bluetooth devices like speaker and headphone;
#
# You will need the Mac Address of both devices,
# just type on your terminal `bluetoothctl devices`,
# then replace the placeholder `<MAC_ADDREES>`;
#