Skip to content

Instantly share code, notes, and snippets.

@tuksik
tuksik / github-pandoc.css
Created July 26, 2017 11:19 — forked from dashed/github-pandoc.css
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@tuksik
tuksik / Docker-find-dependent-child-image.md
Created April 20, 2017 07:47 — forked from Siva-Charan/Docker-find-dependent-child-image.md
Docker: How to find the dependent child images?

Find the dependent child images on Docker

When you try to remove the docker image with the following command

docker rmi 6795374be8c1

Sometimes you might be facing below error:

Error response from daemon: conflict: unable to delete 6795374be8c1 (cannot be forced) - image has dependent child images

Below is the Docker command line used to find the dependent child images

@tuksik
tuksik / lambdaAMIBackups.py
Created November 21, 2016 14:34 — forked from bkozora/lambdaAMIBackups.py
AWS Lambda AMI Backups
# Automated AMI Backups
#
# @author Robert Kozora <robert.kozora@wheaton.com>
#
# This script will search for all instances having a tag with "Backup" or "backup"
# on it. As soon as we have the instances list, we loop through each instance
# and create an AMI of it. Also, it will look for a "Retention" tag key which
# will be used as a retention policy number in days. If there is no tag with
# that name, it will use a 7 days default value for each AMI.
#
## _includes/image.html
<div class="image-wrapper" >
{% if include.url %}
<a href="{{ include.url }}" title="{{ include.title }}" target="_blank">
{% endif %}
<img src="{{ site.url }}/{{ include.img }}" alt="{{ include.title }}"/>
{% if include.url %}
</a>
{% endif %}
{% if include.caption %}
@tuksik
tuksik / haproxy.cfg
Created April 30, 2016 18:14 — forked from thisismitch/haproxy.cfg
Let's Encrypt Auto-Renewal script for HAProxy
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
maxconn 2048
@tuksik
tuksik / windowsnetworking.bat
Created January 28, 2016 06:26 — forked from alexandrinos/windowsnetworking.bat
Windows - Firewall / PortForwarding / Network
# ------------------ NETSH ---------------
#
#for help: $ netsh /?
#NETSTAT
#
#usefull
netstat -bn
@tuksik
tuksik / .muttrc-templ1
Last active September 13, 2015 10:54 — forked from zeta709/.muttrc
Mutt
# Mutt & Maildir Mini-HOWTO
# http://www.elho.net/mutt/maildir/
set mbox_type=Maildir
set folder="~/Maildir/"
set mask="!^\\.[^.]"
set record=".Sent"
set postponed=".Drafts"
set spoolfile="~/Maildir/"
mailboxes `echo -n "+ "; find ~/Maildir -maxdepth 1 -type d -name ".*" -printf "+'%f' "`
macro index c "<change-folder>?<toggle-mailboxes>" "open a different folder"
@tuksik
tuksik / .muttrc-gmail
Last active September 13, 2015 10:47 — forked from jaysonrowe/.muttrc
Mutt Configuration
# basic .muttrc for use with Gmail
# Change the following six lines to match your Gmail account details
set imap_user = "username@gmail.com"
set imap_pass = ""
set smtp_url = "smtp://username@smtp.gmail.com:587/"
set smtp_pass = ""
set from = "username@gmail.com"
set realname = "Firstname Lastname"
#
@tuksik
tuksik / is_apache_running.py
Last active September 13, 2015 06:35 — forked from miohtama/gist:4210349
Testing if Apache is running in certain local ports in Python
"""
Check if we have a local apache running and listening to certain ports.
"""
# http://pypi.python.org/pypi/psutil/
import psutil