Skip to content

Instantly share code, notes, and snippets.

Rodrigo Vazquez rodvan

Block or report user

Report or block rodvan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rodvan
rodvan / 0_reuse_code.js
Created Feb 2, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View index.js
console.log("Este es una prueba")
View index.html
<!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>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
#box {
background-color: Blue;
height: 100px;
left: 50px;
View index.html
<!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.
View 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: {}
};
View nodejs-cheatsheet.js
// 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
View Print browser information in Javascript
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++) {
View hackcheck with rkhunter
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
View linux tail log creator
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
You can’t perform that action at this time.