23 Jan 2012
Command | Description |
---|---|
csf -s | Start the firewall rules |
csf -f | Flush/Stop firewall rules (note: lfd may restart csf) |
#!/bin/bash | |
# | |
# description: Apache Tomcat init script | |
# processname: tomcat | |
# chkconfig: 234 20 80 | |
# | |
# | |
# Copyright (C) 2014 Miglen Evlogiev | |
# | |
# This program is free software: you can redistribute it and/or modify it under |
23 Jan 2012
Command | Description |
---|---|
csf -s | Start the firewall rules |
csf -f | Flush/Stop firewall rules (note: lfd may restart csf) |
var buttons; | |
buttons = document.getElementsByClassName('_42ft'); | |
for (var i = 0; i < buttons.length; i++) { | |
if(buttons[i].getAttribute('ajaxify') != null){ | |
if(buttons[i].getAttribute('ajaxify').indexOf('invite') != -1){ | |
buttons[i].click(); | |
} | |
} | |
} |
#!/bin/sh | |
# Install yum priorities to make sure we aren't going to try and install fedora on centos :s | |
yum install yum-priorities -y | |
# Import the GPG keys for package verification signatures | |
rpm --import https://fedoraproject.org/static/0608B895.txt | |
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi | |
# Install epel and remi repos |
I hereby claim:
To claim this, I am signing this object:
--- | |
######################################## | |
## Ansible Playbook for installing Nginx | |
######################################## | |
- name: check registered the repository of nginx-release | |
shell: rpm -qa | grep nginx-release | |
register: result | |
ignore_errors: True |
#Nginx Basics for Ubuntu
Please see http://wiki.nginx.org/Main for more information. See http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/ for a tutorial on how to install Nginx.
##Installation To install, you can install the version which is in the standard Ubuntu repositories but it is normally quite old and will not have the latest security patches. The best way is to update the repositories first:
apt-get update
apt-get install python-software-properties
apt-get upgrade
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
Ansible playbook to setup HTTPS using Let's encrypt on nginx. | |
The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS. | |
The server pass A rating on [SSL Labs](https://www.ssllabs.com/). | |
To use: | |
1. Install [Ansible](https://www.ansible.com/) | |
2. Setup an Ubuntu 16.04 server accessible over ssh | |
3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain | |
4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder) |
- hosts: webservers | |
user: vagrant | |
sudo: true | |
vars_files: | |
- vars.yml | |
tasks: | |
- name: Install MySQL | |
action: apt pkg=$item state=installed | |
with_items: |