Skip to content

Instantly share code, notes, and snippets.

View Schnitzel's full-sized avatar

Michael Schmid Schnitzel

View GitHub Profile
#!/bin/bash
# Script for placing sudoers.d files with syntax-checking
if [ -z "$1" ]; then
# Making a temporary file to contain the sudoers-changes to be pre-checked
TMP=$(mktemp)
cat > $TMP <<EOF
Cmnd_Alias VAGRANT_EXPORTS_ADD = /bin/su root -c echo '*' >> /etc/exports
Cmnd_Alias VAGRANT_NFSD = /etc/init.d/nfs-kernel-server restart
Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /bin/sed -e /*/ d -ibak /etc/exports
#!/bin/bash
# Add Vagrant's NFS setup commands to sudoers, for `vagrant up` without a password
# Updated to work with Vagrant 1.3.x
# Stage updated sudoers in a temporary file for syntax checking
TMP=$(mktemp -t vagrant_sudoers)
cat /etc/sudoers > $TMP
cat >> $TMP <<EOF
# Allow passwordless startup of Vagrant when using NFS.
$buttons-sprite-dimensions: true;
$buttons-layout:horizontal;
@import "buttons/*.png";
$buttons-sprites: sprite-map("buttons/*.png");
@each $icon in 'text-link', 'picture', 'video' {
label[for=edit-field-article-type-und-#{$icon}]{
@include buttons-sprite(#{$icon}_big);
&.active {
@Schnitzel
Schnitzel / readme
Created July 26, 2011 14:00
rapperswil-jona.ch CSS Fixes
We have now a full GIT Repository:
https://github.com/Schnitzel/RJ-CSS-Fixes
If you want to help, create a GITHub Account and edit the rj.css file (with forking it and make a pull request)