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 | |
# | |
domain_name=$1 | |
# check arguements | |
if $1==''; then | |
domain_name='test' | |
fi | |
# install server |
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
import os | |
def update_increment(start_number, directory=None, direction='increment'): | |
if directory is None: | |
directory = os.path.abspath('.') | |
for file_name in os.listdir(directory): | |
# The two characters of the filename are numbers |
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
/* | |
* CH.8 Vectors: Class Exercize | |
* | |
* Brian Teachman & Brandon Sobjack | |
* 8/11/2016 | |
*/ | |
#include "stdafx.h" | |
#include <iostream> | |
#include <vector> |
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
/* | |
* CH.10 Structs: Class Exercize | |
* | |
* Select the revision tab above for previous versions (github only) | |
* | |
* Revision 1: Brian Teachman, Brandon Sobjack, Carolyn Stratford | |
* Revision 2-7: Brian | |
* | |
* 8/16/2016 | |
*/ |
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
/* | |
* Write a C++ program that reads a word from the user into a C string and | |
* reports the number of vowels in the word.Then the program should read a | |
* whole line of text from the user into a string class variable and report | |
* the number of vowels in the whole line. | |
* | |
* For credit, give your instructor a line - by - line walkthrough of your | |
* code explaining how it works.Be prepared to modify your program to alter | |
* the algorithm in some way. | |
* |
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
/* | |
* Brian Teachman <[email protected]> | |
* Date : 8/18/2016 | |
*/ | |
#include "stdafx.h" | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <vector> |
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 | |
sudo apt-get update | |
sudo apt-get install apache2 apache2-utils -yq | |
sudo systemctl enable apache2 | |
sudo systemctl start apache2 | |
sudo apt-get install php libapache2-mod-php php-mysql -yq | |
sudo apt-get install php-curl php-gd php-mbstring php-xml php-xmlrpc -yq | |
sudo a2enmod rewrite | |
sudo systemctl restart apache2 | |
cd /var/www |
OlderNewer