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 | |
HELP=" | |
Created on: 20/01/2010 | |
By: Zachary Klippenstein | |
This script takes a local directory and a set of options | |
specifying how/where to connect to a remote Samba server, | |
and a newline-delimited list of paths on standard input. | |
The paths should be relative to the local directory and |
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 | |
# Created Fri Mar 22 2014 | |
# This is an indirect fork of https://gist.github.com/SeonghoonKim/4378896 | |
# Most of it was reworked from http://blog.basefarm.com/blog/how-to-install-logstash-with-kibana-interface-on-rhel/ | |
# This script will download, install and start | |
# the following items on CentOS 6.5: | |
# Logstash server 1.4.0 | |
# | |
# This script should be safe to run more than one time. YMMV | |
APP_ROOT="/opt" |
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
# cheat_sheet.org.sh | |
# The contents of this file are released under the GNU General Public License. Feel free to reuse the contents of this work, as long as the resultant works give proper attribution and are made publicly available under the GNU General Public License. | |
# Best viewed in emacs org-mode. | |
# Alternately, one can keep this cheat sheet handy by adding the following line to ~/.bashrc: | |
# | |
# alias cheatsheet="less ~/path_to_cheat_sheet.org.sh" | |
* Reference: | |
** Basics: |
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
# I book marked some sites with useful Linux commands i found. | |
# then i noticed they were down, so i loaded them via google cache, and copied here. | |
# source: http://blog.urfix.com/ | |
# source: http://www.pixelbeat.org/cmdline.html | |
# Enjoy! | |
# How to run process as background and never die | |
# | |
# nohup means: Do not terminate this process even when the stty is cut off. | |
# > /dev/null means: stdout goes to /dev/null (which is a dummy device that does not record any output). |
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 | |
# map_sync.sh - Jesse M. Pearson | |
# contact: [email protected] | |
# or | |
# irc.quakenet.org/#prae.nexuiz | |
# | |
# Description: | |
# A script to synchronise the latest files across a set of servers (server_list.txt). | |
# Its intended usage is through a cron task, though manually running it | |
# one-time via CLI would work, too. |
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 | |
# | |
# ###### ####### ###### ## ## ######## ## ####### ## ## | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## | |
# ## ## ## ## ##### ######## ## ## ## ### | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## | |
# ###### ####### ###### ## ## ######## ######## ####### ## ## | |
# |
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/sh | |
# VERSION 0.1 | |
# Last Updated 05/28/10 by Bryce McDonnell ( http://brycemcdonnell.com ) | |
#bash script to deploy a new Ubuntu desktop box for developing ruby/rails. This is a work in progress to be sure. I'll do my best to maintain this script to keep it current. | |
#Thanks to Lan Lelis for most of this workflow http://rbjl.net/18-you-don-t-need-a-macbook-to-code-ruby-and-rails | |
sudo -s |
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
#PROLOGUE: all this should be run as root, otherwise stated | |
#update && upgrade: | |
apt-get update && apt-get upgrade -y | |
#create a new user | |
adduser user_x | |
#create group admin (funny enough, it does not exist, although its accounted in the /etc/sudoers file): | |
addgroup --system admin |
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
https://www.exratione.com/2014/05/a-mailserver-on-ubuntu-1404-postfix-dovecot-mysql/ | |
Ex | |
Ratione | |
GitHub • Consulting • Blog • Archives • Feed | |
A Mailserver on Ubuntu 14.04: Postfix, Dovecot, MySQL | |
By Reason May 1, 2014 Permalink | |
This long post contains a recipe for building a reasonably secure Ubuntu 14.04 mail server in Amazon Web Services, using Postfix, Dovecot, and MySQL, with anti-spam packages in the form of amavisd-new, Clam AntiVirus, SpamAssassin, and Postgrey. Local users are virtual rather than being system users. Administration of users and domains is achieved through the Postfix Admin web interface. Webmail is provided by Roundcube. |
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
_ _ _ ____ _ _ | |
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| | | |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / | | |
| _ | (_| | (__| < | |_) | (_| | (__| <|_| | |
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_) | |
A DIY Guide for those without the patience to wait for whistleblowers | |
--[ 1 ]-- Introduction |