Skip to content

Instantly share code, notes, and snippets.

# curl -v https://stable.release.core-os.net/amd64-usr/2079.4.0/coreos_production_image.bin.bz2 -o /dev/null
* Expire in 0 ms for 6 (transfer 0x564d7d840160)
* Expire in 1 ms for 1 (transfer 0x564d7d840160)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Expire in 1 ms for 1 (transfer 0x564d7d840160)
* Expire in 2 ms for 1 (transfer 0x564d7d840160)
* Expire in 1 ms for 1 (transfer 0x564d7d840160)
* Expire in 1 ms for 1 (transfer 0x564d7d840160)
* Expire in 2 ms for 1 (transfer 0x564d7d840160)
1{x;s/^/INIT/;x;TRESET}
:LOOP
s/^{//
tOBJECT_START
s/^\[//
tARRAY_START
s/^"//
tQUOTE
s/^://
@iamtakingiteasy
iamtakingiteasy / static_init.cpp
Created December 25, 2018 09:47
Static array initialization
class Outer;
class Inner {
private:
Outer* container;
public:
Inner(Outer *outer) : container(outer) {}
};
const int instances = 4;
@iamtakingiteasy
iamtakingiteasy / q35-libvirt-win10-domain.xml
Last active December 15, 2018 10:35
Q35 libvirt domain for win10 guest, with PCIe root complex and PCI passthrough (host native gpu and usb controllers) devices.
<domain type='kvm' id='6' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>win10-cirnos</name>
<uuid>f30c2114-cba7-4534-a79b-c9afdd1b7590</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit='KiB'>16777216</memory>
<currentMemory unit='KiB'>16777216</currentMemory>
@iamtakingiteasy
iamtakingiteasy / win10-cirnos.xml
Created December 8, 2018 00:24
Libvirt domain for win10
<domain type='kvm' id='1' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>win10-cirnos</name>
<uuid>ee6857e9-15b6-4e78-be40-80603becd90f</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit='KiB'>16777216</memory>
<currentMemory unit='KiB'>16777216</currentMemory>
@iamtakingiteasy
iamtakingiteasy / master-and-worker-ignition.yaml
Last active December 24, 2021 14:21
CoreOS ignition file for setting up kubernetes master+worker node
passwd:
users:
- name: "root"
groups:
- "sudo"
- "wheel"
password_hash: "$6$gO2u2Sjk$Q5T/SqiwFzK95jRqO6FArDDmDGmdXblnKHtL4HiA.NrGgfJk8CJF5AfAfoMt8kF/jlsqHEgRDxYOFYzw9sroS/"
- name: "user"
groups:
- "sudo"
@iamtakingiteasy
iamtakingiteasy / TCPChat.md
Last active May 22, 2019 12:23
TCP plaintext chat

TCP Chat

Should be plaintext and relatively usable with netcat, telnet or similar utilities when used with terminal emulator having UNIX newlines (\n)

No authentication or authorization is implied.

Server

  • Listens on port 20000/tcp
: PID: 7784
: CPU: arch=x86-64 , fam=586 , cpus=16
: SIMD: SSE=3 , 3DNow=0 , MMX=1
: OS Version: 6.2.9200
: Desktop resolution: 2560 x 1440
: Virtual desktop resolution: 2560 x 1440
: -----------------------------------------------------------
: Command line: "D:\Games\SS2\ss2.exe"
: -----------------------------------------------------------
: CWD: D:\Games\SS2
: PID: 7784
: CPU: arch=x86-64 , fam=586 , cpus=16
: SIMD: SSE=3 , 3DNow=0 , MMX=1
: OS Version: 6.2.9200
: Desktop resolution: 2560 x 1440
: Virtual desktop resolution: 2560 x 1440
: -----------------------------------------------------------
: Command line: "D:\Games\SS2\ss2.exe"
: -----------------------------------------------------------
: CWD: D:\Games\SS2
: PID: 5968
: CPU: arch=x86-64 , fam=586 , cpus=16
: SIMD: SSE=3 , 3DNow=0 , MMX=1
: OS Version: 6.2.9200
: Desktop resolution: 2560 x 1440
: Virtual desktop resolution: 2560 x 1440
: -----------------------------------------------------------
: Command line: "D:\Games\SS2\ss2.exe"
: -----------------------------------------------------------
: CWD: D:\Games\SS2