Skip to content

Instantly share code, notes, and snippets.

View NikoRoberts's full-sized avatar

Niko Roberts NikoRoberts

View GitHub Profile
@NikoRoberts
NikoRoberts / clamav-mac.md
Last active July 7, 2019 10:35 — forked from Uchean/clamav-mac.md
Get ClamAV running on Mac OS X (using Homebrew)

Get ClamAV running on Mac OS X (using Homebrew)

The easiest way to get the ClamAV package is using Homebrew

$ brew install clamav

Before trying to start the clamd process, you'll need a copy of the ClamAV databases.

Create a freshclam.conf file and configure as so

@NikoRoberts
NikoRoberts / clamav-mac.md
Last active May 1, 2016 09:31
Get ClamAV running on Mac OS X (using Homebrew)

Get ClamAV running on Mac OS X (using Homebrew)

The easiest way to get the ClamAV package is using Homebrew

$ brew install clamav

Before trying to start the clamscan process, you'll need a copy of the ClamAV databases.

Create a freshclam.conf file and configure as so

@NikoRoberts
NikoRoberts / SublimeLinter.sublime-settings
Created June 11, 2015 14:10
SublimeLinter.sublime-settings
{
"user": {
"debug": true,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"haml": {
@NikoRoberts
NikoRoberts / internal web server
Last active August 29, 2015 14:07
Nginx reverse proxy with SSL termination
# on 10.133.0.2 - a private web server (can be used with different listen address on other web servers)
# /etc/nginx/sites-enabled/default
server {
# only listens to private network address on port 80
listen 10.133.0.2:80;
charset utf-8;
server_name localhost;
root /location/of/rails/app/current;
$ cd /usr/src
$ wget http://nginx.org/download/nginx-1.5.10.tar.gz
$ tar xzvf ./nginx-1.5.10.tar.gz && rm -f ./nginx-1.5.10.tar.gz
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.34.tar.gz
$ tar xzvf pcre-8.34.tar.gz && rm -f ./pcre-8.34.tar.gz
$ wget http://www.openssl.org/source/openssl-1.0.1l.tar.gz
$ tar xzvf openssl-1.0.1l.tar.gz && rm -f openssl-1.0.1l.tar.gz
# NOTICE: to get Nginx+Unicorn best-practices configuration see the gist https://gist.github.com/3052776
$ cd /usr/src
$ wget http://nginx.org/download/nginx-1.2.1.tar.gz
$ tar xzvf ./nginx-1.2.1.tar.gz && rm -f ./nginx-1.2.1.tar.gz
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz
$ tar xzvf pcre-8.30.tar.gz && rm -f ./pcre-8.30.tar.gz
$ wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
@NikoRoberts
NikoRoberts / subtext2settings
Last active December 19, 2015 07:49
My Sublime Text 2 settings
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
".tags*",
"*.pyc",
"*.pyo",
@NikoRoberts
NikoRoberts / production.rb
Created September 2, 2012 11:27
production.rb - Capistrano multi stage
# Set this to the version of RVM-managed Ruby on the remote server
# Run `rvm list` to get the exact version string
set :rvm_ruby_string, 'ruby-1.9.3-p194'
set :domain, '198.101.247.93'
role :web, domain # Your HTTP server, Apache/etc
role :app, domain # This may be the same as your `Web` server
role :db, domain, :primary => true # This is where Rails migrations will run
@NikoRoberts
NikoRoberts / deploy.rb
Created September 2, 2012 11:04
deploy.rb - multi stage
require 'rvm/capistrano'
require 'bundler/capistrano'
require 'capistrano/ext/multistage'
set :rvm_type, :user
default_run_options[:pty] = true # Must be set for the password prompt
set :stages, %w(staging production)
#set :default_stage, 'production'
@NikoRoberts
NikoRoberts / deploy.rb
Created September 2, 2012 11:00
deploy.rb - simple single stage
require "rvm/capistrano"
set :rvm_type, :user
default_run_options[:pty] = true # Must be set for the password prompt
set :application, "HelloWorld"
set :repository, "[email protected]:NikoRoberts/hellorackspace.git"
set :branch, "master"
set :deploy_via, :remote_cache
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`