This file contains hidden or 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
# | |
# /etc/systemd/system/mariadb.service | |
# | |
# This file is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or | |
# (at your option) any later version. | |
# | |
# Thanks to: | |
# Daniel Black |
This file contains hidden or 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
group :production do | |
gem "unicorn" | |
end |
This file contains hidden or 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
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rbenv' # for rbenv support. (http://rbenv.org) | |
# require 'mina/rvm' # for rvm support. (http://rvm.io) | |
# Basic settings: | |
# domain - The hostname to SSH to. | |
# deploy_to - Path to deploy into. | |
# repository - Git repo to clone from. (needed by mina/git) |
This file contains hidden or 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
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rvm' # for rvm support. (http://rvm.io) | |
set :domain, 'esdb.cn' | |
set :identity_file, '/User/somebody/.ssh/somebody.pem' | |
set :deploy_to, '/home/ubuntu/apps/xxx.com' | |
set :repository, 'ssh://[email protected]/somebody/xxx.com.git' | |
set :branch, 'master' |
This file contains hidden or 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/bash | |
# | |
# mysql-fullbackup.sh | |
# v0.1 - 20120921 | |
# | |
# Full Backup for Zabbix w/MySQL | |
# | |
# Author: Ricardo Santos (rsantos at gmail.com) | |
# http://zabbixzone.com | |
# |
This file contains hidden or 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
# This uses the Sequel gem to do the heavy lifting of connecting together the various | |
# DBs involved in this process. It was really difficult 2 weeks ago, and really easy yesterday. | |
# I love that. | |
require 'sequel' | |
require 'date' | |
# The Drupal DB | |
DB = Sequel.connect( |
This file contains hidden or 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
# ~/.gemrc | |
--- | |
:verbose: true | |
:bulk_threshold: 1000 | |
install: --no-ri --no-rdoc --env-shebang | |
:sources: | |
- http://gemcutter.org | |
- http://gems.rubyforge.org/ | |
- http://gems.github.com | |
:benchmark: false |
This file contains hidden or 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/bash | |
# a simple script to uninstall ossec (tested on debian) | |
# Author: Han The Thanh <h a n t h e t h a n h @ g m a i l . c o m> | |
# Public domain. | |
# this script has been tested on debian; it should also work on other linux | |
# systems but I have not tested. If you want to be careful and need to see what | |
# would be done without executing any real action, uncomment the following line: | |
# dryrun="echo " |