Skip to content

Instantly share code, notes, and snippets.

View rafabarzotto's full-sized avatar
🏠
Working from home

Rafael Barzotto rafabarzotto

🏠
Working from home
View GitHub Profile
@rafabarzotto
rafabarzotto / Dockerfile
Created February 7, 2022 17:07 — forked from pollend/Dockerfile
A sample configuration for deploying symfony for Azure.
######################################################################3
FROM node:10
# This first part uses a node image to build the frontend dependencies and copies
# the results into the next setep to produce the final deployed image
ADD . /var/www/symfony
WORKDIR /var/www/symfony
RUN yarn install --no-progress
RUN yarn build
@rafabarzotto
rafabarzotto / chopp_comentado.c
Created November 16, 2020 20:03
chopp_comentado.c
/*********************************************************************
*********************************************************************/
/*
SCK 18
MOSI 23
DC 19
RST 14
/*********************************************************************
This is an example sketch for our Monochrome Nokia 5110 LCD Displays
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/products/338
These displays use SPI to communicate
Adafruit invests time and resources providing this open source code,
@rafabarzotto
rafabarzotto / AccessPolice.txt
Created July 20, 2020 18:55
BlackList Endian FW
.iguacucelulose.com.br
.teamviewer.com
.cloudalgartelecom.com.br
.acronis.com
.bitdefender.com
.bitdefender.net
.highcharts.com
.jquery.com
.bootstrapcdn.com
.microsoft.com
@rafabarzotto
rafabarzotto / get-users.py
Created July 20, 2020 16:08
Arquivo que carrega os usuários do AD no Endian Firewall 2.5.1 (/usr/local/bin)
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# +-----------------------------------------------------------------------------+
# | Endian Firewall |
# +-----------------------------------------------------------------------------+
# | Copyright (c) 2005-2006 Endian |
# | Endian GmbH/Srl |
# | Bergweg 41 Via Monte |
# | 39057 Eppan/Appiano |
sencha -sdk /path/to/ext6 generate app MyApp /path/to/my-app
@rafabarzotto
rafabarzotto / verificaQualLink.sh
Created June 26, 2019 17:46
Verificar Qual Link Está ativo cfme rota - traceroute
@rafabarzotto
rafabarzotto / bkpSql2005.bat
Created June 17, 2019 14:57
BACKUP SQL SERVER 2005
BACKUP DATABASE [Guardian110]
TO DISK = N'C:\Backup\Guardian110.bak'
WITH NOFORMAT, NOINIT, NAME = N'Guardian110-Full Database Backup',
SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
FOR /F "tokens=1-4 DELIMS=/ " %%F IN ('date /T') DO (set v_date=%%F%%G%%H)
FOR /F "tokens=1-4 DELIMS=: " %%F IN ('time /T') DO (set v_time=%%F%%G%%H)
set homedir=C:\Backup\
@rafabarzotto
rafabarzotto / gist:f7d53651fd93f14d5c9714bdc316d984
Created June 17, 2019 14:48
Backup Firebird - Copia e Compactacao
FOR /F "tokens=1-4 DELIMS=/ " %%F IN ('date /T') DO (set v_date=%%F%%G%%H)
FOR /F "tokens=1-4 DELIMS=: " %%F IN ('time /T') DO (set v_time=%%F%%G%%H)
set zip="C:\Program Files (x86)\7-Zip\7z.exe"
set mysqldump="C:\Program Files (x86)\Firebird\Firebird_2_5\bin\gbak.exe"
set homedir=C:\BACKUPS\Sigma_Backup\GBK\
set fname=%v_date%_%v_time%
echo %vdate% %v_time% - %fname%
cd %homedir%
@rafabarzotto
rafabarzotto / bkpFirebird.bat
Created June 17, 2019 14:48
Backup Firebird GBAK
FOR /F "tokens=1-4 DELIMS=/ " %%F IN ('date /T') DO (set v_date=%%F%%G%%H)
FOR /F "tokens=1-4 DELIMS=: " %%F IN ('time /T') DO (set v_time=%%F%%G%%H)
set mysqldump="C:\Program Files (x86)\Firebird\Firebird_2_5\bin\gbak.exe"
set homedir=C:\BACKUPS\Sigpro_Backup\GBK\
set fname=%v_date%_%v_time%.gbk
echo %vdate% %v_time% - %fname%
cd %homedir%
%mysqldump% -USER SYSDBA -PASS masterkey 127.0.0.1:C:\Sigpro_Banco\SGP.GDB %homedir%sigpro_%fname%