What do you want to save?
Add Code snippet
New code examples
-
-
Shell/Bash 2021-09-14 23:32:02
install composer 2 ubuntu
sudo apt update sudo apt install php-cli unzip cd ~ curl -sS https://getcomposer.org/installer -o composer-setup.php HASH=`curl -sS https://composer.github.io/installer.sig` echo $HASH php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH... Add solution -
Python 2021-09-13 11:40:02
python check if website is reachable
import requests URL = "https://api.github.com" try: response = requests.head(URL) except Exception as e: print(f"NOT OK: {str(e)}") else: if response.status_code == 200: print("OK") else: pri... Add solution -
Shell/Bash 2021-09-10 18:31:03
git remove from add stage
To "undo" the "git add" commmand: If you need to remove a single file from the staging area, use git reset HEAD -- <file> If you need to remove a whole directory (folder) from the staging area, use git reset HEAD -- <direc... Add solution