Skip to content

Instantly share code, notes, and snippets.

@jephir
jephir / playbook.yml
Created September 4, 2014 19:30
Ansible Playbook for installing Revel
---
- hosts: all
tasks:
- name: install go
pkgng: name=go
sudo: yes
- name: install git
pkgng: name=git
sudo: yes
- name: install mercurial
@jephir
jephir / Vagrantfile
Created September 4, 2014 19:29
Vagrantfile for FreeBSD with Ansible
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "chef/freebsd-10.0"
config.vm.network "private_network", type: "dhcp"
config.vm.synced_folder ".", "/vagrant", type: "nfs"
@jephir
jephir / gist:bdbeaa2d67aba8963b16
Last active August 29, 2015 14:05
Ability to create building (Dota 2 Workshop Tools)
"colonist_build_base"
{
"BaseClass" "ability_datadriven"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_CHANNELLED"
"AbilityCastRange" "350"
"AbilityManaCost" "0"
"AbilityChannelTime" "1"
"OnChannelSucceeded"
@jephir
jephir / gist:5548165
Last active December 17, 2015 04:09
Vim replace command (regex) for converting C int preprocessor defines to Rust constants
:%s/\v\#define (\w+)\s*(.+)/pub static \1: c_int = \2;