Skip to content

Instantly share code, notes, and snippets.

View tolgahanakgun's full-sized avatar
😛
( ͡ ͡° ͜ ʖ ͡ ͡°) \╭☞

Tolgahan Akgün tolgahanakgun

😛
( ͡ ͡° ͜ ʖ ͡ ͡°) \╭☞
View GitHub Profile
@tolgahanakgun
tolgahanakgun / RPK and PSK supported DTLS client
Created February 22, 2020 09:48
Test clients for CoAP compatible DTLS clients in GnuTLS and OpenSSL
Server is tinydtls, compiled with both Raw Public Key and PSK support, version 0.8.6
psk_identity=Client_identity
psk_key=secretPSK
# psk in hex form
psk_key=73656372657450534b
# start tinydtls server
./dtls-server -v 6
# generate a secp256r1(prime256v1 or Nist 256-p) private and public key
@tolgahanakgun
tolgahanakgun / bash_aliases
Last active May 2, 2020 13:30
aliases file
# list connections of a process by name
alias lsofproc='lsof -a -i -c'
# list all executables in a folder
alias lse='find . -maxdepth 1 -type f -executable'
# go one level directory up
alias ..='cd ..'
# go three level directory up
alias ...='cd ../../'
alias c='clear'
# untar a file
@tolgahanakgun
tolgahanakgun / TIPS
Last active October 1, 2025 00:56
some time saving tips
#Lists the binary files which runs with privileged rights
find / -perm -u=s -type f 2>/dev/null
# add the lines below to .bashrc file for autostarting the ssh-agent and adding all the private keys in msys2
eval `ssh-agent -s` 1>/dev/null
find ~/.ssh/ -type f -exec grep -l "PRIVATE" {} \; | xargs ssh-add >/dev/null 2>&1