Skip to content

Instantly share code, notes, and snippets.

@r4phf43l
r4phf43l / sprintf.js
Last active November 8, 2020 01:17 — forked from rmariuzzo/sprintf.js
Simple and minimal `sprintf` function in JavaScript.
const sprintf = ( format, ...args ) => ( i = 0, format.replace( /%s/g, () => args[i++] ) );
{
"UF": [
{"nome": "Acre", "sigla": "AC"},
{"nome": "Alagoas", "sigla": "AL"},
{"nome": "Amapá", "sigla": "AP"},
{"nome": "Amazonas", "sigla": "AM"},
{"nome": "Bahia", "sigla": "BA"},
{"nome": "Ceará", "sigla": "CE"},
{"nome": "Distrito Federal", "sigla": "DF"},
{"nome": "Espírito Santo", "sigla": "ES"},
@r4phf43l
r4phf43l / facebok ip list
Created September 14, 2021 13:59 — forked from Whitexp/facebok ip list
facebook ip list
31.13.24.0/21
31.13.64.0/19
31.13.64.0/24
31.13.69.0/24
31.13.70.0/24
31.13.71.0/24
31.13.72.0/24
31.13.73.0/24
31.13.75.0/24
31.13.76.0/24
@r4phf43l
r4phf43l / update-glpi.sh
Last active February 19, 2024 15:23
Update GLPI
#!/bin/bash
echo "INICIANDO A ATUALIZACAO"
rm -r update-glpi/*
mkdir update-glpi
echo "BACKUP DOS ARQUIVOS"
mv $(echo * | sed s:update-glpi::g) update-glpi
echo "APAGANDO ARQUIVOS DA INSTALACAO ANTERIOR"
find . -maxdepth 1 -not -name 'update-glpi*' -delete
echo "BAIXANDO A ULTIMA VERSAO"
wget https://github.com/glpi-project/glpi/releases/download/10.0.12/glpi-10.0.12.tgz