Skip to content

Instantly share code, notes, and snippets.

View EnergeticPixels's full-sized avatar
🏠
Always Working

Anthony Jackman EnergeticPixels

🏠
Always Working
  • Energetic Pixels
  • Albertville, MN, USA
  • 07:27 (UTC -05:00)
View GitHub Profile
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@conanr
conanr / notes.txt
Created June 5, 2012 14:25
Plausible steps to install nginx on vagrant & serve index.html
vagrant box add precise32 http://files.vagrantup.com/precise32.box
vagrant init precise32
vagrant up
vagrant ssh
in vagrant shell:
sudo apt-get update
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:nginx/stable
sudo apt-get -y install nginx
@DamonOehlman
DamonOehlman / gist:3840144
Created October 5, 2012 14:37 — forked from schacon/gist:1
the meaning of gist
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.
@dergachev
dergachev / README.md
Created October 10, 2012 16:49
Vagrant tutorial

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

@ravibharathii
ravibharathii / Strong Password RegEx
Created October 29, 2012 18:03
A Regular Expression for a Strong Password
Description of this regular expression is as below:
Passwords will contain at least 1 upper case letter
Passwords will contain at least 1 lower case letter
Passwords will contain at least 1 number or special character
Passwords will contain at least 8 characters in length
Password maximum length should not be arbitrarily limited
(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$
@DamonOehlman
DamonOehlman / README.md
Last active June 12, 2022 19:01
Provisioning of node + nginx designed for use with vagrant shell provisioner. No need for chef, puppet.

This is a simple shell script that is designed to provision both nginx and node on your machine. I primarily wrote it for use with Vagrant and an example Vagrantfile is included in the Gist as well.

@terriyu
terriyu / vagrant-ufw-config.txt
Created August 10, 2013 19:37
Trying to use Ubuntu's firewall configuration tool ufw to open up port 80 on my Vagrant VM so that I can check my Devstack's dashboard
vagrant@precise64:~$ sudo ufw allow 80
Rules updated
Rules updated (v6)
vagrant@precise64:~$ sudo ufw status
Status: inactive
vagrant@precise64:~$ sudo ufw status verbose
Status: inactive
vagrant@precise64:~$ sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
@leetreveil
leetreveil / start-mongo-replset.sh
Last active December 8, 2023 06:34
Shell scripts to create a mongodb replica set and sharded cluster locally
#!/bin/bash
# shell script to create a simple mongodb replica set (tested on osx)
set -e
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
default=$(tput sgr0)
@pasupulaphani
pasupulaphani / bunyan_logger.js
Last active July 26, 2017 22:46
bunyan sample logger
var bunyan = require('bunyan');
var config = require('./config');
var logSettings = config.logSettings;
var log = bunyan.createLogger({
name: config.app_name,
src: true,
streams : [
{
stream : process.stdout,
@pasupulaphani
pasupulaphani / nginx.conf
Created December 1, 2013 23:38
Configure Nginx: Load balancing and reverse proxy
### host file under sites-available ###
# The upstream module is the link between Node.js and Nginx.
# Upstream is used for proxying requests to other servers.
# All requests for / get distributed between any of the servers listed.
upstream app_nodeapp1 {
# Set up multiple Node.js webservers for Load balancing.
# max_fails refers to number of failed attempts