Skip to content

Instantly share code, notes, and snippets.

View andrei-tofan's full-sized avatar

Andrei Tofan andrei-tofan

View GitHub Profile
@carmaa
carmaa / py3whois.py
Created September 9, 2012 17:46
Python 3 whois client
"""
Whois client for python
transliteration of:
http://www.opensource.apple.com/source/adv_cmds/adv_cmds-138.1/whois/whois.c
Copyright (c) 2010 Chris Wolf
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@bitkidd
bitkidd / aws-vesta-s3.md
Last active October 17, 2023 18:58
AWS S3 backup for Vesta

Before doing all this you have to create a bucket in your AWS console. Or just use AWS cli tool in order to create one.

  • Install pip (if not installed already):
$ curl -O https://bootstrap.pypa.io/get-pip.py
  • Install AWS cli tool:
$ sudo pip install awscli
@pobsuwan
pobsuwan / rabbitmq-cluster.md
Last active November 14, 2024 22:45
How to config rabbitmq server cluster [3 nodes]

How to config rabbitmq server cluster [3 nodes]

Edit /etc/hosts

vi /etc/hosts
192.168.10.157  rabbitmq-1
192.168.10.159  rabbitmq-2
192.168.10.161  rabbitmq-3
@andrei-tofan
andrei-tofan / py3whois.py
Created December 9, 2016 21:20 — forked from carmaa/py3whois.py
Python 3 whois client
"""
Whois client for python
transliteration of:
http://www.opensource.apple.com/source/adv_cmds/adv_cmds-138.1/whois/whois.c
Copyright (c) 2010 Chris Wolf
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@Gomah
Gomah / my.cnf
Created April 28, 2017 04:09
MySQL config for 4 cores/8 threads, 32 GB RAM
# CLIENT
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# MYSQL SAFE
[mysqld_safe]
pid-file = /var/run/mysqld/mysqld.pid