Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# -------------------------------------------------------------------
# Headless VirtualBox installation script with PhpVirtualBox
# -------------------------------------------------------------------
# 1. Add VirtualBox source
echo "deb http://download.virtualbox.org/virtualbox/debian precise contrib" > virtualbox.list
sudo mv virtualbox.list /etc/apt/sources.list.d/
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
@netbootdau
netbootdau / ipxe2.txt
Created August 19, 2016 00:33 — forked from GABeech/ipxe2.txt
iPXE Script #2
#!ipxe
dhcp
menu SRE iPXE boot Menu
item --gap Choices:
item local Boot From Local Hard Drive
item wds Windows Deployment Services
item c7 Centos 7
item c6 Centos 6 (Depricated)
item dd Dell Diagnostics CD
@Informatic
Informatic / README.md
Last active September 13, 2017 07:46
ansible + letsencrypt + nginx

Small example on how to set up letsencrypt with nginx and ansible.

  1. Include nginx snippet in default configuration and configuration of every vhost you would like to have letsencrypt enabled for
  2. Make sure nginx is reloaded before letsencrypt role (protip: - meta: flush_handlers)
  3. Use playbook.yml as a further example.
@Informatic
Informatic / gist:ba8aef167a92eba5acde
Created March 9, 2016 19:29
FLOSS / Non-shady Windows tools
@Informatic
Informatic / IOMMU fun.md
Last active September 13, 2017 07:49
Log of my struggle with vfio / iommu / VGA passthrough

It just works™, at least on Windows 10 & UEFI/OVMF. Remember to have QXL emulated graphics enabled. This will show as an additional screen in Windows, but you'll be able to just disable it. Only downside of that is you won't get OVMF and Windows splashscreen on physical screen.

Hardware

  • AMD Phenom II x4 955
  • ASRock 970 Extreme3
  • AMD Radeon R9 280x
  • 16GB RAM
20140525-215527Z #ipxe: <Mareo> robinsmidsrod, because there is a mistakes in the configuration we show in the docs
20140525-215558Z #ipxe: <Mareo> if exists user-class and option user-class = "iPXE" {
20140525-215600Z #ipxe: <Mareo> should be
20140525-215611Z #ipxe: <Mareo> if exists user-class and substring (option user-class, 1, 5) = "iPXE"
20140525-215629Z #ipxe: <Mareo> since the first byte is supposed to be the length of the string
20140525-215639Z #ipxe: <Mareo> we shouldn't match against it
20140525-215718Z #ipxe: <robinsmidsrod> yeah, I would imagine that would be a bit too much breakage if that was changed
20140525-215732Z #ipxe: <Mareo> robinsmidsrod, indeed
20140525-221634Z #ipxe: <robinsmidsrod> so what was the issue Pretzel saw again, which apparently nobody else are bitten by?
20140525-221818Z #ipxe: <robinsmidsrod> if the i is identified as the length, can't we just provide _something_ that is i long, possibly with dummy content at the end?
console.h:/* Everything but DEBUG and LOG output to BIOS console */
console.h:#undef CONSOLE_PCBIOS
console.h://#define CONSOLE_PCBIOS ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_DEBUG & ~CONSOLE_USAGE_LOG )
console.h:#define CONSOLE_PCBIOS ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_LOG )
console.h:#define CONSOLE_VESAFB
console.h:/* Everything but TUI output to syslog console */
console.h:#undef CONSOLE_SYSLOG
console.h:#define CONSOLE_SYSLOG ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_TUI )
console.h:#undef LOG_LEVEL
console.h:#define LOG_LEVEL LOG_ALL /* Full syslog logging */
@fakhrulhilal
fakhrulhilal / lenovo-driver
Last active September 22, 2017 14:38
Get the driver list from lenovo. Useful for creating download list with download manager and generate file checksum
(function(d, w) {
var utility = {
trim: word => word.replace(/(^\s+|\s+$)/g, ''),
empty: word => !word || /^\s*$/.test(word),
createNode: (node, text) => {
let element = d.createElement(node);
if (text) element.innerText = text;
return element;
},
toArray: list => list instanceof Array ? list : Array.prototype.slice.call(list)
@Informatic
Informatic / README.md
Last active November 30, 2018 00:02
Yi 2 Firmware reverse-engineering

Yes. It's real. These are just my notes after skimming through the firmware. (protip: update API)

Hardware revisions: 12L, 13L Internal version: z16 (it's all over the place)

Features

  • Running A9S, as everyone might've guessed
  • Seems to have EXFAT support in uITRON
  • SuperView
@jeebak
jeebak / Vagrantfile
Last active January 23, 2020 22:34 — forked from anthonysterling/Vagrantfile
A vagrant replacement for ievms (for Linux, and macOS hosts)
# Usage: vagrant up windowsVersion-IEversion
#
# Eg. vagrant up win10-edge
#
# Based off of: # https://gist.github.com/anthonysterling/7cb85670b36821122a4a
boxes = {
# http://www.vagrantbox.es/
"xp-6" => "http://aka.ms/ie6.xp.vagrant",
"xp-8" => "http://aka.ms/ie8.xp.vagrant",
"vista-7" => "http://aka.ms/ie7.vista.vagrant",