Archive for Linux

How to mount a HFS partition in Ubuntu as Read/Write?~ How to delete Quicklook thumbnails on Mac~ Preserve bash history in multiple terminals~ Default max heap size~ OVF Appliance Import failed: Host resource of type “Other Storage Device (20)” is supported with SATA AHCI controllers only, line 47~ Google Drive notification icon and Yosemite dark mode~ How to install Java 7 on Yosemite~ Yosemite can automatically collect your location information~ Remove finder from Dock~ How to speed up terminal.app or iTerm on Mac OSX?~ How Can I Remove .DS_Store Files From A Git Repository?~ How to exclude .DS_Store from a zip file~ How to run a different version of Java~ /etc/hosts vs /private/etc/hosts~ How to downgrade Java.~ Remove and Disable Spotlight icon from top right bar~ How do I uninstall Java for my Mac?~ How to add route on Mac~ How to fix os x mountain lion download paused~ Toggling hidden files on Finder~ How to disable adobe update manager~ Reinstall ports~ How to Install Java 6 on Mac~ Disable .MobileBackup on Lion~ Toggling between Java 6 and Java 7 on mac~ Custom delay time and animation speed~ How to disable Adobe Updater on OS X Mountain Lion (updated)~ Java Web Service doesn’t start — Bad installation. No JRE found in configuration file~ How to switch from Java 6 to Java 7 on Mac. No Java runtime present, requesting install. [updated]~ How to disable Acrobat Air Updater on Mountain Lion~ “Show in Finder” stop working in Mountain Lion~ Where can I find other java version on my mac?~ Disable Notification Center & Remove the Menu Bar Icon in Mac OS X~ Equivalent of updatedb on mac~ Format XML with TextWrangler – updated~ Flush the dns cache on mac~ Creating a bootable USB stick with Mac OS X in 10 easy steps~ Booting Operating System from USB Drive in VMware Fusion 3.x~ IntelliJ 10 performance tuning on Mac OSX~
How to mount a HFS partition in Ubuntu as Read/Write?

How to mount a HFS partition in Ubuntu as Read/Write?

First, make sure that you have hfsprogs installed. Example installation command: Next, mount or remount the HFS+ drive; commands need to be as follows: Finally, if the drive was improperly unmounted or has otherwise become partially corrupted run fsck.hfsplus (provided here by Jayson) as such:

Continue reading →

Change extension to multiple files

Change extension to multiple files

for i in *.pdf; do mv $i ${i/pdf/jpg}; done

Continue reading →

How to take MySql dump (backups)

How to take MySql dump (backups)

mysqldump –add-drop-table -a -u username -p database | gzip > prod-db-dump.sql.gz Note: The password is not passed to the command line, but it will asked at the prompt

Continue reading →

Preserve bash history in multiple terminals

Preserve bash history in multiple terminals

dd the following to ~/.bashrc # Avoid duplicates export HISTCONTROL=ignoredups:erasedups # When the shell exits, append to the history file instead of overwriting it shopt -s histappend # After each command, append to the history file and reread it export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history…

Continue reading →

How to take mysql dump

How to take mysql dump

mysqldump –add-drop-table -a -u <user> -p <dbname> | gzip > db-dump.sql.gz

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 →

Check DNS nameservers information about host addresses

Check DNS nameservers information about host addresses

You might want to find information about a particular domain and check where it is hosted. i.e.: You could have a domain hosted by Godaddy and have your MX record hosted somewhere else. In this case with Dig command you can check where the DNS…

Continue reading →

How to purge the cache of a page

How to purge the cache of a page

I get sometimes requests from customers to invalidate the cache for a particular webpage only. From inside the server the PURGE request is allowed so: curl –insecure -I -H "Host:www.racoonlab.com" -X PURGE http://localhost/whatever/whatever/whatever/ Another option is to use telnet: Since telnet commands are not meant…

Continue reading →

Checking the Validity Date of an SSL Certificate

Checking the Validity Date of an SSL Certificate

echo | openssl s_client -connect maven.escenic.com:443 2>/dev/null | openssl x509 -noout -dates

Continue reading →

How to restart network interface

How to restart network interface

ifdown eth0 ifup eth0

Continue reading →

Page 1 of 6 1 2 3 4 5 ... Last →