Skip to content

Instantly share code, notes, and snippets.

View KelvinVenancio's full-sized avatar
🎯
Focusing

Kelvin V. Soares KelvinVenancio

🎯
Focusing
View GitHub Profile
@KelvinVenancio
KelvinVenancio / verify_dns.sh
Last active November 7, 2015 22:36
Verificação de dns para um domínio, revenda e/ou todas as contas de um servidor. A opção 1, pode ser usada em qualquer distro, as demais (2/3), apenas em servidores/vps com cPanel/CloudLinux.
#!/bin/bash
# Kelvin Soares - kelvin@kelvinsoares.tk
clear
tput cup 4 30
echo "Menu Principal - Escolha a opção desejada"
echo ""
menu() {
echo ""
@KelvinVenancio
KelvinVenancio / lamp.sh
Last active November 19, 2020 11:59
Instalação da pilha LAMP + phpMyAdmin com um único script.
#!/bin/bash
# Instalação da pilha LAMP
# Autor: Kelvin Soares - kelvinvenanciosoares@gmail.com
clear
# Variáveis das cores
NC="\E[0;00m";
vermelho="\E[1;31m";
amarelo="\E[1;33m";
verde="\E[1;32m";
@KelvinVenancio
KelvinVenancio / name.php
Last active August 29, 2015 14:20
Consumindo API do Rails com PHP
<?php
$url = "http://localhost:3000/tasks";
$contents = file_get_contents($url);
$contents = utf8_encode($contents);
$results = json_decode($contents, true);
$info = $results;
foreach ($info as $r) {
echo "Nome: $r[name] <br />";
@benkulbertis
benkulbertis / cloudflare-update-record.sh
Last active April 28, 2024 16:35
Cloudflare API v4 Dynamic DNS Update in Bash
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
# Utilize-o em 'config/locales/', com o nome de 'devise.pt-BR.yml'.
# Em 'config/application.rb', utilize => config.i18n.default_locale = :'pt-BR'
pt-BR:
devise:
confirmations:
confirmed: "Sua conta foi confirmada com sucesso."
send_instructions: "Você receberá um e-mail para confirmar sua conta em alguns minutos."