Recent Updates Page 2 Toggle Comment Threads | Keyboard Shortcuts

  • Mads Madsen 10:20 on March 11, 2014 Permalink | Reply
    Tags: one-liner, search replace   

    One-liner search and replace 

  • Mads Madsen 09:31 on February 14, 2014 Permalink | Reply
    Tags: 10.9, E155036, , , Maverick, subversion   

    Install old subversion on Mac OS X with homebrew (E155036) 

    Today I got a new macbook and I ran into a problem because the subversion installed on the laptop was too new for our subversion system.

    Error message:

    So I had install an older version of subversion, here is how I did it.

    Tap homebrew versions.

    Install subversion16


  • Mads Madsen 19:53 on February 13, 2014 Permalink | Reply
    Tags: , , , uid, usermod   

    Change a user’s UID 

    First login as root – Clean login – sudo will not work if you’re changing a UID on an already logged in user.

    Find the user’s old UID:

    uid=1000(user1) ….

    Change the UID:

    Update files and directories owned by the user to the new UID:

    Reboot and the UID has been changed.

  • Mads Madsen 23:04 on August 16, 2013 Permalink | Reply
    Tags: Scroll,   

    Reverse scroll direction on Windows 8 

    Powershell commands:


    Switching around from Windows and Mac OS x can be a bit confusing, so I decided to reverse the scroll direction on my Windows machines, so they would feel the same as under Mac OS x.
    Here is how I did it:

    1. Find the Hardware ID for your mouse
      • Go to the mouse control panel
      • Select “Hardware” tab
      • Click “Properties” button
      • Select “Details” tab
      • From the drop-down list choose “Hardware IDs”
      • Save the VID*** entry ( e.g. VID_045E&PID_0039 )
    2. Find and change the corresponding configuration settings in the registry
      • Run regedit.exe (With administrator rights)
      • Navigate to the Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID
      • Find the Hardware ID entry of your mouse
      • Under all subkeys of the Hardware ID key look for the “DeviceParameters” key and change the “FlipFlopWheel” value from 0 to 1
    3. Making it work:
      • Unplug your mouse
      • Wait a few moments
      • Plug in your mouse


  • Mads Madsen 23:08 on April 30, 2013 Permalink | Reply
    Tags: nginx, rewrite, TYPO3 Flow   

    TYPO3 Flow nginx rewrite rules. 

    Tested on nginx 1.4 and nginx 1.2.

  • Mads Madsen 21:46 on April 27, 2013 Permalink | Reply
    Tags: , Hyper-V, , Port forwarding,   

    Port forwarding in Windows 8 

    One of the drawbacks of Hyper-V on Windows 8 Pro, is that lack of NAT. Luckily Windows 8’s networking supports port proxies in netsh.


  • Mads Madsen 22:51 on April 17, 2013 Permalink | Reply
    Tags: , , , , udev   

    Fixing eth numbering 

    While moving virtual machines around, it will usually mean a change on MAC addresses on the networking interfaces, which will create new eth nodes on the machine.
    Reasons for the renaming of eth nodes on the machine, is due to the persistent mapping on Linux systems using udev.
    Fixing this is done by removing the entities in the /etc/udev/rules.d/70-persistent-net.rules and reboot the machine.

  • Mads Madsen 01:20 on April 16, 2013 Permalink | Reply
    Tags: , , WoL   

    Simple WoL script 

    Simple wake-on-lan script, to wake up a WoL enabled computer when it receives a connection. This script is currently running on an old router.

    It requires the wol command.

  • Mads Madsen 00:56 on April 16, 2013 Permalink | Reply
    Tags: Multicast, Namespaces, , , Sockets, Threading   

    WIP: “Simulated” auto scaling with PHP 

    Source: AutoScale on BitBucket

    General idea:
    Use a locale memcached database to keep an eye on load for the current server, using data from processes using resources on the node. (Eg. not connection time to database server, only pure processing power used on current node).

    Edit config.php.
    execute agent.php


    • Allow possibility to change testing to “loadavg”, as a source for determine load.
  • Mads Madsen 00:42 on April 16, 2013 Permalink | Reply
    Tags: JavaScript, Terminal, WIP   

    WIP: Terminal emulator written in JavaScript 


Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc