This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SimpleXMLExtended extends SimpleXMLElement { | |
public function addCDATA($cData) { | |
$node = dom_import_simplexml($this); | |
$node->formatOutput = true; | |
$no = $node->ownerDocument; | |
$node->appendChild($no->createCDATASection($cData)); | |
} | |
} | |
$get_num = $_POST['numero']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('aqui la URL');"> | |
d | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SimpleXMLExtended extends SimpleXMLElement { | |
public function addCDATA($cData) { | |
$node = dom_import_simplexml($this); | |
$node->formatOutput = true; | |
$no = $node->ownerDocument; | |
$node->appendChild($no->createCDATASection($cData)); | |
} | |
} | |
$get_num = $_POST['numero']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Por app | |
~$ sudo trickle -d 200 -u 10 /ruta/app | |
Por wget | |
~$ wget --limit-rate=200k http://algo.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libav-tools | |
avconv -i input.mkv -codec copy output.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
URL="https://github.com/gkovacs/pdfocr.git" | |
INSTALL_DIR="/opt/pdfocr" | |
INSTALL_PREFIX="/usr/local" | |
if ! type git > /dev/null 2>&1; then | |
echo "'git' is not found. Install it with the command below and try again" | |
echo | |
echo " $ sudo apt-get install git" | |
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[12pt,a4paper]{book} | |
\usepackage[latin1]{inputenc} | |
\usepackage[spanish]{babel} | |
\usepackage{amsmath} | |
\usepackage{amsfonts} | |
\usepackage{amssymb} | |
\usepackage{graphicx} | |
\usepackage{selinput} | |
\SelectInputMappings{ | |
aacute={á}, |
OlderNewer