Skip to content

Instantly share code, notes, and snippets.

@evertonmatos
evertonmatos / mysql-docker.sh
Created July 19, 2018 17:43 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@evertonmatos
evertonmatos / sp
Created February 8, 2019 13:39 — forked from wandernauta/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@evertonmatos
evertonmatos / docker-compose.yml
Created March 19, 2020 01:43 — forked from shavo007/docker-compose.yml
Docker compose (mysql, elasticsearch, kibana) with healthchecks
version: '2.1'
services:
mysql:
container_name: mysql
image: mysql:5.7
ports:
- "13306:3306"
environment:
- MYSQL_ROOT_PASSWORD=Welcome123
healthcheck:
@evertonmatos
evertonmatos / dockergrep.sh
Created April 14, 2023 23:01 — forked from roylee0704/dockergrep.sh
how to grep docker log
docker logs nginx 2>&1 | grep "127."
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container
@evertonmatos
evertonmatos / win_update.txt
Last active January 15, 2024 21:21
Block Windows Update - Low Disk
1.0.17.172.in-addr.arpa
107.0.168.192.in-addr.arpa
1.122.168.192.in-addr.arpa
1.48.168.192.in-addr.arpa
1d.tlu.dl.delivery.mp.microsoft.com
2.au.download.windowsupdate.com
3.1.2.e.2.d.e.f.f.f.e.a.0.7.8.7.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa
a.2.3.f.7.6.e.f.f.f.0.0.4.5.c.f.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa
acctcdn.msauth.net
acctcdn.msftauth.net