Skip to content

Instantly share code, notes, and snippets.

😀
I may be slow to respond.

Lucas Saliés Brum sistematico

😀
I may be slow to respond.
View GitHub Profile
@sistematico
sistematico / estados-cidades.json
Created Jul 1, 2020 — forked from letanure/estados-cidades.json
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
View estados-cidades.json
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
View keybase.md

Keybase proof

I hereby claim:

  • I am sistematico on github.
  • I am sistematico (https://keybase.io/sistematico) on keybase.
  • I have a public key whose fingerprint is 12E1 0A59 DB3D 541C AA98 DCBC 31BF 87E1 A576 43B2

To claim this, I am signing this object:

@sistematico
sistematico / github.sh
Created May 19, 2020
Github automatic clone & pull
View github.sh
#!/usr/bin/env bash
#
# github - Script para receber automaticamente as mudanças feitas no Github
# LEMBRE-SE DE CONFIGURAR CORRETAMENTE SEU GIT SEM SENHA!!!
#
# Desenvolvido por Lucas Saliés Brum <lucas@archlinux.com.br>
#
# Sugestão de crontab:
# * * * * * sh -c "/usr/local/bin/github.sh" > /dev/null 2>&1
#
@sistematico
sistematico / README.md
Created Dec 23, 2019 — forked from eric1234/README.md
Protect page with simple password
View README.md

Purpose

Unauthorized access to a PHP page prompts the user for a password. Once the password is entered the original page will show.

Features

  • The access is recorded in the session so it only needs to be
View keybase.md

Keybase proof

I hereby claim:

  • I am sistematico on github.
  • I am sistematico (https://keybase.io/sistematico) on keybase.
  • I have a public key ASDCBeInhaJletveY7V-E_v5cdhGnb0Q5rUh0pMm3abbjwo

To claim this, I am signing this object:

@sistematico
sistematico / installing_virt_manager.md
Created Dec 18, 2019 — forked from diffficult/installing_virt_manager.md
Easy instructions to get virt-manager qemuv/kvm running on Arch
View installing_virt_manager.md

Easy instructions to get QEMU/KVM and virt-manager up and running on Arch

  1. Make sure your cpu support kvm with below command:

     grep -E "(vmx|svm)" --color=always /proc/cpuinfo
    
  2. Make sure BIOS have enable “Virtualization Technology”.

  3. User access to /dev/kvm so add your account into kvm(78) group:

@sistematico
sistematico / update-images.sh
Created Nov 29, 2019 — forked from ColinLeverger/update-images.sh
Update all Docker images
View update-images.sh
docker images | grep -v REPOSITORY | awk '{print $1}' | xargs -L1 docker pull
@sistematico
sistematico / callback.php
Last active Nov 6, 2019
XMLHttpRequest Examples
View callback.php
<?php
$array = array(
array('texto'=>'Olá ' . $_POST['nome'] . '!'),
array('texto'=>'Bem-vindo(a) ' . $_POST['nome']),
array('texto'=>'Tudo bem ' . $_POST['nome'])
);
echo json_encode($array);
@sistematico
sistematico / radio.liq
Last active Oct 17, 2019
LiquidSoap Example
View radio.liq
#!/usr/bin/liquidsoap
# Sem pedidos...
set("log.file.path","/tmp/liquidsoap.log")
#set("log.stdout", true)
set("harbor.bind_addr","0.0.0.0")
def crossfade(a,b)
add(normalize=false,[sequence([blank(duration=5.),fade.initial(duration=9.,b)]),fade.final(duration=9.,a)])
end
@sistematico
sistematico / Conexao.php
Created Apr 19, 2019 — forked from alxbbarbosa/Conexao.php
Apresentação do código de exemplo MVC para o Blog
View Conexao.php
<?php
class Conexao
{
private static $conexao;
private function __construct()
{}
public static function getInstance()
You can’t perform that action at this time.