Skip to content

Instantly share code, notes, and snippets.

CvaB SRD

Core Mechanic:

When attempting something difficult, roll 2d6+mod, mods are relevant positive and negative factors (max +3, min -3).

  • Helpful mods give +1 each, harmful mods give -1 each, E.g. 2d6 +/-1 concept +1 proficiency +/-n environment.
  • Results: 6- is a miss, 7-9 is a partial success, 10-12 is a complete success, 13+ is a critical success.

Character Creation:

calculateSize = (value) ->
if value < 768
mode = 'XS - Mobile'
if value > 768 and value < 992
mode = 'SM - Tablet'
if value > 992 and value < 1200
mode = 'MD - Laptop'
if value > 1200
mode = 'LG - Monitor'
mode
@pixind
pixind / nginx_conf.sh
Created November 28, 2013 17:14
nginx base config for 2 cores
#!/usr/bin/env bash
cat /dev/null > /etc/nginx/nginx.conf
cat > /etc/nginx/nginx.conf << EOL
user www-data;
worker_processes 2;
pid /run/nginx.pid;
events {
@pixind
pixind / nginx_botstrap.sh
Created November 28, 2013 16:41
Automated script 4 nginx base install
#!/usr/bin/env bash
apt-get -y update
apt-get install nginx
cat > /etc/nginx/sites-enabled/default << EOL
server {
listen 80 default_server;
server_name _;
#!/usr/bin/env bash
apt-get -y update
apt-get -y install vim git curl build-essential zlib1g-dev libssl-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.gz
tar -xvzf ruby-1.9.3-p448.tar.gz
cd ruby-1.9.3-p448/
./configure --prefix=/usr/local
make
make install
#!/usr/bin/env bash
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
exec $SHELL -l
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install --list
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libyaml-dev git-core vim imagemagick libmagickwand-dev nodejs libxslt-dev libxml2-dev libreadline-dev
@pixind
pixind / chef_solo_bootstrap.sh
Last active December 14, 2015 12:18
Chef Bootstrap compatible with ngix::source
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install
@pixind
pixind / gist:5065177
Created March 1, 2013 14:57
Utility to add PPA repositories in your debian machine
#!/bin/bash
if [ $# -eq 1 ]
NM=`uname -a && date`
NAME=`echo $NM | md5sum | cut -f1 -d" "`
then
ppa_name=`echo "$1" | cut -d":" -f2 -s`
if [ -z "$ppa_name" ]
then
echo "PPA name not found"
echo "Utility to add PPA repositories in your debian machine"