Skip to content

Instantly share code, notes, and snippets.

@yalex2011
yalex2011 / metabase-postgres.docker-compose.yml
Created December 17, 2019 10:58 — forked from eliashussary/metabase-postgres.docker-compose.yml
A docker-compose file for metabase with postgres.
version: "3"
services:
postgres-db:
image: postgres
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: postgres
@yalex2011
yalex2011 / lxd_set_locales_and_time.md
Last active September 28, 2018 19:11 — forked from petergloor/lxd_set_locales_and_time.md
LXD - set locales and time zone
 lxc exec <container> -- dpkg-reconfigure locales
 lxc exec <container> -- sudo dpkg-reconfigure tzdata
 lxc config set <container> environment.LC_ALL ru_RU.UTF-8
@yalex2011
yalex2011 / hosts.yml
Created November 13, 2017 12:07
Ansible setting of hostname from inventory, but ignoring IP addresses
- name: Ensure hostname set
hostname: name={{ inventory_hostname }}
when: not inventory_hostname|match('(\d{1,3}\.){3}\d{1,3}')
- name: Ensure hostname is in /etc/hosts
lineinfile:
dest=/etc/hosts
regexp="^{{ ansible_default_ipv4.address }}.+$"
line="{{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }}"
@yalex2011
yalex2011 / glibc-2.17_centos6.sh
Created September 27, 2017 08:59 — forked from harv/glibc-2.17_centos6.sh
update glibc to 2.17 for CentOS 6
#! /bin/sh
# update glibc to 2.17 for CentOS 6
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm
sudo rpm -Uvh glibc-2.17-55.el6.x86_64.rpm \