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.
Block or report user

Report or block sistematico

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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()
@sistematico
sistematico / pdo-wrapper.php
Created Apr 12, 2019 — forked from eimg/pdo-wrapper.php
Simple yet secure PHP PDO database wrapper with CRUD methods...
View pdo-wrapper.php
<?php
# PDO Wrapper, supporting MySQL and Sqlite
# Usage:
# $db = new db();
#
# // table, data
# $db->create('users', array(
# 'fname' => 'john',
# 'lname' => 'doe'
# ));
View default.conf
server {
listen 80;
listen [::]:80;
server_name lucasbrum.net *.lucasbrum.net;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
You can’t perform that action at this time.