Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //! If you use Gitpod codespaces
- sudo passwd root
- su root
- !//
- rm -r .*
- # Check with "lsb_release -cs" which operating system you have...
- # Based on the operating system, use this legend:
- ## Linux Debian 12 = 12MqJjMq
- ## Linux Debian 11 = uUEuWcH4
- ## Linux Debian 10 = 7eUKEiKr
- ## Linux Debian 9 = 0VdKRtvS
- ## Linux Ubuntu 23.04 = tSwvv4Gg
- ## Linux Ubuntu 22.10 = H0SrNLEH
- ## Linux Ubuntu 22.04 = RJE5fy1S
- ## Linux Ubuntu 20.04 = gmhNQf48
- ## Linux Ubuntu 18.04 = gGyf8LyH
- ## Linux Ubuntu 16.04 = UCUn7Gqr
- ## Linux Ubuntu 14.04 = 41W96usZ
- osVersion=
- rm -r /etc/apt/sources.list*
- wget https://pastebin.com/raw/$osVersion -O /etc/apt/sources.list
- apt update
- apt upgrade -y
- # If you use Gitpod codespaces
- rm -r /nix /home/gitpod
- rm -r /*/*/*/apache2
- rm -r /*/*/*/*/apache2
- rm -r /*/*/*/*/*/apache2
- apt install apache2* -y
- rm -r /var/www/html/*
- apt install software-properties-common -y
- add-apt-repository ppa:ondrej/php
- apt update
- apt install php8.1 php8.1-cli php8.1-common php8.1-curl php8.1-gd php8.1-intl php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-readline php8.1-xml php8.1-xsl php8.1-zip php8.1-bz2 libapache2-mod-php8.1 -y
- # Git
- ## Basic
- git config --global user.email "YourMail"
- git config --global user.name "YourName"
- ## Clone a repository manual
- git init
- git remote add origin REPOSITORY
- git checkout -b BRANCH # If the repository is empty
- git pull origin BRANCH # If the repository is not empty
- git branch -m BRANCH
- ### If you use Gitpod codespaces
- chown gitpod:gitpod *
- chown gitpod:gitpod */*
- chown gitpod:gitpod */*/*
- chown gitpod:gitpod */*/*/*
- chown gitpod:gitpod */*/*/*/*
- chown gitpod:gitpod */*/*/*/*/*
- chown gitpod:gitpod .*
- ## Gerrit
- git checkout
- f="$(git rev-parse --git-dir)/hooks/commit-msg"; curl -o "$f" https://gerrit.wikimedia.org/r/tools/hooks/commit-msg ; chmod +x "$f"
- bash .git/hooks/commit-msg .git/COMMIT_EDITMSG
- git commit --amend --no-edit
- git push origin HEAD:refs/for/master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement