Please note: this deletes all data on the target device.
Install prerequisite:
sudo apt-get install p7zip-full
Assuming the target USB is at /dev/sdb
| { | |
| "preset": "per", | |
| "rules": { | |
| "align_multiline_comment": true, | |
| "array_indentation": true, | |
| "array_syntax": true, | |
| "blank_line_after_namespace": true, | |
| "blank_line_after_opening_tag": true, | |
| "combine_consecutive_issets": true, | |
| "combine_consecutive_unsets": true, |
| <?php | |
| declare(strict_types=1); | |
| use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector; | |
| use Rector\Config\RectorConfig; | |
| use Rector\Set\ValueObject\LevelSetList; | |
| use Rector\Set\ValueObject\SetList; | |
| return static function (RectorConfig $rectorConfig): void { |
| # ~/.config/starship.toml | |
| [battery] | |
| full_symbol = "🔋" | |
| charging_symbol = "🔌" | |
| discharging_symbol = "⚡" | |
| [[battery.display]] | |
| threshold = 30 | |
| style = "bold red" |
| # Starship command prompt configuration file. Colour choice and over-use of emoji | |
| # is to help blend in with Ubuntu MATE default theme, Ambiant-Mate. | |
| # disable starship from forcing a new line to be taken. Solved the empty line | |
| # at start of terminal | |
| add_newline = false | |
| [line_break] | |
| disabled = true |
| # Pass the env-vars to MYCOMMAND | |
| eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
| # … or ... | |
| # Export the vars in .env into your shell: | |
| export $(egrep -v '^#' .env | xargs) |
| <VirtualHost *:80> | |
| ServerAdmin me@mydomain.com | |
| DocumentRoot /var/www/site | |
| <Directory /var/www/site/> | |
| Options Indexes FollowSymLinks MultiViews | |
| AllowOverride All | |
| Order deny,allow | |
| Allow from all | |
| </Directory> |
| FROM ubuntu:latest | |
| MAINTAINER Dan Pupius <dan@pupi.us> | |
| # Install apache, PHP, and supplimentary programs. openssh-server, curl, and lynx-cur are for debugging the container. | |
| RUN apt-get update && apt-get -y upgrade && DEBIAN_FRONTEND=noninteractive apt-get -y install \ | |
| apache2 php7.0 php7.0-mysql libapache2-mod-php7.0 curl lynx-cur | |
| # Enable apache mods. | |
| RUN a2enmod php7.0 | |
| RUN a2enmod rewrite |
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |