Skip to content

Instantly share code, notes, and snippets.

@adowning
adowning / install.sh
Last active November 4, 2023 11:11 — forked from hebertcisco/install.sh
Ubuntu Installation Automation
#!/bin/bash
## By Hebert F. Barros 2019
## Removing any apt ## crashes
sudo rm /var/lib/dpkg/lock-frontend ; sudo rm /var/cache/apt/archives/lock ;
sudo apt-get update
echo 'installing curl'
sudo apt install curl -y
@adowning
adowning / tile38.service
Created December 15, 2019 15:08 — forked from mithereal/tile38.service
tile38 systemd script
[Unit]
Description=Advanced Geolocation store
After=network.target
Documentation=http://tile38.com/documentation/, man:redis-server(1)
[Service]
Type=forking
ExecStart=/srv/geodb/tile38-server
PIDFile=/var/run/tile38/tile38-server.pid
TimeoutStopSec=0
@adowning
adowning / Procfile
Created November 29, 2019 06:34 — forked from revant/Procfile
Use node server with frappe-bench
redis_cache: redis-server config/redis_cache.conf
redis_socketio: redis-server config/redis_socketio.conf
redis_queue: redis-server config/redis_queue.conf
web: bench serve --port 8000
socketio: /usr/bin/node apps/frappe/socketio.js
custom_app: /usr/bin/node apps/custom_app/custom_node.js
watch: bench watch
schedule: bench schedule
worker_short: bench worker --queue short
@adowning
adowning / README.md
Created November 17, 2019 20:06 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]

[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
@adowning
adowning / ubuntu setup
Last active January 27, 2020 12:19 — forked from surajreddy6/ubuntu_install.sh
Setting up dev environment on a fresh install of Ubuntu 18.04 LTS
#/!bin/bash
# update
apt update
# apt -y upgrade
adduser ash
usermod -aG ash
# install package management tools
@adowning
adowning / ubuntu_1606_install_docker.bash
Last active May 18, 2018 15:40 — forked from alvin2ye/ubuntu_1606_install_docker.bash
ubuntu 16.04 install docker & docker-compose
#!/bin/bash
# Run this as root
# Configure docker repo
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
@adowning
adowning / install-mongo.sh
Created December 15, 2017 11:47 — forked from rodrigo-galba/install-mongo.sh
Ubuntu 16: MongoDB install
#!/bin/bash -x
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl enable mongod
sudo vim /etc/mongod.conf
-- change access config if necessary
sudo systemctl start mongod
@adowning
adowning / install-mongo.sh
Created December 15, 2017 11:47 — forked from rodrigo-galba/install-mongo.sh
Ubuntu 16: MongoDB install
#!/bin/bash -x
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl enable mongod
sudo vim /etc/mongod.conf
-- change access config if necessary
sudo systemctl start mongod
@adowning
adowning / install.sh
Last active July 9, 2021 19:44 — forked from insane-dev/install.sh
Lemp stack for Ubuntu 16.04 (PHP7, Nginx, MySql, MongoDB, PhpMyAdmin, Git, Node.js, Bower, Gulp, Docker, Composer(with asset plugin), Dnsmasq)
#
#
#
#
#!/bin/bash
#mkdir -p /root/.ssh
#chmod 600 /root/.ssh
#chmod 700 /root/.ssh/authorized_keys
@adowning
adowning / install.sh
Created December 14, 2017 22:56 — forked from meSingh/install.sh
Lemp stack for Ubuntu 16.04 (PHP7, Nginx, MongoDB, Git, Composer(with asset plugin))
#!/bin/bash
echo "Please, enter your username, it will be added to 'sudo' and 'docker' groups during the process."
read USERNAME
if [ -z "$USERNAME" ] ; then
echo "Exiting... Done."
exit
else
echo "Adding user to 'sudo' group..."