Skip to content

Instantly share code, notes, and snippets.

@lonetwin
lonetwin / Git dot files management
Last active May 20, 2024 23:21
A simple way to manage dotfiles with git without silly symlinks and special tools. Just use negative matches in your .gitignore !
I like to manage dotfiles without having to mess with silly symlinks or having
to install/configure specific dotfile managament tools. So here's what I did:
$ cd ~
$ git init .
$ echo '*' > .gitignore # ignore all files by default
$ echo '!.bashrc' >> .gitignore # ...and then tell git what files not to *not* ignore
$ # ...add other files you may want to track to *not* ignore
$ git add .bashrc # now actually add the files to git
$ git add .gitignore # add the .gitignore to git
@kevingessner
kevingessner / gist:9509148
Last active April 27, 2023 15:45
Responsive emails that really work -- From Etsy's Code As Craft blog: http://codeascraft.com/2014/03/13/responsive-emails-that-really-work
<html>
<head>
<style type="text/css">
table table {
width: 600px !important;
}
table div + div { /* main content */
width: 65%;
float: left;
}
@natewalck
natewalck / gist:4750211
Created February 10, 2013 16:59
Create Puppet Group and Service Account
sudo puppet resource group puppet ensure=present
sudo puppet resource user puppet ensure=present gid=puppet shell='/sbin/nologin'
@dky
dky / gist:4600738
Created January 23, 2013 01:12
Puppet master list all certificate requests from clients.
puppet cert --all and --list
fixtures:
symlinks:
graylog2: "#{source_dir}"
hiera-puppet: "/etc/puppet/modules/hiera-puppet"
stdlib: "/etc/puppet/modules/stdlib"
@dizz
dizz / gist:2888421
Created June 7, 2012 11:59
execute foreman install
echo include puppet, puppet::server, foreman, foreman_proxy | puppet apply --modulepath /etc/puppet/modules/common/
We couldn’t find that file to show.