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 / 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>
<meta charset="utf-8">
<title>JS Bin</title>
<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>
<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>
<meta charset="utf-8">
<title>JS Bin</title>
<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 = '' + 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:
// More:
// 0. Synopsis.
View Print browser information in Javascript
var plugins = navigator.plugins;
var mimeTypes = navigator.mimeTypes
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 ]
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.