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
--- │Kernel has been successfully updated to kernel-3.10.0-957.5.1.el7.x86_64! | |
- hosts: webservers │[ansible@digistro3c ~]$ cd | |
become: true │[ansible@digistro3c ~]$ ls | |
tasks: │inventory.ini playbooks | |
- name: Install packages │[ansible@digistro3c ~]$ cd playbooks/ | |
yum: |
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
[webservers] | |
foo.example.com | |
bar.example.com | |
[dbservers] | |
one.example.com | |
two.example.com | |
three.example.com | |
[control] |
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
--- # Bootstrap Webservers | |
- hosts: webservers | |
become: yes | |
tasks: | |
- name: install httpd | |
yum: | |
name: httpd | |
state: latest | |
- name: create index.html | |
file: |
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
version: '3.1' # if no version is specificed then v1 is assumed. Recommend v2 minimum | |
services: # containers. same as docker run | |
servicename: # a friendly name. this is also DNS name inside network | |
image: # Optional if you use build: | |
command: # Optional, replace the default CMD specified by the image | |
environment: # Optional, same as -e in docker run | |
volumes: # Optional, same as -v in docker run | |
servicename2: |
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 | |
# | |
# Litecoin CPU Mining setup on Ubuntu Server | |
# | |
sudo apt-get update; | |
# install prerequisit software/libs | |
sudo apt-get -y install make automake build-essential libcurl4-openssl-dev htop |
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
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
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
set timeout 5 | |
spawn telnet [lindex $argv 0] [lindex $argv 1] | |
expect "Connected" | |
send "PING\n" | |
expect "+PONG" | |
send "QUIT" | |
#usage: expect redis.expect <host> <port> |
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
# ----------------------------------------------------------------- | |
# .gitignore for WordPress | |
# Bare Minimum Git | |
# http://ironco.de/bare-minimum-git/ | |
# ver 20150227 | |
# | |
# This file is tailored for a WordPress project | |
# using the default directory structure | |
# | |
# This file specifies intentionally untracked files to ignore |
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 | |
# ----------------------------------------------------------------------- | |
# Installs Ruby 2.3 using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
# | |
# Run from the web: | |
# bash <(curl -s raw_script_url_here) | |
# ----------------------------------------------------------------------- | |
# Set up variables |
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
# ~/.bash_profile | |
[[ -s ~/.bashrc ]] && source ~/.bashrc | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
alias ls='ls -GFh' | |
alias ll='ls -l' |