Skip to content

Instantly share code, notes, and snippets.

View yankcrime's full-sized avatar
🤠
┬──┬◡ノ(° -°ノ)

Nick Jones yankcrime

🤠
┬──┬◡ノ(° -°ノ)
View GitHub Profile
@yankcrime
yankcrime / common.pp
Created October 14, 2015 15:43
nova::vncserver::common
# == Class: nova::vncproxy::common
#
# [*vncproxy_host*]
# (optional) The host of the VNC proxy server
# Defaults to false
#
# [*vncproxy_protocol*]
# (optional) The protocol to communicate with the VNC proxy server
# Defaults to 'http'
#
@yankcrime
yankcrime / neutronlistorphans.py
Created January 5, 2016 17:54
List orphaned Neutron objects via the OpenStack APIs
#!/usr/bin/env python
import os
import sys
import keystoneclient.v2_0.client as ksclient
import neutronclient.v2_0.client as nclient
def usage():
print "listorphans.py <object> where object is one or more of",
print "'networks', 'routers', 'subnets', 'floatingips' or 'all'"
@yankcrime
yankcrime / pipeline.yaml
Created January 13, 2016 10:13
Amended pipeline.yaml that helps address https://bugs.launchpad.net/ceilometer/+bug/1457440
sources:
- name: meter_source
interval: 600
meters:
- "!disk.*"
- "*"
sinks:
- meter_sink
- name: cpu_source
interval: 600
@yankcrime
yankcrime / RPM-GPG-KEY-RDO-Kilo
Created April 21, 2016 14:21
RPM-GPG-KEY-RDO-Kilo
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFQaEA4BEADNjmFy/gNt+j/3Npji2Yae9RJedb1jvuulTC3udfyRsqiZP47c
jRFQ6GmqTGqRdn2tLAaWZiwS6hcCtRjqa1K275DnL1jWEd+YFNrggQsd5atbuikm
+TYz/sMVYrSicawCzQnc2lYOJyF45tpfNy5u1Hwfne6Mt66BHUAFoCnSgzQ5b4Wo
mvr9znJSE+vySHVOQxPcaZIpN4jRYi4thUlAn09LM1i9i/1APD6wuOz9xSe9ZkTz
SZVPbPcztOc0JJ53CAoPjhjZJaWJ6Jvlte+blcvlZ4go2Pq1ws8ouBTo1hC3CeVP
SDK+2c234KOZcOL3eh5VAT0ztACI1kbhThZHY6jGKJJjRcUZO+/DGHPwhdO4nANc
nhihown7/r1yluMamf+Yk7IeVuJUNU8ObPXn9fYZ2jJeAFLHxwDt6gOItiwbED7r
diff --git a/src/MacVim/MMCoreTextView.m b/src/MacVim/MMCoreTextView.m
index a9e8b9b..f30a8da 100644
--- a/src/MacVim/MMCoreTextView.m
+++ b/src/MacVim/MMCoreTextView.m
@@ -42,6 +42,7 @@
#define DRAW_UNDERC 0x08 /* draw undercurl text */
#define DRAW_ITALIC 0x10 /* draw italic text */
#define DRAW_CURSOR 0x20
+#define DRAW_BEVEL 0x3f
#define DRAW_WIDE 0x40 /* draw wide text */
diff --git a/src/MacVim/MMCoreTextView.m b/src/MacVim/MMCoreTextView.m
index f30a8da..be4fda0 100644
--- a/src/MacVim/MMCoreTextView.m
+++ b/src/MacVim/MMCoreTextView.m
@@ -42,8 +42,8 @@
#define DRAW_UNDERC 0x08 /* draw undercurl text */
#define DRAW_ITALIC 0x10 /* draw italic text */
#define DRAW_CURSOR 0x20
-#define DRAW_BEVEL 0x3f
-#define DRAW_WIDE 0x40 /* draw wide text */
FROM ubuntu:16.04
MAINTAINER Nick Jones "[email protected]"
ENV FACTER_role='nova'
MOUNT /opt/puppetlabs /etc/puppetlabs /root/.gem
MOUNT ./hieradata:/hieradata
ENV PUPPET_AGENT_VERSION="1.5.0" UBUNTU_CODENAME="xenial" PATH=/opt/puppetlabs/server/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:$PATH
@yankcrime
yankcrime / Dockerfile
Created September 4, 2016 09:03
A Dockerfile which uses Rocker to build an OpenStack Horizon image with Puppet
FROM ubuntu:16.04
MAINTAINER Nick Jones "[email protected]"
ENV DOCKER_BUILD_DOMAIN='sal01.datacentred.co.uk'
ENV FACTER_role='horizon'
ENV FACTER_domain=${DOCKER_BUILD_DOMAIN:-vagrant.test}
MOUNT /opt/puppetlabs /etc/puppetlabs /root/.gem
MOUNT ./puppet/hieradata:/hieradata
MOUNT ~/.config/keys:/keys
@yankcrime
yankcrime / settings.json
Last active September 21, 2018 13:00
VSCode Settings
{
"explorer.openEditors.visible": 0,
"editor.fontFamily": "IBM Plex Mono",
"editor.fontSize": 14,
"editor.minimap.enabled": false,
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"window.zoomLevel": 0,
"workbench.activityBar.visible": false,
"workbench.iconTheme": "material-icon-theme",
@yankcrime
yankcrime / Preferences.sublime-settings
Last active February 15, 2018 10:31
Sublime Text preferences
{
"added_words":
[
"virtualisation",
"startup"
],
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/base16-cupertino (SL).tmTheme",
"dictionary": "Packages/Language - English/en_GB.dic",
"enable_tab_scrolling": false,