MacOS Sierra High comes with preinstalled postfix. Follow these steps to configure it on a local system:
sudo nano /etc/postfix/sasl_passwd- Add this to the file
| <style id="fslightbox-customizations"> | |
| a.open-gallery > img { | |
| width: 80%; | |
| max-width: 745px; | |
| border: 3px dashed white; | |
| } | |
| .fslightbox-container { | |
| background: black; | |
| } | |
| </style> |
| #!/usr/bin/env bash | |
| CIPHERS='ALL:eNULL' | |
| DELAY=${2:-0.1} | |
| SERVER=${1:?usage: $0 <host:port> [delay, default is ${DELAY}s] [ciphers, default is ${CIPHERS}]} | |
| MAXLEN=$(openssl ciphers "$CIPHERS" | sed -e 's/:/\n/g' | awk '{ if ( length > L ) { L=length} }END{ print L}') | |
| echo Using $(openssl version). | |
| declare -A TLSMAP=( [tls1_1]=cipher [tls1_2]=cipher [tls1_3]=ciphersuites ) |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Getting Started using the Destiny 2 Api | |
| An annotated guide to some of the public endpoints available for examining a user's | |
| characters, items, and clan using the Destiny 2 API. You will need to use your api key for | |
| this to work. Just insert it as a string where it says <my_api_key> in the beginning. | |
| It is broken into four parts: | |
| 0: Imports, variables, and fixed parameters defined |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| <?php | |
| /* | |
| Objetivo criar uma chave serial para cada dominio. O script pega a chave gerada e compara com o $_SERVER['HTTP_HOST'] | |
| */ | |
| //link do demo do gen: http://onestepcheckout.com.br/LojaModelo/keygen/ | |
| //linha para ser add nas paginas que serao bloqueadas |
| var os = require("os"); | |
| var exec = require('child_process').exec; | |
| function sysLog(){ | |
| //exec('clear', sysLog); | |
| var cpus = os.cpus(); | |
| for(var i = 0, len = cpus.length; i < len; i++) { | |
| var cpu = cpus[i], total = 0, processTotal = 0, strPercent = ''; |
| var YY = 2012; | |
| var MM = 12; | |
| var DD = 3; | |
| var HH = 14; | |
| var MI = 5; | |
| var SS = 0; | |
| function atualizaContador() { | |
| var hoje = new Date(); | |
| var futuro = new Date(YY,MM-1,DD,HH,MI,SS); |
| <?php | |
| function limitarTexto($texto, $limite){ | |
| $texto = substr($texto, 0, strrpos(substr($texto, 0, $limite), ' ')) . '...'; | |
| return $texto; | |
| } | |
| // String a ser limitada | |
| $string = 'Como limitar caracteres sem cortar as palavras com PHP'; | |
| // Mostrando a string limitada em 25 caracteres. |