Skip to content

Instantly share code, notes, and snippets.

View index.html
<head>
<link rel="stylesheet" href="styles.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="main.js"></script>
</head>
<table align="center" border="0" style="background-color:#6388c4;border-collapse:collapse;border-spacing:0px;color:#333333;font-size:14px;" width="100%"><tbody><tr><td style="padding:20px;">
<table align="center" border="0" style="background-color:#d9e0ec;border-collapse:collapse;border-spacing:0px;" width="100%"><tbody><tr valign="middle"><td align="center" colspan="2">
<a href="https://s18.postimg.cc/erq3vz3rt/banner_cpturbo.png" rel="external nofollow noopener" style="color:#0088cc;" target="_blank"><img alt="https://s18.postimg.cc/erq3vz3rt/banner_cpturbo.png" border="0" src="https://s18.postimg.cc/erq3vz3rt/banner_cpturbo.png" style="border:0px;vertical-align:middle;"></a>
</td>
View ckeditor4 options
/*
|--------------------------------------------------------------------------------
| CKEditor Options
|--------------------------------------------------------------------------------
|
| To view a list of all available options checkout the CKEditor API documentation
| https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html
|
*/
'options' => [
@msaulohenrique
msaulohenrique / contato.html
Last active Jun 18, 2020
Página Dinâmica (modelo básico) - Demo: https://shmspanel.000webhostapp.com/
View contato.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Contato - Site</title>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#menu a").click(function( e ){ //seleciona todo conteudo do menu
e.preventDefault(); //cancela o evento, no caso, que a nova pagina carregue totalmente. o interesse aqui é só mudar o conteudo da div de content
var href = $( this ).attr('href'); //captura a url da tag a
@msaulohenrique
msaulohenrique / bot.js
Created May 3, 2020
Bot Simples para Whatsapp - Comandos: @ajuda @hORAS @piada.
View bot.js
(() => {
//
// GLOBAL VARS AND CONFIGS
//
var lastMessageOnChat = false;
var ignoreLastMsg = {};
var elementConfig = {
"chats": [0, 0, 5, 2, 0, 3, 0, 0, 0],
"chat_icons": [0, 0, 1, 1, 1, 0],
"chat_title": [0, 0, 1, 0, 0, 0, 0],
View jquery.mask.min.js
// jQuery Mask Plugin v1.13.8
// github.com/igorescobar/jQuery-Mask-Plugin
(function(a){"function"===typeof define&&define.amd?define(["jquery"],a):"object"===typeof exports?module.exports=a(require("jquery")):a(jQuery||Zepto)})(function(a){var x=function(b,e,d){var c={invalid:[],getCaret:function(){try{var r,a=0,e=b.get(0),f=document.selection,d=e.selectionStart;if(f&&-1===navigator.appVersion.indexOf("MSIE 10"))r=f.createRange(),r.moveStart("character",-c.val().length),a=r.text.length;else if(d||"0"===d)a=d;return a}catch(h){}},setCaret:function(r){try{if(b.is(":focus")){var a;
a=b.get(0).createTextRange();a.collapse(!0);a.moveEnd("character",r);a.moveStart("character",r);a.select()}}catch(c){}},events:function(){b.on("keydown.mask",function(a){b.data("mask-keycode",a.keyCode||a.which)}).on(a.jMaskGlobals.useInput?"input.mask":"keyup.mask",c.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){b.keydown().keyup()},100)}).on("change.mask",function(){b.data("changed",!0)}).on("blur.mask",func
@msaulohenrique
msaulohenrique / itunes.php
Created Jan 23, 2020
Get artist info and track image (iTunes)
View itunes.php
<!doctype html>
<html>
<head>
<title>Get artist and track image</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
</head>
<body>
<?php
$search = 'drowning pool 37 stitches'; // user input 'term' in a form
$term = urlencode($search); // user input 'term' in a form
@msaulohenrique
msaulohenrique / unlockip_form.php
Created Jan 22, 2020
Criar arquivo no diretório /includes/hooks/
View unlockip_form.php
<?php
if ($unblockip_isactive){
use WHMCS\View\Menu\Item;
add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels)
{
$form_unlockip = <<<EOT
<p><strong>
{$unblockip_alerts}</p>
<p><form name='ipaddresscheck' method='POST' action='index.php?m=unblockip'>
View FileSaver.js
(function(a,b){if("function"==typeof define&&define.amd)define([],b);else if("undefined"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){"use strict";function b(a,b){return"undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Depricated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(b,c,d){var e=new XMLHttpRequest;e.open("GET",b),e.responseType="blob",e.onload=function(){a(e.response,c,d)},e.onerror=function(){console.error("could not download file")},e.send()}function d(a){var b=new XMLHttpRequest;return b.open("HEAD",a,!1),b.send(),200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f=function(){try{return Function("retu
View ssl_port.sh
#!/bin/bash -e
clear
YELLOW=`tput setaf 3`
GREEN=`tput setaf 2`
NC=`tput sgr0`
echo "${GREEN}"
echo "===================================================="
echo "Adicionar SSL ao uma porta de Rádio"
echo "===================================================="
echo "${NC}"