Skip to content

Instantly share code, notes, and snippets.

@asabla
asabla / installation.ps1
Created September 12, 2019 08:51
Small Powershell script to create a local instance of Microsoft ServiceBus
# Reference: https://docs.microsoft.com/en-us/previous-versions/azure/jj193022(v=azure.10)?redirectedfrom=MSDN
# Before you can get started, you'll have to install the service it self with Web Platform installer.
# A direct link to binary it self can be found on the page from reference link.
# Prerequisites
# 1. Make sure you have SQL Express installed (at least 2012)
# 2. Make sure you have installed the service it self (it won't start until configured)
# You can verify this by looking for 'Windows Fabric Host Service' amongst windows services.
@asabla
asabla / digitalocean-dns-challenge
Last active May 11, 2018 10:29
Docker certbot examples
docker run -it --name certbot \
-v <certs>:/etc/letsencrypt \
-v <logs>:/var/lib/letsencrypt \
-v <do-secret>:/.secrets \
certbot/dns-digitalocean certonly \
--agree-tos \
--dns-digitalocean \
--dns-digitalocean-credentials /.secrets/do-token.ini \
--dns-digitalocean-propagation-seconds 60 \
--preferred-challenges dns-01 \
@asabla
asabla / genesis_public_key
Created February 22, 2018 10:35
genesis_public_key
04c75c50c48cfad492d28ce4466cc9a21e4ccbed5baffb4d73c9a6c34a325800872a32a433cc260b56f2dd420edadc15c3e60ba04cee47349c0eb36ea5892e5b03
@asabla
asabla / hosts
Created January 22, 2017 15:25
Blocking ads etc
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
@asabla
asabla / steps.sh
Last active December 2, 2016 07:07
Proxmox multiple public ip's @ online.net
# When you have access to proxmox web gui make sure you have all isos and fail over configured
# 1. Create a new new VM and set MAC the same as in the panel whilst handling fail over ips
# 2. Boot up the machine and go through the installation (skip networking part)
# 3. After installation login into the machine with VNC (through proxmox)
# 4. edit /etc/network/interface and add this:
auto lo ens18
iface li inet loopback
iface ens18 inet static
@asabla
asabla / Docker-run-commands
Created August 6, 2016 17:10
Docker Gitlab setup
docker run --name gitlab-postgresql -d \
--env 'DB_NAME=gitlabhq_production' \
--env 'DB_USER=gitlab' \
--env 'DB_PASS=DBPASSWORD' \
--volume /local/db/location/postgresql:/var/lib/postgresql \
sameersbn/postgresql
docker run --name gitlab-redis -d \
--volume /local/cache/location/redis:/var/lib/redis \
sameersbn/redis