Skip to content

Instantly share code, notes, and snippets.

@aivils
aivils / rails-thin-vbox-bash-friends
Last active December 11, 2015 17:19
This is bash script which creates virtual box prepared to run Ruby On Rails web server.
#!/bin/bash
# set up your server
# ssh [email protected] < rails-vbox
#
# set up vagrant box
# vagrant up
# vagrant ssh < rails-vbox
export DOMAIN='example.com'
export HOSTNAME='mail.example.com'
@aivils
aivils / apply-repo-patch
Last active February 19, 2020 17:00
Applies patch created by 'repo diff' command Android Open Source Project
#!/bin/bash
# Android
## Script to patch up diff reated by `repo diff`
if [ -z "$1" ] || [ ! -e "$1" ]; then
echo "Usages: $0 <repo_diff_file>";
exit 0;
fi