Archive for Miscellaneous

How to take thread dumps~ Norway Online shops and e-marketplaces registered in the VOEC register~ Rename multiple files~ How to install your public key in the remote machine’s authorized_keys~ How to redirect stderr and stdout in Bash~ ssh local tunneling – access home from remote location~ Run one process (or more) into tmux~ Regexp hints~ Why is it modern to be non-Java? Java have a high reputation for being solid and scalable in large enterprise solutions~ How to add speaker notes to reveal~ How do I access variables from the main class from another class (java)?~ How to resize a VirtualBox vmdk file~ How to Delete Auto Backup Photos without a plugin.~ Get the list of the tables in Oracle~ SpinRite~ Varnish~ Set Gmail as Your Browser’s Default Email Client with a Simple Hack~ Booting Operating System from USB Drive in VMware Fusion 3.x~ Add Quick Launch to Taskbar~ How to add Tumblr to your Google Buzz feed~ Export CSV with custom delimiter~ How to Install Windows 7 from USB Flash Drive~ Google G1 MMS / Internet settings. Vodafone UK~ Magento installation problem “innoDB storage engine is not supported”~ Connect Google Talk to AIM, MSN, & Yahoo~ Security Master Code For Nokia~ HDR Bracketing with the D90~ MarkerClusterer with custom icons and data from a XML file.~ Chrooting SFTP users in Ubuntu 9.10~ How to create a chroot ssh user in Ubuntu~ Import Excel Data into MySQL in 5 Easy Steps~ XPS 1530 – How to boot ubuntu using MediaDirect Button and windows 7 with the power button~ Google Bookmark don’t load with Firefox on Ubuntu~ Google Chat Video doesn’t install…~ How to Protect Your Wi-Fi Network from the WPA Hack~
How to take thread dumps

How to take thread dumps

tail -f /var/log/escenic/engine1-catalina.out > /tmp/threaddumps.log & for i in $(seq 1 10); do kill -QUIT `cat /var/run/escenic/engine1.pid`; sleep 1; done fg Starts logging Tomcat output to /tmp/threaddumps.log. Triggers 10 JVM thread dumps, spaced 1 second apart. Brings the logging process back to the foreground so you can…

Continue reading →

Norway Online shops and e-marketplaces registered in the VOEC register

Norway Online shops and e-marketplaces registered in the VOEC register

Continue reading →

Rename multiple files

Rename multiple files

for filename in *.jpg; do newname=echo $filename | sed ‘s/xxx/yyy/g’; mv $filename $newname; done

Continue reading →

How to install your public key in the remote machine’s authorized_keys

How to install your public key in the remote machine’s authorized_keys

cat ~/.ssh/id_rsa.pub | ssh USER@HOST "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

Continue reading →

How to redirect stderr and stdout in Bash

How to redirect stderr and stdout in Bash

do_something 2>&1 | tee -a some_file

Continue reading →

ssh local tunneling – access home from remote location

ssh local tunneling – access home from remote location

Let’s say you have a raspberry running at home and you want to access it from your office. If you have a google router you can easily set up IPv4 port forwarding 2222 -> 22 At this point from the office you can ssh -p…

Continue reading →

Run one process (or more) into tmux

Run one process (or more) into tmux

Let’s say you need to run a process like a lightweight private npm proxy registry such as Verdaccio and you do not want to use a Docker container. You can run a simple command as noup verdaccio & . It might happen that the process…

Continue reading →

Regexp hints

Regexp hints

echo "bla bla word word1 = string1 string2" | sed -e 's/.* \([^ ]*\)=.*/\1/g' Some basic regexp hints: the first /…/ is what your string should match s means substitute/replace the last /…/ is the replacement g means global, replace all occurrences a . will…

Continue reading →

Why is it modern to be non-Java? Java have a high reputation for being  solid and scalable in large enterprise solutions

Why is it modern to be non-Java? Java have a high reputation for being solid and scalable in large enterprise solutions

A very philosophical question, this one. I see modern those languages that were not there a couple/few years ago. Definitely java is seen as the older, more enterprisey technology. I don’t think many startups in silicon valley use it, they use more php (facebook), python,…

Continue reading →

How to add speaker notes to reveal

How to add speaker notes to reveal

I came across to a great HTML Presentation Framework: reveal.js, which is a framework used to create stunning presentations using either a visual editor or simple text. https://github.com/hakimel/reveal.js/ Its create flexibility allows me to create my slides using Markdown https://help.github.com/articles/markdown-basics and convert everything by using…

Continue reading →

Page 1 of 4 1 2 3 4