Open ~/.bash_profile
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {
#!/bin/bash | |
# Bash script to install SiS Mirage 3+ graphics drivers on Linux | |
# Supports 671/672MX graphics cards | |
# | |
# Created in March 2019 | |
# | |
# Tested on: | |
# - Lubuntu 18.04 (32-bit) with X.Org v1.19 | |
# - Xubuntu 18.04 (64-bit) with X.Org v1.20 |
upload(files) { | |
const config = { | |
onUploadProgress: function(progressEvent) { | |
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) | |
console.log(percentCompleted) | |
} | |
} | |
let data = new FormData() | |
data.append('file', files[0]) |
{ | |
"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"}, |
# Setup for use of Android SDK tools from command line | |
# Set ANDROID_SDK_ROOT to point to the root of the SDK installation | |
export ANDROID_SDK_ROOT='/Applications/adt-bundle-mac-x86_64-20130729/sdk' | |
export PATH=$PATH:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/tools/lib/x86_64 |
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
<html> | |
<head> | |
<title>Gerador de CPF, CNPJ e NIT Válidos</title> | |
<script language="javascript"> | |
function gera_random(n) { | |
var ranNum = Math.round(Math.random()*n); | |
return ranNum; | |
} | |
function mod(dividendo,divisor) { |