Skip to content

Instantly share code, notes, and snippets.

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

require 'nokogiri'
require 'open-uri'
# Get a Nokogiri::HTML:Document for the page we're interested in...
doc = Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove'))
# Do funky things with it using Nokogiri::XML::Node methods...
####
@iliakg
iliakg / squid_proxy_tutorial.md
Created January 13, 2021 06:57 — forked from jackblk/squid_proxy_tutorial.md
Tutorial on how to setup a squid proxy with authentication.

Note

This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.

Install squid & update

sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils
@iliakg
iliakg / Dockerfile
Last active December 30, 2022 00:27
docker image with elixir, docker, docker-compose
# docker image with elixir, docker, docker-compose
FROM elixir:1.9.4
RUN set -ex \
&& export DOCKER_VERSION=$(curl --silent --fail --retry 3 https://download.docker.com/linux/static/stable/x86_64/ | grep -o -e 'docker-[.0-9]*\.tgz' | sort -r | head -n 1) \
&& DOCKER_URL="https://download.docker.com/linux/static/stable/x86_64/${DOCKER_VERSION}" \
&& echo Docker URL: $DOCKER_URL \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/docker.tgz "${DOCKER_URL}" \
&& ls -lha /tmp/docker.tgz \
@iliakg
iliakg / Dockerfile
Created April 16, 2020 12:16
docker image based on ubuntu:18.04 with docker, erlang, elixir
# docker image based on ubuntu:18.04 with docker, erlang, elixir
FROM ubuntu:18.04
RUN apt-get update -qq && \
apt-get upgrade -qq -y && \
apt-get install -qq -y \
build-essential \
autoconf \
libncurses5-dev \