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
| {******************************************************************************} | |
| { Projeto: Componentes ACBr } | |
| { Biblioteca multiplataforma de componentes Delphi para interação com equipa- } | |
| { mentos de Automação Comercial utilizados no Brasil } | |
| { } | |
| { Direitos Autorais Reservados (c) 2024 Daniel Simoes de Almeida } | |
| { } | |
| { Desenvolvido por: MuriloS.A e Fernando Pasqueto } | |
| { } | |
| { Você pode obter a última versão desse arquivo na pagina do Projeto ACBr } |
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
| @echo off | |
| if "%1"=="" ( | |
| echo Informe o ambiente desejado: | |
| echo. | |
| echo tcc - Tiny C | |
| echo msvc - Microsoft C++ | |
| echo fpc - FreePascal | |
| echo d7 - Delphi 7 | |
| echo d10 - Delphi 10 |
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/env python | |
| # encoding: utf8 | |
| import cgi | |
| import urllib | |
| import urllib2 | |
| def send_sms(to, msg): | |
| url = 'http://www.iagentesms.com.br/webservices/http.php' | |
| payload = { |
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
| import sys | |
| import socket | |
| import tempfile | |
| STATE_FILE = tempfile.gettempdir() + '/youtube-state.txt' | |
| def play_or_pause_video(): | |
| current_state = get_current_state() | |
| command = {'playing': 'pause', 'paused': 'play'}[current_state] | |
| browser_command("document.getElementsByTagName('video')[0].{0}()".format(command)) |
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
| REM This batch script requires command line verson of 7zip to work. | |
| REM | |
| REM Command to create windows task schedule: | |
| REM | |
| REM schtasks /create ^ | |
| REM /tn "MySQL Backup" ^ | |
| REM /tr C:\script_folder\backup.bat ^ | |
| REM /sc DAILY ^ | |
| REM /sd 03/10/2015 ^ | |
| REM /st 13:45 |
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
| [user] | |
| name = Clayton | |
| email = [email protected] | |
| [alias] | |
| st = status | |
| ci = commit | |
| lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| changelog = log --pretty=format:'- %s <%an>' --abbrev-commit | |
| co = checkout |
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 | |
| # Author : Clayton A. Alves | |
| # License : I don't care... | |
| # Date : 2012-06-06 | |
| # | |
| # Real-time MySQL query log analyzer with source highlight | |
| # (displays executed queries colorized on screen) | |
| # | |
| # Requires: |
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 | |
| if [ $# -eq 0 ]; then | |
| echo Uso: checkrad nas_type nas_ip nas_port login session_id | |
| exit 1 | |
| fi | |
| function checa { | |
| if [ $? -eq 0 ]; then | |
| data=$(date +"%d/%m/%Y %H:%M:%S") | |
| echo "$data - Usuário '$username' já está conectado em $nas" >> /var/log/radius/checkrad.log |
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
| """ | |
| Conversion calculation for finding Mikrotiks radius attributes. | |
| Ex: | |
| Mikrotik-Recv-Limit | |
| Mikrotik-Recv-Limit-Gigawords | |
| """ | |
| def splitvalues(gigaword): | |
| quadwordA = gigaword & 4294967295 |
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
| import time | |
| class Retry(object): | |
| default_exceptions = (Exception) | |
| def __init__(self, tries, exceptions=None, delay=0): | |
| """ | |
| Decorator for retrying function if exception occurs | |
| tries -- num tries | |
| exceptions -- exceptions to catch |