Skip to content

Instantly share code, notes, and snippets.

View valentinbud's full-sized avatar

Valentin Bud valentinbud

View GitHub Profile
wget -O ~/.dircolors https://raw2.github.com/seebi/dircolors-solarized/master/dircolors.ansi-dark
cat >> ~/.zshrc <<EOF
# DIRCOLORS
eval `dircolors ~/.dircolors`
EOF
FROM ubuntu:trusty
MAINTAINER "Valentin Bud <valentin@my-football-team.com>"
# Update the Operating System
RUN apt-get update && apt-get upgrade -y
# Install PHP and Requirements
RUN apt-get install php php-fpm -y
# Add code in image
FIRST TRY
### REMOVE FLOWS
process do |nic|
@nic = nic
if @nic[:ovs_insecure] == "YES"
ovs.deactivate
end
@valentinbud
valentinbud / up.sls
Created May 7, 2015 20:00
cloudgist#0
#!py
import salt.utils.smtp as smtp
import salt.cloud.clouds.opennebula as ONE
import logging
import xmlrpclib
import xml.etree.ElementTree as ET
import binascii
import os
### VERBOSE BUILD
$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install fcgiwrap
==> Downloading https://github.com/downloads/gnosek/fcgiwrap/fcgiwrap-1.0.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/fcgiwrap-1.0.3.tar.gz
tar xf /Library/Caches/Homebrew/fcgiwrap-1.0.3.tar.gz
==> autoreconf -i
autoreconf -i
Can't exec "aclocal": No such file or directory at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
@valentinbud
valentinbud / error
Last active December 20, 2015 12:39
----------
State: - service
Name: nginx
Function: running
Result: False
Comment: The following requisites were not found:
watch: {'file': '/etc/nginx/sites-enabled/*'}
watch: {'file': '/etc/nginx/nginx.conf'}
watch: {'file': '/etc/nginx/conf.d/*.conf'}
openldap-server:
{% if grains['os'] == 'Debian' %}
package:
name: slapd
version: 2.4.23-7.3
service: slapd
{% endif %}
cn:
config:
#!/bin/bash
#
# This hook updates the local pillar data.
# It basically runs `git pull` in salt master's
# pillar_roots directory.
#
# Only suports one environment - base. The branch is master
# and the environment production.
#
remote: UPDATING LOCAL PILLAR
remote: /srv/salt/salt-pillar
remote: fatal: Not a git repository: '.'
import os
def get_ssh_public_key():
pub_key = ''
with open("/var/lib/one/.ssh/id_rsa.pub", 'rb') as infile:
for line in infile:
pub_key += line
return {'oneadmin_public_key' : pub_key}