Skip to content

Instantly share code, notes, and snippets.

@chanunc
chanunc / 01-README.md
Created December 5, 2015 13:50 — forked from petemcw/01-README.md
Mac OS X LEMP Configuration

Mac OS X LEMP Configuration

This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.

Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.

Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup

Setup

@chanunc
chanunc / test_gist.md
Last active December 6, 2015 22:33
Test Gist

#My first Gist file

This is my first markdown file on Gist

Quis aute iure reprehenderit in voluptate velit esse. Ab illo tempore, ab est sed immemorabili. Nec dubitamus multa iter quae et nos invenerat.

@chanunc
chanunc / drupal_dev.md
Created December 7, 2015 17:55
Drupal Basic Development
@chanunc
chanunc / install.sh
Created March 27, 2016 17:54 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@chanunc
chanunc / provision_lemp_drupal.sh
Last active August 2, 2017 17:02
Bash Provisioning on Ubuntu - Vim Git LEMP Composer Drual
#!/usr/bin/env bash
## add user
adduser compucorp << 'END'
c0mpuc0rp
c0mpuc0rp
END
sudo adduser compucorp sudo
@chanunc
chanunc / letsencrypt_ubuntu_nginx.md
Created May 7, 2016 09:35 — forked from leommoore/letsencrypt_ubuntu_nginx.md
Letsencrypt Ubuntu 14.04 Nginx

#Letsencrypt Ubuntu 14.04 Nginx Letsencrypt (https://letsencrypt.org) is an initative which aims to increase the use of encryption for websites. It basically allows people to apply for free certificates provided that they prove the they control the requested domain.

Note: As of 8th March 2016 letsencrypt is still in public beta.

##Installation To install the client, clone the repostiory from github.

git clone https://github.com/letsencrypt/letsencrypt.git
@chanunc
chanunc / S3Cmd.md
Created May 7, 2016 09:37 — forked from leommoore/S3Cmd.md
S3Cmd

#S3Cmd - S3 Command Line Tools

S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3 and other cloud storage service providers that use the S3 protocol, such as Google Cloud Storage or DreamHost DreamObjects. It is best suited for power users who are familiar with command line programs. It is also ideal for batch scripts and automated backup to S3, triggered from cron, etc.

S3cmd is written in Python. It's an open source project available under GNU Public License v2 (GPLv2) and is free for both commercial and private use. You will only have to pay Amazon for using their storage.

It is available on http://s3tools.org/s3cmd

##Installing S3Cmd

#MongoDB - Basic Commands

##Saving Data

db  //Tells you the current database

show collections //Shows the collections available in the current db

db.foo.save({_id:1, x:10}) //Save the document into the foo collection  

db.bar.save({_id:1, x:10}) //Save the document into the bar collection

@chanunc
chanunc / gist:f4b02f33f621ffe26833e66ff77fc05a
Created June 17, 2016 13:48 — forked from mikestone14/gist:11198630
Getting a GoDaddy domain to point to a Heroku app.
@chanunc
chanunc / Jenkinsfile
Created August 18, 2017 15:39 — forked from abayer/Jenkinsfile
An example Declarative Pipeline Jenkinsfile for Feb 15 2017 demo
// A Declarative Pipeline is defined within a 'pipeline' block.
pipeline {
// agent defines where the pipeline will run.
agent {
// This also could have been 'agent any' - that has the same meaning.
label ""
// Other possible built-in agent types are 'agent none', for not running the
// top-level on any agent (which results in you needing to specify agents on
// each stage and do explicit checkouts of scm in those stages), 'docker',