Skip to content

Instantly share code, notes, and snippets.

@Rykian
Rykian / tomcat6
Last active December 17, 2015 02:08 — forked from tcocca/tomcat6
#!/bin/sh -e
# chkconfig: 345 99 1
# description: Tomcat6 service
# processname: java
# Get LSB functions
. /lib/lsb/init-functions
export JAVA_HOME=/usr
export TOMCAT_USER=solr
#Use Apache as proxy for VM based on local DNS resolution
<VirtualHost *:80>
ServerName vm.example.com
ServerAlias *.vm.example.com
RewriteEngine on
RewriteCond %{HTTP_HOST} (.*)\.vm\.example\.com$
RewriteRule (.*)$ http://%1.vm.example.com/$1 [P]
</VirtualHost>
# http://darrinholst.com/post/18231749247
desc "tail log files"
task :tail, :roles => :app do
run "tail -f #{shared_path}/log/#{rails_env}.log" do |channel, stream, data|
puts "#{channel[:host]}: #{data}"
break if stream == :err
end
end
@Rykian
Rykian / SassMeister-input-HTML.html
Created April 15, 2014 19:57
Generated by SassMeister.com.
<div id="container1">
Container 1
</div>
<div id="container2">
Container 2
</div>
@Rykian
Rykian / .scss-lint.yml
Created April 27, 2016 10:26 — forked from meleyal/.scss-lint.yml
scss-lint `PropertySortOrder` config based on @mdo's Code Guide / recess
# based on http://git.io/hpl2Gw
linters:
PropertySortOrder:
order:
- position
- top
- right
- bottom
- left
@Rykian
Rykian / arch-ovh-baremetal.md
Last active April 20, 2023 00:24 — forked from d-513/arch-ovh.md
Arch Linux on OVH Baremetal

Install Arch on OVH Baremetal server

This guide will show you how to install Arch Linux on an OVH VPS.
As you may have noticed, OVH does not have an Arch image, which is a problem. Follow these instructions to install Arch using recovery mode.

Conventions

Assume anything reffered to as low ram vps in the guide to be a VPS with <8gb ram

This guide assumes the following:

  • Your VPS has one drive