Skip to content

Instantly share code, notes, and snippets.

Jeff Cook sjuxax

Block or report user

Report or block sjuxax

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View -
jeff 2669 106 0.2 18154120 139520 ? S<Ll 01:05 733:04 /usr/sbin/qemu-system-x86_64 -name guest=win10,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-3-win10/master-key.aes -machine pc-i440fx-2.9,accel=kvm,usb=off,vmport=off,dump-guest-core=off -cpu Skylake-Client,ss=on,hypervisor=on,tsc_adjust=on,pdpe1gb=on,mpx=off,xsavec=off,xgetbv1=off,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff,hv_vendor_id=ASRock123861,kvm=off -drive file=/usr/share/ovmf/x64/ovmf_code_x64.bin,if=pflash,format=raw,unit=0,readonly=on -drive file=/var/lib/libvirt/qemu/nvram/win10_VARS.fd,if=pflash,format=raw,unit=1 -m 16384 -mem-prealloc -mem-path /dev/hugepages/libvirt/qemu/3-win10 -realtime mlock=off -smp 8,maxcpus=16,sockets=1,cores=8,threads=2 -uuid 2ee82c14-c5a9-4d4a-9435-400a247bff5f -display none -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-3-win10/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc
View plex.xml
<domain type='kvm' id='7'>
<name>ubuntu-plex</name>
<uuid>d8be35f1-919e-4047-bf71-a50fcf50ff78</uuid>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>2252800</currentMemory>
<vcpu placement='static'>8</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
@sjuxax
sjuxax / local_ip.rb
Last active Mar 27, 2017
Print the local IP address of the primary interface in Ruby 1.9.3.
View local_ip.rb
require 'socket'
#Socket.ip_address_list[1] is usually the IPv4 IP of eth0 (usually the primary interface).
#Socket.ip_address_list[0] is usually the IP of lo, usually 127.0.0.1
puts Socket.ip_address_list[1].ip_address
@sjuxax
sjuxax / scripture_link.diff
Created Nov 3, 2011
Automatically link scriptures found in comments and/or descriptions. Lots of problems with this one, please improve.
View scripture_link.diff
You can’t perform that action at this time.