Skip to content

Instantly share code, notes, and snippets.

@kyleturner
kyleturner / Remove Submodule
Created January 5, 2012 01:07
How to remove a submodule from a Github project
To remove a submodule you need to:
Delete the relevant line from the .gitmodules file.
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule (no trailing slash).
Commit and delete the now untracked submodule files.
@anildigital
anildigital / gist:862675ec1b7bccabc311
Created July 26, 2014 18:27
Remove dangling docker images
docker rmi $(docker images -q -f dangling=true)
@flyser
flyser / libvirt-quadro.xml
Created February 14, 2015 13:17
The libvirt config of my vga passthrough vm
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>Windows8-OVMF1</name>
<uuid>d3d9d84e-3ce4-d77e-9bcc-d1fb5ba85813</uuid>
<memory unit='GiB'>8</memory>
<memoryBacking>
<hugepages/>
<locked/>
<nosharepages/>
</memoryBacking>
<memtune>
@TheAngryByrd
TheAngryByrd / build.fsx
Last active September 18, 2016 01:52
Visual Studio Code mono debugging launch.json
//http://www.navision-blog.de/blog/2015/12/21/adding-background-tasks-to-suave-io-websites/
let startApp path =
let info = ProcessStartInfo(FileName = path)
let proc = new System.Diagnostics.Process(StartInfo = info)
start proc
proc