disabling openvpn@server sudo update-rc.d openvpn disable sudo service openvpn status sudo systemctl status openvpn@server sudo systemctl status system-openvpn.slice Won’t work with systemctl disable openvpn or service openvpn stop.
mount command
/etc/exports /i-data/60cb70cf 192.168.1.0/24(ro,sync,no_subtree_check,wdelay,no_root_squash) mount NFS share to windows 7 (next drive letter available) mount 192.168.1.31:/i-data/60cb70cf * mount NFS share to windows 7 the Z drive mount 192.168.1.31:/i-data/60cb70cf z: unmount NFS share (–a Unmounts all NFS network drives) umount z: mount […]
OSGI learning sources
Wiring made easy using OSGi Blueprint and Apache Karaf/ OSGi Modularity Tutorial by Lars Vogel OSGi Services Tutorial by Lars Vogel OSGi Services Tutorial by Knopflerfish Bndtools Tutorial Control OSGi DS Component Instances ECF commits to OSGi Remote Services ECF […]
HTML 5
Documentation https://developers.google.com/web/ https://www.html5rocks.com/en/tutorials https://www.html5rocks.com/en/tutorials/file/xhr2 https://www.html5rocks.com/en/tutorials/file/dndfiles/ http://blog.teamtreehouse.com/reading-files-using-the-html5-filereader-api https://www.html5rocks.com/en/tutorials/workers/basics/ https://stackoverflow.com/questions/6778360/whats-the-difference-between-shared-worker-and-worker-in-html5 https://www.sitepoint.com/javascript-shared-web-workers-html5/ https://github.com/coolaj86/html5-shared-web-worker-examples http://coolaj86.github.io/html5-shared-web-worker-examples/ https://www.html5rocks.com/en/tutorials/appcache/beginner/ https://alistapart.com/article/application-cache-is-a-douchebag https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/Client-SideStorage/Client-SideStorage.html https://developer.apple.com/library/content/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html chrome://appcache-internals
SmartPSS camera viewer
Connecting to a VPN when using UFW https://askubuntu.com/questions/572497/cant-connect-to-pptp-vpn-with-ufw-enabled-on-ubuntu-14-04-with-kernel-3-18 sudo ufw allow proto gre from 86.121.33.88 You might also need to put into /etc/modules-load.d/pptp.conf: nf_conntrack_proto_gre nf_conntrack_pptp
JPA inheritance performance improvement
This article is about improving JPA’s performance when working with large/thick hierarchies. Let’s suppose that for some reason you have a similar (or larger) hierarchy to one I encountered in one of my projects: – InheritanceType.JOINED also using DiscriminatorColumn – […]
setup your own linux based router
What is all about short story … This post will help you to configure a linux PC in order to function as a router too. long story … If you like me have a very low energy consumption PC (a […]
Compiling google’s mod_pagespeed for nginx
This post is intended mainly to Zyxel NSA310 users. Prerequisites See first https://adrhc.go.ro/blog/common-commands-when-building/ for building environment, x.sh script and other things not defined here. Before starting do declare the environment variables specified to the link above. Environment & other preparations […]
Yoast SEO hints
Meta keywords template in Post Types Use %%tag%%, %%category%% for Meta keywords template in order for the post’s tags and categories to be used as meta keywords. It will generate something like e.g.: <meta name=”keywords” content=”SEO, Yoast, How To”/> See […]
Linux network information
DNS address assigned by DHCP nmcli device show eth0 | grep DNS Gateway address assigned by DHCP nmcli device show eth0 | grep GATEWAY Show active and ofline connections nmcli connection show Load configuration files nmcli con reload nmcli con […]
Java hibernate
How to mix inheritance strategies with JPA annotations and Hibernate? http://stackoverflow.com/questions/3915026/how-to-mix-inheritance-strategies-with-jpa-annotations-and-hibernate use @SecondaryTable for joined table
iptables
iptables processing steps (original image link) Redirect eth0:3240 to 127.0.0.1:32400 sudo sysctl -w net.ipv4.ip_forward=1 sudo sysctl -a | grep ‘net.ipv4.ip_forward’ sysctl net.ipv4.ip_forward -> this reads the value sudo sysctl -w net.ipv4.conf.eth0.route_localnet=1 sudo sysctl -a | grep ‘net.ipv4.conf.eth0.route_localnet’ # you’ll need […]
Linux media conversion
sudo apt install libav-tools webm to mp4 http://askubuntu.com/questions/323944/convert-webm-to-other-formats ffmpeg -i “Jurjak – Bucuresti.webm” -qscale 0 “Jurjak – Bucuresti.mp4” ffmpeg -fflags +genpts -i “Jurjak – Bucuresti.webm” -r 24 “Jurjak – Bucuresti1.mp4” -> change to 24 FPS ffmpeg -i “Jurjak – Bucuresti.webm” […]
Linux hardware information
# sources: # http://askubuntu.com/questions/18372/how-can-i-find-out-what-ram-a-computer-system-has RAM sudo lshw -short -C memory sudo lshw -C memory sudo dmidecode -t memory VGA memory sudo dmesg | grep Reserving [ 0.000000] Reserving Intel graphics stolen memory at 0x5ef00000-0x7eefffff compute now using a hexadecimal calculator […]
Linux youtube downloader errors
first, let’s see the youtube-dl error youtube-dl https://www.youtube.com/playlist?list=PLEmVsSEEP5HDTSik5ZSyOWz0qsS1tPos_ [youtube:playlist] PLEmVsSEEP5HDTSik5ZSyOWz0qsS1tPos_: Downloading webpage [download] Downloading playlist: cantece pt copii in germana [youtube:playlist] playlist cantece pt copii in germana: Downloading 6 videos [download] Downloading video 1 of 6 [youtube] dtZ7U7csvcw: Downloading webpage […]