- to set up FreeBSD by Vagrant on macOS
- to execute provisioning with sudo required
The box of FreeBSD on Vagrant Cloud
| #!/usr/bin/env bash | |
| # This script cleans up your EC2 instance before baking a new AMI. | |
| # Run the following command in a root shell: | |
| # | |
| # bash <(curl -s https://gist.github.com/emopinata/64e004b4dd35f6b3568069e3910dec05/raw/ami-clean.sh) | |
| function print_green { | |
| echo -e "\e[32m${1}\e[0m" | |
| } |
| <!-- Put in ./Library/Application Support/Plex Media Server/Profiles/Android-SHIELD Android TV.xml --> | |
| <!-- Author: Donald Webster <fryfrog@gmail.com> --> | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <Client name="SHIELD Android TV"> | |
| <Identification> | |
| <Header name="User-Agent" substring="SHIELD Android TV" /> | |
| </Identification> | |
| <TranscodeTargets> | |
| <VideoProfile container="mkv" codec="h264" audioCodec="aac" context="streaming" /> | |
| <MusicProfile container="flac" codec="flac" id="StereoMusicTranscodeProfile" /> |
The box of FreeBSD on Vagrant Cloud
| version: '2' | |
| services: | |
| hub: | |
| image: selenium/hub | |
| ports: | |
| - "4444:4444" | |
| networks: | |
| - selenium-grid | |
| chrome: |
| #!/usr/bin/env bash | |
| PGSQL_DATA_PATH='/data/pg' | |
| SERVER_CONTAINER="postgresql-server" | |
| DATA_CONTAINER="postgresql-data" | |
| function getStatus(){ | |
| CONTAINER_ID=$(docker ps -a | grep -v Exit | grep $SERVER_CONTAINER | awk '{print $1}') | |
| if [[ -z $CONTAINER_ID ]] ; then | |
| echo 'Not running.' |