Skip to content

Instantly share code, notes, and snippets.

@AndyA
Created July 3, 2015 14:18
Show Gist options
  • Select an option

  • Save AndyA/56b4bc323281ec8f7836 to your computer and use it in GitHub Desktop.

Select an option

Save AndyA/56b4bc323281ec8f7836 to your computer and use it in GitHub Desktop.
mkdir revo.tthtesting.co.uk
cd revo.tthtesting.co.uk/
ls ../sjh.tthtesting.co.uk/
ls -ld
mkdir www logs
cd www
#wget -c http://wordpress.org/latest.tar.gz
cd ..
rm -rf www/
wget -c http://wordpress.org/latest.tar.gz
ls
tar zxf latest.tar.gz
ls
mv wordpress www
ls www/
mysql -uroot
cd /etc/apache2/sites-available/
ls
ls -l
cat sjh.tthtesting.co.uk
cp sjh.tthtesting.co.uk revo.tthtesting.co.uk
vim revo.tthtesting.co.uk
a2ensite revo.tthtesting.co.uk
apache2ctl configtest
service apache2 reload
cd /home/smoo/revo.tthtesting.co.uk/
ls
host ernie.hexten.net
ll
cd /home/smoo/sjh.tthtesting.co.uk/
la
ll
cat .git/hooks/post-merge
host revo.tthtesting.co.uk
#chown www-data:www-data
ls -l
chown -R www-data:www-data www
ls -l
ps axuf | grep apache2
cd www
ls
cat wp-config.php
vim .gitignore
cd ..
ls
ls -l
chown -R smoo:staff .
ls -l
cd www/
ls
chgrp -R www-data wp-content
ls -l
chmod -R g+rwX ../..
ls -l
cd .
cd ..
sudo -s
cd /home/smoo/revo.tthtesting.co.uk/
ls -l
rm latest.tar.gz
git init .
vim logs/.gitignore
ls -l ../sjh.tthtesting.co.uk/
sudo chmod -R a+w logs
ls
git add logs/.gitignore
git add www/.gitignore
git st
git add .
git rm -f www/wp-config-sample.php
git commit -v
git st
ls .git/hooks
cat ../sjh.tthtesting.co.uk/.git/hooks/post-merge
cp ../sjh.tthtesting.co.uk/.git/hooks/post-merge .git/hooks/
cat .git/hooks/post-merge
cat /opt/rf2/.git/hooks/post-merge
ls -l
ls www/
ls -l www/
chmod 664 wp-config.php
cd www/
chmod 664 wp-config.php
sudo chmod 664 wp-config.php
ls -l
sudo chmod u=rw,g=rw,o=r wp-config.php
ls -l wp-config.php
cd ..
vim dostuff.sh
rm dostuff.sh
vim dostuff.sh
bash dostuff.sh
vim dostuff.sh
bash dostuff.sh
vim dostuff.sh
rm dostuff.sh
mkdir config
cp /etc/apache2/sites-available/revo.tthtesting.co.uk config/
git add config/
git commit -v
ls
git log
cd ../revo.tthtesting.co.uk/
ls
ls -la
sudo chown -R smoo .
ll
ls -la
ls
cp ../sjh.tthtesting.co.uk/dbsave.cfg
cp ../sjh.tthtesting.co.uk/dbsave.cfg .
vim dbsave.cfg
dbsave
ll
ls -l sql/
git add sql dbsave.cfg
git commit -v
sudo chown -R smoo .
ls -l
id
who
cd ..
cat .bashrc
ll
alias
cd sjh.tthtesting.co.uk/
ls -l
git log
ls -la
cd www/
cat .gitignore
cd ..
ls
which dbsave
git remote -v
sudo -s
tail -n 1000 ~/.bash_history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment