Skip to content

Instantly share code, notes, and snippets.

View xinitrc
#!/bin/sh
## Set a decent keyboard layout..
setxkbmap -layout us -variant altgr-intl &
amixer -c 0 sset "Auto-Mute Mode" Disabled
xinput set-button-map "SynPS/2 Synaptics TouchPad" 1 2 3 5 4
# Gnome stuff..
#gnome-settings-daemon & # handles themes, starts gnome-screensaver. You may have to use gconf to disable it setting the background.
View keybase.md

Keybase proof

I hereby claim:

  • I am flaper87 on github.
  • I am flaper87 (https://keybase.io/flaper87) on keybase.
  • I have a public key whose fingerprint is 7289 7B2A 8168 4AD4 A9FE A9FC 9AF6 50FA 861A 38B3

To claim this, I am signing this object:

View standalone.yaml
###############################################################################
# Role: Standalone #
###############################################################################
- name: Standalone
description: |
EXPERIMENTAL. A standalone role that a minimal set of services.
This can be used for testing in a single node configuration with the
'openstack tripleo deploy --standalone' command.
CountDefault: 1
tags:
View install_roles.sh
#~/bin/sh
set -x
sudo yum -y install git curl vim-enhanced telnet epel-release ruby rubygems yum-plugins-priorities deltarpm
sudo yum -y install python-setuptools python-requests
# Install openshift repos and ansible.modules-kubernetes
sudo yum install -y centos-release-openshift-origin
sudo curl https://copr.fedorainfracloud.org/coprs/g/ansible-service-broker/ansible-service-broker-latest/repo/epel-7/group_ansible-service-broker-ansible-service-broker-latest-epel-7.repo -o /etc/yum.repos.d/asb.repo
View overcloud_containers.yaml
# put this in /home/stack/tripleo-common/contrib/
uploads:
- imagename: tripleoupstream/heat-docker-agents:mitaka
uploader: docker
pull_source: docker.io
push_destination: localhost:8787
- imagename: tripleoupstream/centos-binary-nova-compute:mitaka
uploader: docker
pull_source: docker.io
push_destination: localhost:8787
View gist:8657638
#0 0x00007ffff7997830 in rust_fail () from /home/flaper87/workspace/personal/rust/x86_64-unknown-linux-gnu/stage1/bin/../lib/libstd-966edb7e-0.10-pre.so
#1 0x00007ffff78f71c7 in rt::unwind::Unwinder::begin_unwind::h6b5c4ebf9ad30390QDa8::v0.10.pre () from /home/flaper87/workspace/personal/rust/x86_64-unknown-linux-gnu/stage1/bin/../lib/libstd-966edb7e-0.10-pre.so
#2 0x00007ffff423ccda in rt::unwind::begin_unwind::hec1abfddebb3c9c5az::v0.10.pre () from /home/flaper87/workspace/personal/rust/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustc-0d83f02f-0.10-pre.so
#3 0x00007ffff468f870 in middle::region::RegionMaps::encl_scope::h0248960ab61f85d8gGaH::v0.10.pre ()
from /home/flaper87/workspace/personal/rust/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustc-0d83f02f-0.10-pre.so
#4 0x00007ffff43d0a67 in middle::region::RegionMaps::temporary_scope::ha152409d2a96101egGaM::v0.10.pre ()
from /home/flaper87/workspace/personal/rust/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustc-0d83f02f-0.10-pre.so
#5 0
View gist:8657255
fn main() {
mod t {
enum E {V=1, A=0}
static C: E = V;
}
}
View gist:8594006
mc::cat_static_item => {
true
}
- mc::cat_rvalue(..) |
+ mc::cat_rvalue(region) => {
+ match region {
+ ty::ReStatic => {
+ false
+ }
@flaper87
flaper87 / gist:8384731
Created January 12, 2014 13:42
Emulating unpack_from('>I', ...) in the worst way possible
View gist:8384731
fn get_int(s: &str) -> u32 {
let mut result = 0 as u32;
for b in s.as_bytes().iter() {
result = (result<<8) | *b as u32;
}
result
}
@flaper87
flaper87 / macros.rc
Last active January 1, 2016 04:49
Useful mutt macros
View macros.rc
# Mark all as read
# Use _ to collapse-all threads
macro index .r "<limit>~N<enter><tag-pattern>~N<enter><tag-prefix><clear-flag>N<clear-flag>*<untag-pattern>~T<enter><limit>all<enter>" "party time, excellent"
# Toggle pager full-screen
# Tweak `pager_index_lines`
macro pager indexOn "<enter-command>set pager_index_lines="30"; macro pager V indexOff 'Toggle emails index'<enter><redraw-screen>"
macro pager indexOff "<enter-command>set pager_index_lines="0"; macro pager V indexOn 'Toggle emails index'<enter><redraw-screen>"
macro pager V indexOff 'Toogle emails index'