Skip to content

Instantly share code, notes, and snippets.

View DirectXMan12's full-sized avatar

Solly Ross DirectXMan12

View GitHub Profile
@DirectXMan12
DirectXMan12 / ansi_print.py
Created December 30, 2022 22:20
ansi_print (python3 only)
#!/usr/bin/env python3
from __future__ import print_function
import sys
import contextlib
import os
import io
try:
@DirectXMan12
DirectXMan12 / init.lua
Last active September 15, 2023 08:39
neovim rust important bits
-- I use packer to manage my plugins
require('packer').startup(function() {
-- treesitter configs (treesitter enables neovim to parse buffers into ASTs.
-- it's built in, but there's an official helper library to help set it up)
use {
'nvim-treesitter/nvim-treesitter',
run = function() require('nvim-treesitter.install').update{ with_sync = true } end,
}
-- treesitter --> text objects
@DirectXMan12
DirectXMan12 / keybase.md
Created March 3, 2020 07:46
keybase.md

Keybase proof

I hereby claim:

  • I am directxman12 on github.
  • I am directxman12 (https://keybase.io/directxman12) on keybase.
  • I have a public key whose fingerprint is C9FE C8DF 5A2B D298 9216 7120 BA68 333F 2CF8 73B6

To claim this, I am signing this object:

@DirectXMan12
DirectXMan12 / keybase.md
Created July 27, 2016 22:07
keybase.md

Keybase proof

I hereby claim:

  • I am directxman12 on github.
  • I am directxman12 (https://keybase.io/directxman12) on keybase.
  • I have a public key whose fingerprint is C9FE C8DF 5A2B D298 9216 7120 BA68 333F 2CF8 73B6

To claim this, I am signing this object:

@DirectXMan12
DirectXMan12 / ansi_print.py
Last active April 15, 2023 18:16
ANSI Escape Sequences Tester
from __future__ import print_function
import sys
import six
import contextlib
import os
try:
from __builtin__ import raw_input
except ImportError:
diff --git a/elements/puppet-stack-config/install.d/02-puppet-stack-config b/elements/puppet-stack-config/install.d/02-puppet-stack-config
index 8203b68..9b1a32a 100755
--- a/elements/puppet-stack-config/install.d/02-puppet-stack-config
+++ b/elements/puppet-stack-config/install.d/02-puppet-stack-config
@@ -52,6 +52,7 @@ context = {
'UNDERCLOUD_IRONIC_PASSWORD': os.environ.get('UNDERCLOUD_IRONIC_PASSWORD', 'unset'),
'UNDERCLOUD_TUSKAR_PASSWORD': os.environ.get('UNDERCLOUD_TUSKAR_PASSWORD', 'unset'),
'UNDERCLOUD_DEBUG': os.environ.get('UNDERCLOUD_DEBUG', 'true'),
+ 'ENABLE_LOG_AGGREGATION': os.environ.get('ENABLE_LOG_AGGREGATION', 'false'),
This file has been truncated, but you can view the full file.
2014-03-11 15:40:37.568+0000: 22628: info : libvirt version: 1.1.3.3, package: 5.fc20 (Fedora Project, 2014-02-01-20:08:12, buildvm-17.phx2.fedoraproject.org)
2014-03-11 15:40:37.568+0000: 22628: debug : virObjectNew:199 : OBJECT_NEW: obj=0x7fe38c82ab00 classname=virAccessManagerClass
2014-03-11 15:40:37.568+0000: 22628: debug : virAccessManagerNewDriver:105 : Initialized with stack
2014-03-11 15:40:37.568+0000: 22628: debug : virObjectNew:199 : OBJECT_NEW: obj=0x7fe38c81ee90 classname=virAccessManagerClass
2014-03-11 15:40:37.568+0000: 22628: debug : virAccessManagerNewDriver:105 : Initialized with none
2014-03-11 15:40:37.568+0000: 22628: debug : virObjectRef:293 : OBJECT_REF: obj=0x7fe38c82ab00
2014-03-11 15:40:37.568+0000: 22628: debug : virObjectUnref:256 : OBJECT_UNREF: obj=0x7fe38c82ab00
2014-03-11 15:40:37.568+0000: 22628: debug : main:1295 : Decided on pid file path '/var/run/libvirtd.pid'
2014-03-11 15:40:37.568+0000: 22628: debug : main:1305 : Decided on socket paths '/var/run/libvirt/libvirt-sock'
This file has been truncated, but you can view the full file.
2014-03-11 15:48:14.494+0000: 13456: info : libvirt version: 1.1.3.3, package: 5.fc20 (Fedora Project, 2014-02-01-20:08:12, buildvm-17.phx2.fedoraproject.org)
2014-03-11 15:48:14.494+0000: 13456: debug : virObjectNew:199 : OBJECT_NEW: obj=0x7fc55c9a2b60 classname=virAccessManagerClass
2014-03-11 15:48:14.494+0000: 13456: debug : virAccessManagerNewDriver:105 : Initialized with stack
2014-03-11 15:48:14.494+0000: 13456: debug : virObjectNew:199 : OBJECT_NEW: obj=0x7fc55c996e90 classname=virAccessManagerClass
2014-03-11 15:48:14.494+0000: 13456: debug : virAccessManagerNewDriver:105 : Initialized with none
2014-03-11 15:48:14.494+0000: 13456: debug : virObjectRef:293 : OBJECT_REF: obj=0x7fc55c9a2b60
2014-03-11 15:48:14.494+0000: 13456: debug : virObjectUnref:256 : OBJECT_UNREF: obj=0x7fc55c9a2b60
2014-03-11 15:48:14.494+0000: 13456: debug : main:1295 : Decided on pid file path '/var/run/libvirtd.pid'
2014-03-11 15:48:14.494+0000: 13456: debug : main:1305 : Decided on socket paths '/var/run/libvirt/libvirt-sock'
STDOUT: ========================================================================#012==== Guru Meditation ====#012========================================================================#012||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||#012#012#012========================================================================#012==== Package ====#012========================================================================#012product = p#012version = vp#012vendor = v#012========================================================================#012==== Threads ====#012========================================================================#012------ Thread #140308865869632 ------#012#012/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py:236 in run#012 `self.wait(sleep_time)`#012#012/usr/lib/python2.7/
diff --git a/bin/swift-init b/bin/swift-init
index 3c992f7..c5c3e8c 100755
--- a/bin/swift-init
+++ b/bin/swift-init
@@ -17,6 +17,8 @@
import sys
from optparse import OptionParser
+from swift.openstack.common.report import guru_meditation_report as gmr
+