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 / OpenSSL cheat sheet for socket programmers.md
Last active January 9, 2024 16:29
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
@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 / 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 / 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 / qt-unix-signals.md
Last active April 16, 2024 12:50
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 / vim-cheatsheet.md
Last active February 21, 2024 10:12
vim / vimdiff cheatsheet - essential commands

Vim cheat sheet

Starting Vim

vim [file1] [file2] ...