Skip to content

Instantly share code, notes, and snippets.

View igolka97's full-sized avatar

Igor Mayorov igolka97

View GitHub Profile
@igolka97
igolka97 / hosts.yml
Last active June 12, 2024 01:36
Easiest way to use a bastion/jump host in Ansible
all:
vars:
ansible_ssh_common_args: '-J root@1.2.3.4'
nodes:
hosts:
node-1:
ansible_host: 192.168.0.10
@igolka97
igolka97 / style.css
Created December 9, 2023 10:46
Disable font smoothing
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-smooth: never;
}
@igolka97
igolka97 / mysql-docker.sh
Created September 1, 2020 19:15 — 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
module.exports = {
http: function(cont, options, next) {
if (cont.$root.$get('nanobar.value') > 1) {
return false;
}
cont.$root.$get('nanobar').go(20)