NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl http://npmjs.org/install.sh | sh |
| # vi: ft=dosini | |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = pavan.sss1991@gmail.com | |
| username = pksunkara | |
| [core] | |
| editor = nvim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| pager = delta | |
| [column] |
| // @import compass/css3 | |
| // @import compass/layout | |
| // @import compass/reset | |
| // @import compass/reset-legacy | |
| // @import compass/support | |
| // @import compass/typography | |
| // @import compass/utilities | |
| // | |
| // @import compass/css3/appearance | |
| // @import compass/css3/background-clip |
| preferred_syntax = :sass | |
| http_path = '/' | |
| css_dir = 'assets/stylesheets' | |
| sass_dir = 'assets/sass' | |
| images_dir = 'assets/images' | |
| javascripts_dir = 'assets/javascripts' | |
| relative_assets = true | |
| line_comments = true | |
| # output_style = :compressed |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| #! /usr/bin/python | |
| from sys import argv | |
| from os.path import exists | |
| from os import makedirs | |
| from os import symlink | |
| from os import system | |
| import getopt | |
| # |
| # **postinstall.sh** is a script executed after Debian/Ubuntu has been | |
| # installed and restarted. There is no user interaction so all commands must | |
| # be able to run in a non-interactive mode. | |
| # | |
| # If any package install time questions need to be set, you can use | |
| # `preeseed.cfg` to populate the settings. | |
| ### Setup Variables | |
| # The version of Ruby to be installed supporting the Chef and Puppet gems |
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
| #!/bin/bash | |
| # usage: drupal-quick-dump user host database | |
| USER="$1" | |
| HOST="$2" | |
| DB="$3" | |
| DATE=`date +%Y%m%d` | |
| # Get User Password | |
| echo "Please provide the password for ${USER} on db ${DB} hosted at ${HOST}:" |
| #!/bin/bash | |
| # usage: drupal-quick-dump user host database | |
| USER="$1" | |
| HOST="$2" | |
| DB="$3" | |
| DATE=`date +%Y%m%d` | |
| # Get User Password | |
| echo "Please provide the password for ${USER} on db ${DB} hosted at ${HOST}:" |