This is how to change default SSL key size on iDRAC Dell R415 Continue reading 2048 bit SSL key on Dell iDRAC R415
MongoDB & HAProxy
If you want to put haproxy in front of mongodb cluster, haproxy needs to know the status of mongodb nodes. Continue reading MongoDB & HAProxy
SSH autentifikacia s eID obcianskym preukazom pod Linuxom
eID obciansky je v podstate standardny pkcs11 system. Continue reading SSH autentifikacia s eID obcianskym preukazom pod Linuxom
ffmpeg compiled binaries for android
compiled from git master @28. 05. 2016: http://blog.danman.eu/wp-content/uploads/ffmpeg-android.tgz
Display certificate of SMTP server running starttls
echo | openssl s_client -connect mail.example.sk:25 -starttls smtp | openssl x509 -noout -dates
amavisd-new: disable e-mail filtering per destination domain
Testing SPAM filtering from shell
echo "XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X" | mail -s Spam_test danman@example.com
Disable filtering for example.com
add following lines to /etc/amavis/conf.d/50-user (don’t forget the dot before domain, it has to be there):
@bypass_spam_checks_maps = ( [".example.com"], ); @spam_lovers_maps = ( [".example.com"], );
Using socat for multicast receiving and proxying
socat is a very handy networking tool. Here are some examples for multicast manipulation
Receive multicast data to stdout or file
If you save common mpeg-ts IPTV multicast this way, you can play it with any decent player, like vlc or mplayer.
SRC=239.1.2.3;SRCP=1234;IF=eth0 socat -T 3 UDP4-RECV:$SRCP,bind=$SRC,ip-add-membership=$SRC:$IF,reuseaddr - socat -T 3 UDP4-RECV:$SRCP,bind=$SRC,ip-add-membership=$SRC:$IF,reuseaddr - > stream.ts
Create high-available multicast proxy
socat relays packets from 239.1.1.1:1234 to 239.2.1.1:1234 with multicast ttl=8.
If no packet arrives in 3 seconds (-T 3), socat exits and script runs another socat which joins another multicast 239.1.1.2:1234 and continues with relaying. You can add as many sources as you want, they will be used in a round-robin fashion. If you want to switch to next source, just kill currently running socat.
DST=239.2.1.1:1234 while true do SRC=239.1.1.1;SRCP=1234;IF=eth0 socat -T 3 UDP4-RECV:$SRCP,bind=$SRC,ip-add-membership=$SRC:$IF,reuseaddr UDP4-SENDTO:$DST,ip-multicast-ttl=8 SRC=239.1.1.2;SRCP=1234;IF=eth0 socat -T 3 UDP4-RECV:$SRCP,bind=$SRC,ip-add-membership=$SRC:$IF,reuseaddr UDP4-SENDTO:$DST,ip-multicast-ttl=8 ... done
Fixing distorted audio with Intel HDA on Ubuntu
edit /etc/pulse/default.pa
before:
### Automatically load driver modules depending on the hardware available .ifexists module-udev-detect.so load-module module-udev-detect .else ### Use the static hardware detection module (for systems that lack udev support) load-module module-detect .endif
after:
### Automatically load driver modules depending on the hardware available #.ifexists module-udev-detect.so #load-module module-udev-detect tsched=0 #.else ### Use the static hardware detection module (for systems that lack udev support) load-module module-detect #.endif
Restart pulseaudio or the whole system.
My first optical cable splicing
Just a few photos:
LWLA1016 in Linux
For using various measurement tools like oscilloscopes, multimeters, logic analyzers etc. under Linux there is an amazing tool – sigrok. I was trying to make my cheap chinese logic analyzer LWLA1016 work and this is how I succeeded. Continue reading LWLA1016 in Linux