Skip to content

Instantly share code, notes, and snippets.

@xemoe
Last active April 1, 2022 10:47
Show Gist options
  • Save xemoe/2a22ebcc18e5bdcca536d83b2c19f93c to your computer and use it in GitHub Desktop.
Save xemoe/2a22ebcc18e5bdcca536d83b2c19f93c to your computer and use it in GitHub Desktop.
urd setup

setup dotfiles

sudo apt-get update
sudo apt-get install git
sudo locale-gen
sudo dpkg-reconfigure locales
git clone https://gist.github.com/675e0a9251a294537b9c.git dotfiles_setup
cd ./dotfiles_setup
./main.sh --pkg=common --user=srandev install
chsh -s /bin/zsh

setup ansible

git clone https://[email protected]/xemoe/urd_ansible.git

-- ubuntu 16.04 --
sudo ./ubuntu_install_ansible.sh

-- debian --
sudo ./debian_install_ansible.sh

sudo pip2 install -U pyOpenSSL

setup web

ansible-playbook -i "localhost," -c local prepare.yml
ansible-playbook -i "localhost," -c local server.yml
ansible-playbook -i "localhost," -c local vendor.yml

sudo aptitude install apache2 libapache2-mod-php7.1 php7.1-bcmath php7.1-xml

upgrade nodejs

sudo npm cache clean -f
sudo npm install -g n
sudo n stable
# vim: set filetype=apache:
# vim: syntax=apache
<VirtualHost *:80>
ServerName urd.testing
ServerAlias http_urd
ServerAdmin [email protected]
DocumentRoot /var/www/urd_web/public
<Directory /var/www/urd_web/public>
Options -Indexes -Includes +FollowSymLinks +MultiViews
Require all granted
AllowOverride All
Order allow,deny
allow from all
</Directory>
ServerSignature Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine On
RewriteCond %{THE_REQUEST} !HTTP/1.1$
RewriteRule .* - [F]
</VirtualHost>
@xemoe
Copy link
Author

xemoe commented Aug 25, 2021

git config --global alias.st status
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"

@xemoe
Copy link
Author

xemoe commented Nov 23, 2021

@xemoe
Copy link
Author

xemoe commented Nov 23, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment