Skip to content

Instantly share code, notes, and snippets.

View booyaa's full-sized avatar
🏠
Working from home forevah!

Mark Sta Ana booyaa

🏠
Working from home forevah!
View GitHub Profile
@booyaa
booyaa / CreateFreeBSDVm.sh
Last active August 29, 2015 14:27 — forked from segrax/CreateFreeBSDVm.sh
Create a FreeBSD 64bit VM with VirtualBox, on FreeBSD, Accepting VNC Connections
# Create a VM named 'MyBSDBox' (64 bit FreeBSD)
VBoxManage createvm --ostype FreeBSD_64 --register --basefolder /vms --name MyBSDBox
# 1gig of memory, 1 CPU.. and set the network to bridged via EM0, emulating the 82540EM chipset
VBoxManage modifyvm MyBSDBox --memory 1024 --ioapic on --cpus 1 --chipset ich9 --nic1 bridged --nictype1 82540EM --bridgeadapter1 em0
# 20 gig Dynamic HDD image, on sata controller
VBoxManage createhd --size 20000 --filename "/vms/MyBSDBox/MyBSDBox.vdi"
VBoxManage storagectl MyBSDBox --name "SATA Controller" --add sata --controller IntelAhci --portcount 4
VBoxManage storageattach MyBSDBox --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "/vms/MyBSDBox/MyBSDBox.vdi"
@booyaa
booyaa / RegEdit.md
Last active December 18, 2015 08:39 — forked from anonymous/gist:5755867
fixing regedit when security tab and appwiz.cpl are missing or disabled.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Uninstall

Toggle value to 0 to remove restriction. You'll lose these settings when your profile or policy are refreshed.

@booyaa
booyaa / GenerateOracleDDL.md
Last active December 15, 2015 12:59 — forked from anonymous/CreateOracleTableCreation.md
Script schema creation for Oracle tables

if the table isn't local i.e. database link you'll need to create a local version to sniff

CREATE TABLE foo AS SELECT * FROM SCHEMA.TABLE@DBLINK.WORLD WHERE rownum < 11;

but surely this is enough? actually no, this will be a best guess by oracle.

if you need more control then the next bit of sql will allow you to tailor the schema create script without all the scripted guff that oracle likes to add.

	SELECT DECODE(A.COLUMN_ID,1,'CREATE TABLE '

|| A.TABLE_NAME

@booyaa
booyaa / foo.js
Created February 13, 2013 11:01 — forked from anonymous/foo.js
// inspiration: https://github.com/damienklinnert/appdotnet
var request = require('request');
foo = function(cb) {
var opts = { uri: 'http://appd01:8111' };
request.get(opts, function(err ,resp, body) {
if (err) { return cb(err); }
return cb(null, resp, body);
@booyaa
booyaa / fiddle.css
Created October 21, 2011 17:57 — forked from zalun/fiddle.css
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}