Skip to content

Instantly share code, notes, and snippets.

Marcello Infoweb marcelloinfoweb

Block or report user

Report or block marcelloinfoweb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
marcelloinfoweb / gist:cf8d8d3eaad24f1356f5258f8e37a41e
Created Jul 10, 2018
Fix Kernel panic by Apple Intel CPU Power Management kext
View gist:cf8d8d3eaad24f1356f5258f8e37a41e
Running Mac OS X in PC is Tricky and a little bit hard but professionals always find out a way
This article is about fixing a common issue in Hackintosh computers, Kernel panic by Apple Intel CPU Power Management kext (Specially in AMD Machines)
This kext is specially designed to work with apple computers to manage the power (The name says it all)
but in Hackintosh its a real problem.
NullCpuPowermanagement or disabler kext can be used to bypass the kernel panic but they don’t work always as expected
Sometimes you may see the following kernel panic message:
“panic(cpu 0 caller 0xffffff7f82018cc9) : No HPETs available…CPU(s) configured incorrectly”
marcelloinfoweb / hosts
Created Jun 5, 2018
Bloqueio de Telemetria do Windows 10
View hosts
# Copyright (c) 1993-2009 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
marcelloinfoweb / cpfCnpj.validate.js
Last active Oct 17, 2017
Validar CPF e CNPJ com Jquery e ValidateJS
View cpfCnpj.validate.js
function isCnpj(cnpj) {
var numeros, digitos, soma, i, resultado, pos, tamanho, digitos_iguais;
if (cnpj.length === 0) {
return false;
cnpj = cnpj.replace(/\D+/g, '');
digitos_iguais = 1;
for (i = 0; i < cnpj.length - 1; i++)
if (cnpj.charAt(i) !== cnpj.charAt(i + 1)) {
digitos_iguais = 0;
View DataExpirarMoodle.php
require_once '../config.php';
global $DB;
function desable_enrol($userid,$courseid,$dataInicio,$dataFinal)
global $DB, $CFG;
$dataAtual = strtotime('NOW');
marcelloinfoweb / Sublime.ini
Last active Apr 26, 2017 — forked from raloliver/gist:6786f9fba0edfefc7de9
Configurações para o Sublime como IDE para PHP / JS
View Sublime.ini
Finalmente, agora eu tenho tudo quase perfeito com o Sublime, só me falta mesmo é um Outline para fechar de vez.
Template para projetos Symfony:
"path": ".",
"folder_exclude_patterns": ["bundles", "assets", "cache"]
marcelloinfoweb / popUp_img-com-link.js
Last active Aug 29, 2015
Pop-Up Colorbox - Imagem com Link
View popUp_img-com-link.js
View menuFixo.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="">
<script src="jquery-1.11.1.min.js"></script>
body {
marcelloinfoweb / index.html
Last active Oct 17, 2017
Tooltip Pure CSS
View index.html
<!-- normally this stuff would be on the html element -->
<!--[if lt IE 7]> <div class="ie ie6 lte9 lte8 lte7"> <![endif]-->
<!--[if IE 7]> <div class="ie ie7 lte9 lte8 lte7"> <![endif]-->
<!--[if IE 8]> <div class="ie ie8 lte9 lte8"> <![endif]-->
<!--[if IE 9]> <div class="ie ie9 lte9"> <![endif]-->
<!--[if gt IE 9]> <div> <![endif]-->
<!--[if !IE]><!--> <!--<![endif]-->
<!DOCTYPE html>
View HTML: Estrutura simples
<html lang="pt-br">
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="estilo.css">
View Colorbox Magento
<script type="text/javascript">// <![CDATA[
jQuery(document).ready(function($) {
(function($) {
html: '<a href= "" _mce_href="" > <img src="" _mce_src = "" class="gallery" title = "Promo&ccedil;&atilde;o M&ecirc;s do Nutricionista" /></a>',
close: 'sair',
photo: true
});// ]]>
You can’t perform that action at this time.