Skip to content

Instantly share code, notes, and snippets.

View vlatko-va's full-sized avatar

Vlatko vlatko-va

  • VapourApps
  • Skopje
View GitHub Profile
@jniltinho
jniltinho / install_samba4.sh
Last active November 23, 2020 11:10
Compile Samba4 for Debian/Ubuntu
#!/bin/bash
## Install Samba4 4.12.3
## On Ubuntu 18.04 64Bits
## Author: Nilton OS -- www.linuxpro.com.br
## Link: https://github.com/jniltinho/go-samba4
## https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba
## Version: 0.6
### Tested on Ubuntu 18.04 64Bits
apt-get update
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@shamil
shamil / mount_qcow2.md
Last active April 25, 2024 09:25
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@xtetsuji
xtetsuji / maillog-hashnize.pl
Last active October 11, 2022 08:08
enhancement of "pflog" for parsing maillog of postfix 2.3 or higher version.
#!/usr/bin/perl
# "pflog" enhancement for parsing maillog of postfix 2.3 or higher version.
# "pflog" see: http://www.tmtm.org/ruby/pflog/pflog-0.3
use strict;
use warnings;
use Time::Local;
use Getopt::Long;
#use Data::Dumper;