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
console.log("Este es una prueba") |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<p>This is the number 1</p> | |
<p>This is the number 2</p> | |
<p>This is the number 3</p> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
#box { | |
background-color: Blue; | |
height: 100px; | |
left: 50px; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
//Random number and then the machine will guess it. |
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
var Gscrape = function(domain) { | |
var domain = domain || 'com', | |
searchURL = 'http://www.google.' + domain + '/search?q=', | |
searchInProgress = false, | |
cache = { | |
error: '', | |
success: true, | |
pages: 0, | |
urls: {} | |
}; |
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
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html | |
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
document.write('<P>'+navigator.appName+'</P>'); | |
document.write('<P>'+navigator.appVersion+'</P>'); | |
document.write('<P>'+navigator.platform+'</P>'); | |
document.write('<P>'+navigator.userAgent+'</P>'); | |
var plugins = navigator.plugins; | |
var mimeTypes = navigator.mimeTypes | |
document.write('<P>'); | |
for (i=0;i<plugins.length;i++) { |
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
cd ~ | |
echo copy this to clipboard editing php.ini | |
echo disable_functions = shell_exec, shell_exec, system | |
echo sleeping 8sec | |
sleep 8 | |
cp /usr/local/lib/php.ini /usr/local/lib/php.ini.DINIX | |
vi /usr/local/lib/php.ini | |
service httpd stop | |
sleep 5 |
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
echo Usage: taillog [ nuber of lines to tail ] | |
tailpath1=/taillog.txt | |
tail -n $1 /var/log/*.log > $tailpath1 | |
tail -n $1 /usr/local/apache/logs/*_log >> $tailpath1 | |
tail -n $1 /var/log/messages >> $tailpath1 | |
tail -n $1 /var/log/exim_mainlog >> $tailpath1 | |
tail -n $1 /var/log/exim_paniclog >> $tailpath1 | |
tail -n $1 /var/log/exim_rejectlog >> $tailpath1 | |
tail -n $1 /var/log/xferlog >> $tailpath1 |
OlderNewer