Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target
[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf
[Install]
WantedBy=multi-user.target
#!/bin/bash
USER="vagrant"
MYSQL_PASSWORD="admin"
# Update & Install Prerequisites
apt-get update
apt-get install -y debconf-utils
# Install nginx
@clzola
clzola / IntentUtilities.java
Created September 16, 2017 19:48
IntentUtilities fb, insta, email
public class IntentUtilities {
/**
* <p>Intent to open the official Facebook app. If the Facebook app is not installed then the
* default web browser will be used.</p>
*
* https://stackoverflow.com/questions/4810803/open-facebook-page-from-android-app
*
* <p>Example usage:</p>
*
* {@code newFacebookIntent(ctx.getPackageManager(), "https://www.facebook.com/JRummyApps");}
@clzola
clzola / create.php
Created July 25, 2016 08:50
Images Uploader
<!doctype html>
<html>
<head>
<title>Upload Photos</title>
<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.min.css"/>
<style type="text/css">
.fileUpload {
position: relative;
@clzola
clzola / install-redis.sh
Last active March 23, 2022 19:20
Bash script for installing Redis on Ubuntu 16.04
#!/bin/bash
# Install the Build and Test Dependencies
apt-get update
apt-get install -y curl build-essential tcl
# Download and Extract the Source Code
cd /tmp
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz