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
    
  
  
    
  | ############################################################### | |
| Apache Installation | |
| ############################################################### | |
| # Install required tools for compilation | |
| sudo yum install autoconf expat-devel libtool libnghttp2-devel pcre-devel -y | |
| # Download source code | |
| cd #switch to home dir | |
| curl -O -L https://github.com/apache/httpd/archive/2.4.37.tar.gz #latest stable release Apache | 
  
    
      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
    
  
  
    
  | selinux steps: | |
| # Check for any avc_denied | |
| vi /var/log/audit/audit.log | |
| # Gives a snippet for each denied as to why | |
| audit2allow -w -a | |
| # Shows what allow directives would allow the denied actions | |
| audit2allow -a | 
  
    
      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
    
  
  
    
  | # The upstream module is the link between Node.js and Nginx. | |
| # Upstream is used for proxying requests to other servers. | |
| # All requests for / get distributed between any of the servers listed. | |
| upstream helloworld { | |
| # Set up multiple Node.js webservers for load balancing. | |
| # max_fails refers to number of failed attempts | |
| # before server is considered inactive. | |
| # weight priorities traffic to server. Ex. weight=2 will recieve | |
| # twice as much traffic as server with weight=1 | |
| server <your server ip>:3000 max_fails=0 fail_timeout=10s weight=1; | 
  
    
      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
    
  
  
    
  | site_name: <name> | |
| # Site tree | |
| nav: | |
| - First Tab: README.md | |
| repo_url: <github_url> | |
| repo_name: <git_name> | |
| # Configuration | 
  
    
      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
    
  
  
    
  | /* pkcs12.h */ | |
| /* | |
| * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project | |
| * 1999. | |
| */ | |
| /* ==================================================================== | |
| * Copyright (c) 1999 The OpenSSL Project. All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | 
  
    
      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 | |
| iatest=$(expr index "$-" i) | |
| ####################################################### | |
| # SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me | |
| ####################################################### | |
| # Source global definitions | |
| if [ -f /etc/bashrc ]; then | |
| . /etc/bashrc | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env bash | |
| set -x | |
| server="$(hostname)" | |
| server_ip="$(hostname -I | awk '{print $1}')" | |
| server_ip6="$(hostname -I | awk '{print $NF}')" | |
| sshport=1024 | |
| # Update and configure ssh | |
| apt update && apt upgrade -y | |
| apt install htop speedtest-cli -y | 
  
    
      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
    
  
  
    
  | #! /usr/bin/env bash | |
| # Script to install NixOS from the Hetzner Cloud NixOS bootable ISO image. | |
| # Wipes the disk! | |
| # Tested with Hetzner's `NixOS 20.03 (amd64/minimal)` ISO image. | |
| # | |
| # Run like: | |
| # | |
| # curl https://nh2.me/nixos-install-hetzner-cloud.sh | sudo 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
    
  
  
    
  | ---------------------------------------------------------------------------------------------------- | |
| Vi stands for Visual,Vim stands for Vi IMproved. | |
| ---------------------------------------------------------------------------------------------------- | |
| Type o (lower case) to insert, or open, a blank line below the current line. | |
| Type O (upper case) to insert a blank line above the current line | |
| ---------------------------------------------------------------------------------------------------- | |
| end of file -> press the Esc key and then press Shift + G to move cursor to end of file | |
| ---------------------------------------------------------------------------------------------------- | |
| :set nonumber #disable the absolute line numbers off | |
| :set number! #toggle the line numbers |