This file contains hidden or 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/bash | |
# Lista de distribuicoes suportadas pelo script (cada item deve ser separado por um pipe "|") | |
DISTRO='Ubuntu' | |
SOFTWARE="docker-ce" | |
# Verifica se a distribuicao e suportada pelo script | |
if ! egrep -q "$DISTRO" /etc/issue ; then | |
cat <<EOF | |
Nao foi possivel instalar o $SOFTWARE |
This file contains hidden or 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/bash | |
# Autor: Maicon Schmitz <[email protected]> | |
# Modo de uso: ./gp.sh -d ~/projetos | |
# trata os argumentos de entrada | |
while getopts d: flag | |
do | |
case "${flag}" in | |
d) diretorio=${OPTARG};; | |
esac |
This file contains hidden or 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/bash | |
# Lista de distribuicoes suportadas pelo script (cada item deve ser separado por um pipe "|") | |
DISTRIBUICAO_SUPORTADA='Ubuntu' | |
SOFTWARE="webmin" | |
# Verifica se a distribuicao e suportada pelo script | |
if ! egrep -q "$DISTRIBUICAO_SUPORTADA" /etc/issue ; then | |
cat <<EOF | |
Nao foi possivel instalar o Webmin: |
This file contains hidden or 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 | |
add_action('show_user_profile', 'extra_fields_to_user'); | |
add_action('edit_user_profile', 'extra_fields_to_user'); | |
function extra_fields_to_user($user) { | |
?> | |
<h3>Redes Sociais</h3> | |
<table class="form-table"> |
This file contains hidden or 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
google.load('chrome-frame', '1'); | |
function onLoad() | |
{ | |
function gcfNaoInstalado() | |
{ | |
if (confirm("Você esta sendo redirecionado para a página de instalação do Google Chrome Frame. Deseja mesmo continuar?")) { | |
window.location = "http://www.google.com/chromeframe?user=true&redirect=http://www.maiconschmitz.com.br"; | |
} | |
} |
This file contains hidden or 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
/* Função para exibir mapa */ | |
function mapaLocalizacao(latitude, longitude) | |
{ | |
var opcoesMapa = { | |
zoom: 6, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}; | |
/* cria o mapa do google maps na div canvas_mapa */ | |
var mapa = new google.maps.Map(document.getElementById("google-maps"), opcoesMapa); |
This file contains hidden or 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
include "googl.php"; | |
$googl = new Googl(); | |
$googl->setChave(""); | |
$retorno = $googl->encurtarUrl("http://www.maiconschmitz.com.br"); | |
echo "URL encurtada: " . $retorno->id; |
This file contains hidden or 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
function exibirPrevisaoTempo(icone, cidade, condicao, temperatura, umidade, vento) | |
{ | |
var conteudoDialog; | |
conteudoDialog = | |
'<p><h2>' + cidade + '</h2></p>' + | |
'<p><img src="http://img0.gmodules.com/' + icone + '"> <b>' + condicao +'</b></p>' + | |
'<p>Temperatura: ' + temperatura + ' °C</p>' + | |
'<p>Vento: ' + vento + '</p>' + | |
'<p>' + umidade + '</p>'; |