Skip to content

Instantly share code, notes, and snippets.

View bralandealmeida's full-sized avatar

Alan Matias bralandealmeida

View GitHub Profile
@caironm
caironm / validate.php
Created April 26, 2019 23:31
Funções
<?php
/* CHECK IF A $STRING IS INT. */
function isNumeric($string){
if (!filter_var($string, FILTER_VALIDATE_INT))
return false;
else
return true;
}
@ebetancourt
ebetancourt / wp-disable-plugin-update.php
Last active March 29, 2024 13:03 — forked from rniswonger/wp-disable-plugin-update.php
WordPress - Disable specific plugin update check
<?php
// have to add that opening tag to get syntax highlighting... ¯\_(ツ)_/¯
/**
* Prevent update notification for plugin
* http://www.thecreativedev.com/disable-updates-for-specific-plugin-in-wordpress/
* Place in theme functions.php or at bottom of wp-config.php
*/
function disable_plugin_updates( $value ) {
#==========================================
# Exemplo de crontab para listas grandes com mais de 5 mil leads
#
# Neste exemplo damos um tempo para que
# cada tarefa tenha tempo de ser executada
# antes da próxima tarefa entrar em execução
#===========================================
# atualiza as listas nos minutos 1 e 30
#==========================================
# Exemplo de crontab para listas grandes
# com mais de 5 mil leads
#
# Neste exemplo damos um tempo para que
# cada tarefa tenha tempo de ser executada
# antes da próxima tarefa entrar em execução
#===========================================
# atualiza as listas nos minutos 1 e 30
@NathanGiesbrecht
NathanGiesbrecht / noip2.service
Last active February 24, 2024 01:32
Systemd Service file for no-ip.com dynamic ip updater
# Simple No-ip.com Dynamic DNS Updater
#
# By Nathan Giesbrecht (http://nathangiesbrecht.com)
#
# 1) Install binary as described in no-ip.com's source file (assuming results in /usr/local/bin)
# 2) Run sudo /usr/local/bin/noip2 -C to generate configuration file
# 3) Copy this file noip2.service to /etc/systemd/system/
# 4) Execute `sudo systemctl daemon-reload`
# 5) Execute `sudo systemctl enable noip2`
# 6) Execute `sudo systemctl start noip2`