Skip to content

Instantly share code, notes, and snippets.

@rodvan
rodvan / 0_reuse_code.js
Created February 2, 2014 01:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rodvan
rodvan / index.js
Created May 20, 2014 18:29
githubTest
console.log("Este es una prueba")
<!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>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
#box {
background-color: Blue;
height: 100px;
left: 50px;
<!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.
@rodvan
rodvan / gscrape.js
Last active August 29, 2015 14:21 — forked from xbb/gscrape.js
var Gscrape = function(domain) {
var domain = domain || 'com',
searchURL = 'http://www.google.' + domain + '/search?q=',
searchInProgress = false,
cache = {
error: '',
success: true,
pages: 0,
urls: {}
};
// 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
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++) {
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
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