Skip to content

Instantly share code, notes, and snippets.

View josemalcher's full-sized avatar
🙃
Hello World!

José Malcher Jr. josemalcher

🙃
Hello World!
View GitHub Profile
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 3
Comment=Edit text files
Exec=/opt/sublime-text-3/sublime_text
Icon=/opt/sublime-text-3/Icon/128x128/sublime-text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=TextEditor;"
#!/bin/sh
# Sublime Text 3 install with Package Control (last update: 4 April 2015)
#
# No need to download this script, just run it on your terminal:
#
# $ curl -L git.io/sublimetext | sh
#
# When you need to update Sublime Text, run this script again.
#!/bin/bash
SITES=("www.seusite.com.br" "www.seusite1.com.br")
EMAILRECEBIMENTO="[email protected];[email protected]"
STATUSCODE=("200" "201" "202" "203" "204" "205" "206" "207")
i=0
j=0
CONTROLE=0
RESPOSTASITE=0
#!/bin/bash
############CONFIGURACAO
local=/monitor
log=$local/logs/”LOG-`date +%d%m%y`.txt”
numero=5498979897
EMAIL_DE=”@gmail.com”
EMAIL_PARA=”@outlook.com”
EMAIL_PARA2=””
SERVIDOR_SMTP=”smtp.gmail.com:587″
SENHA=’senha’
#!/bin/bash
intervalo=60
err_log="/var/log/mon_site.log"
verifica_porta() {
hora=`date +%T`
dia=`date | awk '{print $2" "$3}'`
PORTA="8080,8081"
chk=`netstat -an | grep -c :"$PORTA"`
#!/bin/bash
SITES=("www.seusite.com.br" "www.seusite1.com.br")
EMAILRECEBIMENTO="[email protected];[email protected]"
STATUSCODE=("200" "201" "202" "203" "204" "205" "206" "207")
i=0
j=0
CONTROLE=0
RESPOSTASITE=0
PING=/bin/ping
SITE="hostname ou IP"
DATA=`date +%d-%m-%y-%H:%M`
LOGFILE=/var/log/monitor
$PING -q -c 1 $SITE | grep -w "0%" > /dev/null
if [ $? -ne 0 ]; then
# Site fora do ar
echo "$SITE - $DATA - Não responde..." >> $LOGFILE
@josemalcher
josemalcher / sniff.txt
Created November 30, 2015 08:17 — forked from manifestinteractive/sniff.txt
A friendly formatter for curl requests to help with debugging.
\n
============= HOST: ==========\n
\n
local_ip: %{local_ip}\n
local_port: %{local_port}\n
remote_ip: %{remote_ip}\n
remote_port: %{remote_port}\n
\n
======= CONNECTION: ==========\n
\n
@josemalcher
josemalcher / rest-json-js-frontend.md
Created December 10, 2015 14:55 — forked from erkobridee/rest-json-js-frontend.md
links úteis REST, JSON, HTML5, JavaScript e Twitter Bootstrap

Links úteis

  • A Rant about Estimation – When Will We Stop Being Crazy

  • InfoQ BR

    • Fuja da escravidão antes que ela te alcance - Nesta palestra, Vinícius Teles nos fala a respeito da realidade de muitos trabalhadores que possuem vidas estáveis, porém repletas de frustrações advindas de suas rotinas e carreiras aparentemente seguras. Vinícius trata do empreendedorismo, com dicas para profissionais de tecnologia que buscam atingir não apenas a estabilidade financeira, mas também a plena satisfação profissional e pessoal.

    • Agile Brazil 2012