Tested on Windows 10 & Ubuntu 16.
- Check that sshd on Ubuntu is properly configured
| @echo off | |
| ::start | |
| ::color 01 | |
| set input= | |
| set /p input=Password: | |
| cls | |
| if %input%==other goto 1 | |
| if %input%==exit goto quit | |
| @echo wrong password | |
| goto start |
| #!/bin/bash | |
| # Source : https://bytefreaks.net/gnulinux/bash/how-to-add-automatically-all-empty-folders-in-git-repository | |
| find $PATH_TO_REPOSITORY -type d ! -path "*.git*" -empty -exec touch '{}'/.gitkeep \; |
| #!/bin/bash | |
| # fix-code | |
| # author : @ultreson | |
| # Date created : August 2020 | |
| # argument 1 - directory to run the code sniffer on | |
| # example: fixcode.sh ~/myPhpProject | |
| # dependencies: phpcs, phpcbf, php-cs-fixer installed and included in PATH |
| #!/bin/sh | |
| # https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/ | |
| # ./create_ssh me@example.com mygit <-- creates ~/.ssh/mygit_rsa.pub and ~/.ssh/mygit_rsa | |
| if [ -n "$1" ]; then | |
| COMMENT=$1 | |
| else | |
| COMMENT=$USER | |
| fi |