Skip to content

Instantly share code, notes, and snippets.

View azadkuh's full-sized avatar
🏠
Working from home

amir zamani azadkuh

🏠
Working from home
View GitHub Profile
@azadkuh
azadkuh / vim-cheatsheet.md
Last active September 20, 2024 09:08
vim / vimdiff cheatsheet - essential commands

Vim cheat sheet

Starting Vim

vim [file1] [file2] ...

@azadkuh
azadkuh / qt-unix-signals.md
Last active August 13, 2024 13:29
Catch Unix signals in Qt applications

Unix signals in Qt applications

It's quite easy to catch unix signals in Qt applications. you may like to ignore or accept them.

#include <QCoreApplication>

#include <initializer_list>
#include <signal.h>
#include <unistd.h>
@azadkuh
azadkuh / Ubuntu-vsftpd.md
Last active February 12, 2023 23:49
setup vsftpd on Ubuntu

setup vsftpd on Ubuntu

install

required packages:

$> sudo apt-get install libpam-pwdfile vsftpd mini-httpd
@azadkuh
azadkuh / dll2lib.md
Last active February 17, 2023 13:47
extract the *.lib from a *.dll in Win32

extract *.lib from *.dll

do the following steps:

1. exports

extract the functions and classes in *.dll by:
$> dumpbin.exe /exports libsample.dll /out:libsample.def

2. function names

@azadkuh
azadkuh / Qt_Oracle_ubuntu.md
Last active August 29, 2015 13:56
a mini howto for installing Oracle client in ubuntu server and compiling Qt OCI plugin.

Oracle Client install in Ubuntu server

(for Qt developers)

installation needs the following procedures:

1. download

download rpm of Instant Client for Linux x86-64 from this link oracle site.

list of required packages:

@azadkuh
azadkuh / OpenSSL cheat sheet for socket programmers.md
Last active July 15, 2024 17:43
OpenSSL cheat sheet. This is a brief howto for socket programmers.

#OpenSSL cheat sheet This is a brief howto for socket programmers.

create RSA key pairs

ex: 1024bits length key pair:

$> openssl genrsa -out myprivate.pem 1024
$> openssl rsa -in myprivate.pem -pubout -out mypublic.pem