to iterate over both key and value in for loop
{% for key, value in listOfKeyValueArray %}
to iterate over both key and value in for loop
{% for key, value in listOfKeyValueArray %}
location.reload();
window.location.href = u.toString();
to generate URL you can use url.js library
to prevent google docs, from editing document, even if viewer has edit rights, add following suffix to URL:
/preview
use this suffix in replacement of
/edit*
or at at the end if /edit is not present
other options you can force are
– Preview mode
– Force copy
– Force copy with comments
– Create template
– PDF
/preview
/copy
/copy?copyComments=true
/template/preview
/export?format=pdf
/export/pdf
to remove duplicates within file, when duplicates are not one after another (adjacent duplicate lines), and preserver order so that last duplicate line is last in file
awk '!visited[$0]++' YOUR_FILE_HERE > YOUR_FILE_HERE.temp && mv YOUR_FILE_HERE.temp YOUR_FILE_HERE
$('form').attr('novalidate', 'novalidate');
ALTER TABLE featured_package AUTO_INCREMENT = 1;
to quickly get values of href attribute of a link in web page
[].map.call(document.links,String)
new line separated, and copy to clipboard:
copy([].map.call(document.links,String).join('\n'))
https://www.cyberciti.biz/faq/ubuntu-18-04-lts-set-up-openvpn-server-in-5-minutes/
https://www.ovpn.com/en/guides/ubuntu-gui
To add access to local network via VPN:
nano /etc/openvpn/server/server.conf
# \/ CUSTOM START
push "route 10.0.0.0 255.255.255.0"
# /\ CUSTOM END
systemctl restart [email protected]
sudo apt-get install haveged
helps to solve issues with SSL generation, when to little entropy present