Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# From here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# Thanks to https://raw.github.com/gist/2776679/b4f5f5ff85bddfa9e07664de4e8ccf0e115e7b83/install-redis.sh
# Uses redis-server init script from https://raw.github.com/saxenap/install-redis-amazon-linux-centos/master/redis-server
###############################################
# To use:
# wget https://raw.github.com/saxenap/install-redis-amazon-linux-centos/master/redis-install-script.sh
# chmod 777 redis-install-script.sh
# ./redis-install-script.sh
###############################################
# Aerospike database configuration file.
# This stanza must come first.
service {
user root
group root
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
pidfile /var/run/aerospike/asd.pid
service-threads 4
transaction-queues 4
/opt/nginx/logs/access.log /opt/nginx/logs/error.log {
copytruncate
daily
dateext
dateformat .%Y%m%d
compress
compressext .gz
notifempty
sharedscripts
olddir /opt/nginx/logs
#!/bin/bash
### VARIABLES ###
PRE_PACK="openssl-devel pcre-devel make gcc"
VER="1.5.1"
# Setup Colours
black='\E[30;40m'
red='\E[31;40m'
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /usr/local/nginx/conf/nginx.conf
# pidfile: /usr/local/nginx/logs/nginx.pid
@julianovidal
julianovidal / redis-server
Last active August 29, 2015 14:22
redis-server
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid
<script type="text/javascript">
(function() {
var mr = '&r=' + Math.floor(Math.random() * 99999999999);
var mhl = document.createElement('script'); mhl.type = 'text/javascript'; mhl.async = true;
mhl.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'tags.meltdsp.com/platform/tagHigh?p=5611_0_0_0_0_0_1_1' + mr;
var pms = document.getElementsByTagName('script')[0]; pms.parentNode.insertBefore(mhl, pms);
})();
</script>
[
{"title": "Username squatting policy", "content": ["Username squatting is prohibited by the ", "Please note that if an account has had no updates, no profile image, and there is no intent to mislead, it typically means there's no name-squatting or impersonation. Note that we will not release squatted usernames except in cases of trademark infringement. If your report involves ", "Attempts to sell, buy, or solicit other forms of payment in exchange for usernames are also violations and may result in permanent account suspension."]},
{"title": "Username squatting policy", "content": ["Username squatting is prohibited by the ", "Please note that if an account has had no updates, no profile image, and there is no intent to mislead, it typically means there's no name-squatting or impersonation. Note that we will not release squatted usernames except in cases of trademark infringement. If your report involves ", "Attempts to sell, buy, or solicit other forms of payment in exchange for usernames are also violation