Using RegEx in Notepad++

Using the following RegEx strings in NotePad++ to clean up book marks file. Do a Search and replace, In for search for fields put the following strings In the replace field, put nothing, Make sure regex is selected. ADD_DATE="[^"]+" LAST_MODIFIED="[^"]+" PERSONAL_TOOLBAR_FOLDER="[^"]+" ICON="[^"]+" LAST_VISIT="[^"]+" ICON_URI="[^"]+"
Tags:

Change mouse scroll direction in Windows

How to Reverse the mouse scroll direction in windows

  TL;DR - Run regedit as an admin, search for "FlipFlopWheel" and replace the 0's with 1's, unplug and reinsert the mouse. Step-By-Step.
  1. Open Control Panel, double click "Mouse" to open the mouse properties windows, and then click on the "Hardware" tab.
  2. Select your mouse in the list of devices then click on the properties button in the bottom right corner, just above the "Apply" and "Help" buttons.
  3. In the device properties dialogue window, click on the "Details" tab

How to run a shell script in OS X by double-clicking

  • First in terminal make the script executable by typing: chmod a+x (yourscriptname)
 
  • Then, in Finder, right-click your file and select "Open with" and then "Other...".
 
  • Here you select the application you want the file to execute into, in this case it would be Terminal.
  • To be able to select terminal you need to switch from "Recommended Applications" to "All Applications". NOTE: The Terminal.app application can be found i
Tags:

Setting the hostname on your Mac

Setting the hostname on your Mac using scuttle
  1. Open a terminal.
  2. Type the following command to change the primary hostname of your Mac: sudo scutil --set HostName <new host name>
  3. Type the following command to change the Bonjour hostname of your Mac: sudo scutil --set LocalHostName <new host name>
  4. Optional: If you also want to change the computer name, type the following command: sudo scutil --set ComputerName <new name>
Like this: sudo scutil --get HostName sudo scutil --get LocalHostName sudo scutil --get Com
Tags:

How to automount an SMB share in Mac OS X

How to automount an SMB share in Mac OS X
  1. Connect to your network share, in Finder, Select Go, then Connect to server
  2. Enter the credentials for your login to your network drive and tick the ‘remember in keychain’
  3. Open system settings, select users and groups then click on login items
  4. Drag the icon for your network drive from your desktop to the startup items.
Tags:

Moving a Lightroom catalog from PC to Mac

Something along these lines, On your Windows PC
  1. Select File then Export to Catalog
  2. Select a name and location for the new export catalog
  3. Wait a long time for it to copy the catalog file and all your photos to the new location.
On your Mac
  1. Create a new Catalog in your desired location
  2. From the File menu choose Import from Another catalog
  3. Chose to either
    1. Import files and leave them where they are
    2. Copy files to another location and then import

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer