sudo apt-get install libapache2-mod-proxy-html
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
SELECT | |
e.Nome AS nome_empresa, | |
(Case | |
WHEN c.tipo_pessoa = 'J' THEN c.Nome_Fantasia | |
ELSE c.Nome | |
END ) AS nome_ordem, | |
c.* | |
FROM | |
LD_Cliente c, | |
LD_Empresa e |
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
-- Rápido | |
update syo_campanha set ds_enderecoemail = null; | |
update syo_contaemail set ds_email = null; | |
update syo_contatoemail set ds_email = null; | |
update syo_empresa set ds_email = null, ds_smtpemail = null, ds_usuarioemail = null; | |
update syo_faleconosco set ds_email = null; | |
update syo_motivoinsatisfacao set ds_emails = null; | |
update syo_newsletter set ds_email = null; | |
update syo_pergunta set ds_emails = null; |
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/bash | |
# | |
# Para usar em uma vm: | |
# adicionar ao /etc/hosts | |
# 192.168.1.158 macmini.avila.net.br | |
# | |
# Para desmontar: | |
# fusermount -u /home/rodrigo/www | |
# |
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
/** | |
* DUMP | |
* | |
* Dumps a variable in a readable form to the console, this is a recursive function | |
* so be careful of nested references that may cause it to overflow... (untested for that) | |
* | |
* @v ANYTHING [Any variable] | |
* @name STRING [The name of the variable, optional, used internally when looping objects and arrays] | |
* @spacing STRING [The prefix spacing, used internally when looping objects and arrays] | |
*/ |
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/bash | |
# Exemplo no terminal | |
pidof -xs ${1} 1>/dev/null 2>&1 || echo " ==> Script ${1} não está rodando." | |
# Exemplo no crontab | |
# 00 18 * * * pidof -x script.sh || script.sh --iniciar |
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/bash | |
# IE 7, Windows Vista | |
curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=parallels&browserOS=IE7-Vista&filename=Parallels/IE7_Vista/IE7.Vista.For.MacParallels.part0{1.sfx,2.rar,3.rar}" | |
# IE 8, Windows XP | |
curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=parallels&browserOS=IE8-WinXP&filename=Parallels/IE8_WinXP/IE8.WinXP.For.MacParallels.part{1.sfx,2.rar}" | |
# IE 9, Windows 7 | |
curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=parallels&browserOS=IE9-Win7&filename=Parallels/IE9_Win7/IE9.Win7.For.MacParallels.part0{1.sfx,2.rar,3.rar,4.rar}" |
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/bash | |
file --mime-type -b ${1} |
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/bash | |
# Adicione um novo remote; pode chamá-lo de "upstream": | |
git remote add upstream https://github.com/usuario/projeto.git | |
# Obtenha todos os branches deste novo remote, | |
# como o upstream/master por exemplo: | |
git fetch upstream |