Skip to content

Instantly share code, notes, and snippets.

View PVKonovalov's full-sized avatar
🙀

Pavel Konovalov PVKonovalov

🙀
View GitHub Profile
@alphp
alphp / DDS238-2 ZN-S Modbus.md
Last active November 12, 2024 23:14
Hiking DDS238-2 ZN/S energy meter
@faberyx
faberyx / c++ daemon
Last active December 21, 2021 19:59
#include <stdio.h>
#include <signal.h>
#include <syslog.h>
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
@vitorbritto
vitorbritto / rm_mysql.md
Last active November 5, 2024 05:41
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
@pklaus
pklaus / ddnsserver.py
Last active October 30, 2024 03:53 — forked from andreif/Simple DNS server (UDP and TCP) in Python using dnslib.py
Simple DNS server (UDP and TCP) in Python using dnslib.py
#!/usr/bin/env python
"""
LICENSE http://www.apache.org/licenses/LICENSE-2.0
"""
import argparse
import datetime
import sys
import time
import threading