Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

amir zamani azadkuh

🏠
Working from home
View GitHub Profile
@azadkuh
azadkuh / vim-cheatsheet.md
Last active May 9, 2022
vim / vimdiff cheatsheet - essential commands
View vim-cheatsheet.md

Vim cheat sheet

Starting Vim

vim [file1] [file2] ...

@azadkuh
azadkuh / qt-unix-signals.md
Last active Apr 15, 2022
Catch Unix signals in Qt applications
View qt-unix-signals.md

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 
@azadkuh
azadkuh / Ubuntu-vsftpd.md
Last active Jun 27, 2021
setup vsftpd on Ubuntu
View Ubuntu-vsftpd.md

setup vsftpd on Ubuntu

install

required packages:

$> sudo apt-get install libpam-pwdfile vsftpd mini-httpd
@azadkuh
azadkuh / dll2lib.md
Last active Jul 19, 2021
extract the *.lib from a *.dll in Win32
View dll2lib.md

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 Aug 29, 2015
a mini howto for installing Oracle client in ubuntu server and compiling Qt OCI plugin.
View Qt_Oracle_ubuntu.md

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 Jan 10, 2022
OpenSSL cheat sheet. This is a brief howto for socket programmers.
View OpenSSL cheat sheet for socket programmers.md

#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