-
Create a new user on the system:
adduser --system --group --shell /bin/sh --home /opt/localshop localshop
-
Clone localshop into /opt/localshop. (as of writing this README, localshop is outdated on pypi)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# init.d script for single or multiple unicorn installations. Expects at least one .conf | |
# file in /etc/unicorn | |
# | |
# based on git://gist.github.com/504875.git [http://github.com/jaygooby] | |
# support for RVM on Mac OS X | |
# Modified by JeremyWei<http://github.com/jeremy> | |
# | |
# run the code below, you will get a script named bootup_unicorn in ~/.rvm/bin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 8080 default_server deferred; | |
charset utf-8; | |
access_log /var/log/nginx/graphite.access.log; | |
error_log /var/log/nginx/graphite.error.log; | |
root /opt/graphite/webapp; | |
location /static/admin/ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Graphite Carbon Cache Daemon" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
expect daemon | |
respawn limit 10 5 | |
chdir /opt/graphite | |
pre-start exec rm -f /opt/graphite/storage/carbon-cache-a.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Riemann Dashboard" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
respawn limit 10 5 | |
setuid riemann | |
exec riemann-dash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set another default user than root for security reasons | |
user www-data; | |
# As a thumb rule: One per CPU. If you are serving a large amount | |
# of static files, which requires blocking disk reads, you may want | |
# to increase this from the number of cpu_cores available on your | |
# system. | |
# | |
# The maximum number of connections for Nginx is calculated by: | |
# max_clients = worker_processes * worker_connections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Graphiti" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
respawn limit 10 5 | |
chdir /opt/graphiti | |
kill signal QUIT | |
exec bundle exec unicorn -c config/unicorn.rb -E production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Queries the slowlog database table maintained by Amazon RDS and outputs it in | |
the normal MySQL slow log text format. Modified version of the script by | |
memonic (Thanks!) at https://gist.github.com/1481025 | |
Things to change in this script for your own setup: | |
<root_user> to your mysql root user (e.g. "root") | |
<root_pass> to your mysql root password (e.g. "hunter2") | |
<host_domain> to your mysql root password (e.g. "prod-01.w3rfs2.us-east-1.rds.amazonaws.com") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Redis Commander" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
respawn limit 10 5 | |
setuid www-data | |
exec redis-commander |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using BookSleeve; | |
namespace Redis | |
{ | |
public class RedisConnectionManager : IDisposable | |
{ |
OlderNewer