This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SETUP DNSCRYPT - Arch Linux | |
--- | |
STEP 1 | |
Install DNSCRYPT using your package manager or compiling from source. | |
STEP 2 | |
Configure the file `/etc/dnscrypt-proxy/dnscrypt-proxy.toml`, add your own public/private DNS, | |
enable logs, etc.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require "app/config.php"; | |
require "templates.php"; | |
$tablename = ''; | |
$tabledisplay = ''; | |
$columnname = '' ; | |
$columndisplay = ''; | |
$columnvisible = ''; | |
$index_table_rows = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# HowTo: before use the script be sure to run the 2 step below. | |
# 1 - Create your ssh key pair issuing this command `ssh-keygen -t rsa` | |
# 2 - Copy the pub key to your remote server issuing this command `ssh-copy-id -i ~/.ssh/id_rsa.pub user@server_ip` | |
#current datetime | |
CURDATEX=`date +%d%m%y` | |
DIRCHK1=~/Downloads/BACKUPS-PROD/www_${CURDATEX}/ | |
DIRCHK2=~/Downloads/BACKUPS-PROD/www_${CURDATEX}/DB_FILES/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** | |
* Imprimir URI usando o binario phantomjs. | |
* execute o comando `phantomjs` e o PDF vai ser gerado no seu disco, | |
* execute `pkill -9 phantomjs` para matar o processo que as vezes | |
* persiste e faz uso extensivo dos recursos do servidor. | |
* Obs.: phantomjs requer o uso de `libfontconfig`, instalacao para ubuntu | |
* `apt-get install libfontconfig` | |
* | |
* O script foi testado com servidor Debian (Jessie). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* @Title: Nfsc_21 queries. | |
* @Description: o script faz a consulta dos dados para alimentar os arquivos da Nfsc_21. | |
* @Date: 2017-05-16 | |
* @Class: Nfsc_21 | |
* @Observation: Use medoo PDO para abstracao dos dados. Site: medoo.in | |
* | |
*/ | |
require 'nfsc.21.class.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// quick and dirty argument parsing | |
foreach ($argv as $arg) { | |
if ($arg == '-f') { | |
define('FOLLOW', true); | |
} | |
if ($arg == '-h') { | |
define('HISTOGRAM', true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
// Generates a strong password of N length containing at least one lower case letter, | |
// one uppercase letter, one digit, and one special character. The remaining characters | |
// in the password are chosen at random from those four sets. | |
// | |
// The available characters in each set are user friendly - there are no ambiguous | |
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option, | |
// makes it much easier for users to manually type or speak their passwords. | |
// | |
// Note: the $add_dashes option will increase the length of the password by |