Skip to content

Instantly share code, notes, and snippets.

View oneluiz's full-sized avatar
🏠
Working from home

Luis Cortés oneluiz

🏠
Working from home
View GitHub Profile
@oneluiz
oneluiz / a.html
Created August 24, 2020 01:41
adad
<!doctype html>
<html lang="en">
<head>
</head>
<body id="pre-load">
<nav class="navbar navbar-expand-md navbar-light bg-white fixed-top">
</nav>
cd $HOME
wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
rm /etc/apt/sources.list.d/odoo.list
rm /etc/apt/sources.list.d/backports.list
echo "deb http://nightly.odoo.com/12.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list
echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/backports.list
apt-get update
apt-get -y install odoo postgresql unzip git python3-phonenumbers python3-num2words python3-jsonschema python3-pip
if [[ ! -f wkhtmltox_0.12.5-1.stretch_amd64.deb ]]
then
@oneluiz
oneluiz / whois.php
Last active December 20, 2022 06:42
PHP code to get WHOIS information of a domain
<?php
/**
* @author Luis Cortés
* [Whois description]
* @param string $whois [description]
* @param [type] $domain [description]
*/
function Whois($whois='', $domain){
$stringDataWhois="";
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
use Restserver\Libraries\REST_Controller;
require APPPATH . '/libraries/REST_Controller.php';
require APPPATH . '/libraries/Format.php';
class Rest extends REST_Controller
{
public function __construct()
{
@oneluiz
oneluiz / url.sql
Created August 23, 2018 15:31
Cambiar URL WordPress
UPDATE `wp_posts` SET guid = REPLACE(guid, 'http://www.URL-VIEJA.com','http://www.URL-NUEVA.com');
UPDATE `wp_posts` SET post_content = REPLACE(post_content, 'http://www.URL-VIEJA.com','http://www.URL-NUEVA.com');
UPDATE `wp_options` SET option_value = REPLACE(option_value, 'http://www.URL-VIEJA.com','http://www.URL-NUEVA.com') WHERE option_name = 'home' OR option_name = 'siteurl';
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
/*
SQLyog Ultimate v12.09 (64 bit)
MySQL - 10.1.19-MariaDB : Database - l0t3r1a2015
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
@oneluiz
oneluiz / web-servers.md
Created November 20, 2016 15:11 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@oneluiz
oneluiz / .htaccess
Last active May 23, 2016 18:34
Clase enlace
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Inyecciones SQL
# El uso del siguiente conjunto de reglas nos ayudará a filtrar la mayoría de estas situaciones:
RewriteCond %{QUERY_STRING} (;|<|>|’|”|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark) [NC,OR]
RewriteCond %{QUERY_STRING} \.\./\.\. [OR]
RewriteCond %{QUERY_STRING} (localhost|loopback|127\.0\.0\.1) [NC,OR]