Skip to content

Instantly share code, notes, and snippets.

View hirro's full-sized avatar
:octocat:
Something

Jim hirro

:octocat:
Something
View GitHub Profile
@hirro
hirro / mysql_query_log.md
Created March 26, 2019 13:01 — forked from joseluisq/mysql_query_log.md
How to enable the MySQL/MariaDB general query log

How to enable the MySQL/MariaDB general query log

  1. Enter to MySQL/MariaDB server command-line tool (change root with your username and password):
mysql -u root -proot
  1. Set the general log file path:
SET GLOBAL general_log_file='/var/log/mysql/mycustom.log';
@hirro
hirro / install virtualenv ubuntu 16.04.md
Created March 29, 2018 10:05 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@hirro
hirro / UDPServer.java
Last active May 16, 2017 12:17
UDP server sample
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.Base64;
class UDPServer
{