Skip to content

Instantly share code, notes, and snippets.

View jfchevrette's full-sized avatar

Jean-Francois Chevrette jfchevrette

  • Red Hat, Inc.
  • Montreal, Canada
View GitHub Profile
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
imap <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>
@jfchevrette
jfchevrette / gist:1112189
Created July 28, 2011 18:31
Ohai plugin to force the platform to centos
We couldn’t find that file to show.
@jfchevrette
jfchevrette / gist:2820851
Created May 28, 2012 19:39
salt disable selinux
/etc/sysconfig/selinux:
file.sed:
- before: 'enforcing'
- after: 'disabled'
- limit: '^SELINUX='
------------------------
# cat /etc/sysconfig/selinux
<?xml version="1.0" ?>
<lveconfig>
<defaults>
<cpu limit="25"/>
<ncpu limit="1"/>
<io limit="100"/>
<mem limit="262144"/>
<other maxentryprocs="25"/>
<pmem limit="262144"/>
<nproc limit="25"/>
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_style": "solid",
"close_windows_when_empty": true,
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Eighties.tmTheme",
"create_window_at_startup": false,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
vagrant@vagrant-ubuntu-raring-64:~ $ sudo salt-call state.highstate -l debug
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Guessing ID. The id can be explicitly in set /etc/salt/minion
[INFO ] Found minion id from getfqdn(): vagrant-ubuntu-raring-64
[INFO ] Configuration file path: /etc/salt/minion
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] loading grain in ['/var/cache/salt/minion/extmods/grains', '/usr/lib/python2.7/dist-packages/salt/grains']
[DEBUG ] Skipping /var/cache/salt/minion/extmods/grains, it is not a directory
[DEBUG ] loading module in ['/var/cache/salt/minion/extmods/modules', '/usr/lib/python2.7/dist-packages/salt/modules']
[DEBUG ] Skipping /var/cache/salt/minion/extmods/modules, it is not a directory
FROM ubuntu
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade
RUN apt-get install -y openssh-server supervisor
ADD sshd.conf /etc/supervisor/conf.d/sshd.conf
RUN mkdir -p /var/run/sshd
# Jenkins Stable
#
# VERSION 1.517/1.509.1
# DOCKER-VERSION 0.4.0
FROM base:ubuntu-12.10
MAINTAINER Victor Vieux <victor@vvieux.com>
# Install Jenkins Stable
RUN apt-get install wget -y
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-leaderboard.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'