Skip to content

Instantly share code, notes, and snippets.

View uzielweb's full-sized avatar

Uziel Almeida Oliveira uzielweb

View GitHub Profile
@uzielweb
uzielweb / chmoder.php
Last active October 6, 2016 02:59 — forked from anonymous/chmoder.php
CHMODER is a little script to chmod in a batch mode all files and directories recursively. How to use: upload to a server and run it via url. http://yoursite.etc/chmoder.php
<?
header('Content-Type: text/plain');
/**
* Changes permissions on files and directories within $dir and dives recursively
* into found subdirectories.
*/
function chmod_r($dir)
{
@uzielweb
uzielweb / obsidian_scheme_notepad2.ini
Last active February 13, 2017 04:04
Obsidian scheme for Notepad2 by uonick-d4b5ub2 modified by ihacklog.
[Default Text]
FileNameExtensions=txt; text; wtx; log; asc; doc; diz; nfo
Default Style=font:DejaVu Sans Mono; size:11; fore:#FFFFFF; back:#293134
Margins and Line Numbers=size:-2; fore:#81969a; back:#3f4b4e
Matching Braces=size:+1; bold; fore:#000000; back:#FD971F
Matching Braces Error=size:+1; bold; fore:#F8F8F0; back:#F92672
Control Characters (Font)=size:-1
Indentation Guide (Color)=fore:#A0A0A0
Selected Text (Colors)=back:#7D9399; eolfilled
Whitespace (Colors, Size 0-5)=
@uzielweb
uzielweb / gist:b26bf0227a1cb8c3f66a7c6e7341bc0a
Created March 3, 2017 23:11 — forked from marksteve/gist:877210
Monokai Notepad2 Color Scheme
[Default Text]
FileNameExtensions=txt; text; wtx; log; asc; doc; diz; nfo
Default Style=font:Consolas; size:10; fore:#F8F8F2; back:#272822
Margins and Line Numbers=size:-2; fore:#BCBCBC; back:#3B3A32
Matching Braces=size:+1; bold; fore:#000000; back:#FD971F
Matching Braces Error=size:+1; bold; fore:#F8F8F0; back:#F92672
Control Characters (Font)=size:-1
Indentation Guide (Color)=fore:#A0A0A0
Selected Text (Colors)=fore:#F8F8F2; back:#49483E; eolfilled
Whitespace (Colors, Size 0-5)=
insert into vl86p_categories (title,alias,parent_id,published,access,extension) select name,alias,parent,published,access,'com_content' from dnaur123_1.cththemes_k2_categories
INSERT INTO `dnaur123_teste`.`vl86p_content` (`id`, `title`, `alias`, `catid`, `introtext`, `fulltext`, `created`, `created_by`, `publish_up`, `publish_down`, `access`, `hits`, `metadesc`, `metakey`, `state`) SELECT `id`, `title`, `alias`, `catid`, `introtext`, `fulltext`, `created`, `created_by`, `publish_up`, `publish_down`, `access`, `hits`, `metadesc`, `metakey`, `published` FROM `dnaur123_1`.`cththemes_k2_items`
USE O RECURSO DE CONCATENAÇÃO DO EXCEL DEPOIS DE TOMAR NOTA DE TODAS AS CATEGORIAS PRESENTES NO K2 QUE FORAM IMPORTADAS E DAS NOVAS CATEGORIAS CRIADAS. TENHA EM MENTE QUE 74 É A NOVA CATEGORIA DE EXEMPLO E 1 É CATEGORIA ORIGINAL DE EXEMPLO, CUJAS QUAIS DEVEM SER TROCADAS VIA CONCATENAÇÃO
UPDATE vl86p_content SET catid = 74 WHERE catid = 1;
Ir em categorias e mandar reconstruir a árvore de categorias depois de tudo impo
@uzielweb
uzielweb / jquery.equalHeights.js
Created August 22, 2017 19:41 — forked from davetayls/jquery.equalHeights.js
Equal heights reloaded with window resize
/**
 * Equal Heights Plugin
 * Equalize the heights of elements. Great for columns or any elements
 * that need to be the same size (floats, etc).
 *
 * Version 1.0
 * Updated 12/10/2008
 *
 * Copyright (c) 2008 Rob Glazebrook (cssnewbie.com)
 *
@uzielweb
uzielweb / videos.php
Last active November 11, 2017 13:10
Joomla Latest Articles Module with Youtube and VIMEO custom fields and ADD XML FIELDS plugin - put this file in templates/YOURTEMPLATE/html/mod_articles_latest
<?php
/**
* @package Joomla.Site
* @subpackage mod_articles_latest
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/*
Joomla Latest Articles Module with Youtube and VIMEO custom fields and ADD XML FIELDS plugin.
<?php
function replace_scripts_with_src( $html ) {
$html = preg_replace( '`\<script\b[^\x3e]*\bsrc\b[\x00-\x20\x7f]*\=[\x00-\x20\x7f]*(?:[\x22](?:[^\x22]*)[\x22]|[\x27](?:[^\x27]*)[\x27]|[^\x20\x3e]*)[^\x3c]*(?:(?!\<\/script\>)\<[^\x3c]*)*\<\/script\>`i', '', $html );
return $html;
}
$old_html = file_get_contents( 'https://www.facebook.com' );
$new_html = replace_scripts_with_src( $old_html );
@uzielweb
uzielweb / default_results.php
Last active February 2, 2018 19:20
An override for search results to show images in article results . put in /templates/your_template/html/com_search/search
<?php
/**
* @package Joomla.Site
* @subpackage com_search
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$db = JFactory::getDBO();
@uzielweb
uzielweb / gist:ee5f1ce6965cd5f0615dfd6fb2fa6f20
Last active July 24, 2019 15:00
WEB WhatsApp 24/07/2019 Bug
/*! Copyright (c) 2019 WhatsApp Inc. All Rights Reserved. */ ! function(e) {
function i(n) {
if (r[n]) return r[n].exports;
var f = r[n] = {
i: n,
l: !1,
exports: {}
};
return e[n].call(f.exports, f, f.exports, i), f.l = !0, f.exports
}
@uzielweb
uzielweb / sources.list
Last active November 11, 2019 18:46 — forked from aristidesneto/source.list
Source List - Debian 9 Stretch
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#
###### Debian Main Repos
deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free
deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free