Skip to content

Instantly share code, notes, and snippets.

View mikekolganov's full-sized avatar

Mike Kolganov mikekolganov

View GitHub Profile
@mikekolganov
mikekolganov / gist:731f1c608e4ea9c1219be30928b64460
Created December 12, 2020 20:29
Install Postgres 12 on Ubuntu 20.04 from scratch
apt update
apt-get install postgresql-12
update /etc/postgresql/12/main/postgresql.conf: "listen_addresses = '*'"
update /etc/postgresql/12/main/pg_hba.conf: "host all all 0.0.0.0/0 md5"
service postgresql restart
su - postgres
@mikekolganov
mikekolganov / boot2docker-rsync.sh
Last active August 29, 2015 14:24
boot2docker rsync
#!/bin/bash
set -u # prevent unbound variables
set -e # terminate on error
set -o nounset
WORKING_DIR=$(pwd)
boot2docker ssh "
echo 'Checking rsync on boot2docker VM'
#!/usr/bin/env bash
# Sony VAIO VPCEB2E1E/WI drivers downloader script
#
# I wanted to download a driver for laptop of my wife.
# Download the driver from the sony.com it is extremely tedious.
# You need to open each page, set the checkbox and click download.
# This script will download all drivers.
drivers=("http://www.sony.ru/support/ru/product/VPCEB2E1E_WI/downloads/Ethernet_Driver_Marvell_11_22_TF_11_22_4_3_6080"
@mikekolganov
mikekolganov / states.yml
Last active December 14, 2015 21:19
USA States with abbreviation, name, latitude and longitude
- abbr: AK
name: Alaska
lat: 61.3850
lng: -152.2683
- abbr: AL
name: Alabama
lat: 32.7990
lng: -86.8073
- abbr: AR
name: Arkansas