Skip to content

Instantly share code, notes, and snippets.

@ravituvar
ravituvar / screenshotCompare.js
Created December 18, 2018 17:13 — forked from spockNinja/screenshotCompare.js
UI Screenshot Comparison Lambda Function
'use strict';
console.log('Loading function');
var AWS = require('aws-sdk');
var fs = require('fs');
var https = require('https');
var spawn = require('child_process').spawn;
var util = require('util');
AWS.config.apiVersions = {
@ravituvar
ravituvar / postfix.sh
Created December 18, 2018 17:15 — forked from ddepaoli3/postfix.sh
Install postfix server on aws linux ami
#!/bin/bash
DOMAIN=example.com
USERNAME=admin
# Configure hostname
sed s/"127.0.0.1 localhost"/"127.0.0.1 $DOMAIN localhost"/ -i /etc/hosts
sed s/HOSTNAME.*/HOSTNAME=$DOMAIN/ -i /etc/sysconfig/network
# Intall server and mutt
@ravituvar
ravituvar / Mail Server on Ubuntu 14.04
Created December 24, 2018 08:40 — forked from topwebmaster/Mail Server on Ubuntu 14.04
Settings Linux mint after fresh install for php developing
https://www.exratione.com/2014/05/a-mailserver-on-ubuntu-1404-postfix-dovecot-mysql/
Ex
Ratione
GitHub • Consulting • Blog • Archives • Feed
A Mailserver on Ubuntu 14.04: Postfix, Dovecot, MySQL
By Reason May 1, 2014 Permalink
This long post contains a recipe for building a reasonably secure Ubuntu 14.04 mail server in Amazon Web Services, using Postfix, Dovecot, and MySQL, with anti-spam packages in the form of amavisd-new, Clam AntiVirus, SpamAssassin, and Postgrey. Local users are virtual rather than being system users. Administration of users and domains is achieved through the Postfix Admin web interface. Webmail is provided by Roundcube.
@ravituvar
ravituvar / mailserver.md
Created December 24, 2018 09:44
Mailserver on Linux (Postfix and Dovecot)
@ravituvar
ravituvar / docker-cleanup-resources.md
Created July 17, 2019 09:40 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm