Wipe / clear / reset a Chromebit

Written by r2d2. Posted in Archive, Tips

  1. Turn off the Chromebit by removing the power cord.
  2. Put a paperclip (or pushpin) into the recovery button hole while reattaching the power cord (to turn on the device). The recovery button hole is circled below:
  3. Press Ctrl + D.
  4. Once again, put a paperclip (or pushpin) into the recovery button hole. The device reboots and displays a red exclamation point.
  5. Press Ctrl + D. The Chromebit reboots and starts the transition to developer mode. This clears all local data, a process that takes approximately 10 minutes.
    If Forced re-enrollment is enabled for the device, you’ll see a note that developer mode is blocked. This shortens the wipe process, and still allows for re-enrollment when the device automatically reboots into verified mode.

  6. At the startup screen, press the spacebar, and then press Enter to reboot the device and return to verified mode.
  7. If you’re using a managed Chromebit for your school or business, follow these steps to enroll the device.

Cool retro terminal

Written by r2d2. Posted in Linux, OS X

Install the App for OS X

  1. Press Command+Space and type Terminal and press enter/return key.
  2. Run in Terminal app:
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null
    and press enter/return key. Wait for the command to finish.
  3. Run:
    brew cask install cool-retro-term

Done! You can now use cool-retro-term.


Source macappstore.org

Install the App for Linux

To install cool-retro-term in Ubuntu based Linux distributions, such as Linux Mint, elementary OS, Linux Lite etc, use the PPA below:

sudo add-apt-repository ppa:noobslab/apps
sudo apt-get update
sudo apt-get install cool-retro-term

If you get the error: Error sudo: add-apt-repository: command not found

Install the add-apt-repository:

apt-get install software-properties-common

and repeat the installation.

$_SERVER[‘PATH_INFO’] not working!

Written by leif. Posted in PHP, Programmering

if (isset($_SERVER['PATH_INFO'])) {
    $request_uri = trim($_SERVER['PATH_INFO'], '/');
} elseif (isset($_SERVER['ORIG_PATH_INFO'])) {
    $request_uri = trim(str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['ORIG_PATH_INFO']), '/');
} else {
    $request_uri = '';

echo "PATH_INFO = " . $_SERVER['PATH_INFO'] . "<br>"; 
echo "\$request_uri = ".$request_uri . "<br>";
echo "All server vars<br>";
echo "<pre>";
echo "</pre>";
echo "tested with: http://localhost:8080/wordpress/leif.php/asd/qwe<br>";
echo "Output:<pre>";
echo "

PATH_INFO = /asd/qwe
$request_uri = asd/qwe
All server vars
    [HTTP_HOST] => localhost:8080
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_CONNECTION] => keep-alive


Written by leif. Posted in Tips

Modify your hosts file

Last updated on: 2016-06-08 Authored by: Rackspace Support

Modifying your hosts file enables you to override the DNS for a domain, on that particular machine. This is useful when you want to test your site without the test link, prior to going live with SSL; verify that an alias site works, prior to DNS changes; and for other DNS-related reasons. Modifying your hosts file causes your local machine to look directly at the IP address specified.

To modify the hosts file, you add two entries to the file that contains the IP address that you want the site to resolve to and the address. Adding the following two lines, for example, point www.domain.com anddomain.com to our current PHP5-ITK (“Refreshed” PHP5) cluster: www.domain.com domain.com

Ubuntu: moving the Launcher to the bottom of the window

Written by r2d2. Posted in Linux, Tips

First install the dconf-editor.unitya

To do this, issue the command

  • sudo apt-get install dconf-editor
  • Open the program dconf-editor
  • Navigate to com / canonical / unity / launcher
  • and change the launcher-position to bottom.


or at the terminal type:

gsettings set com.canonical.Unity.Launcher launcher-position Bottom

Install compiz

sudo apt-get install compizconfig-settings-manager compiz-plugins compiz-plugins-extra


Things To Do After Installing Elementary OS Freya

Written by leif. Posted in Linux

Update your system

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

elementary Tweaks

sudo add-apt-repository ppa:mpstark/elementary-tweaks-daily
sudo apt-get update
sudo apt-get install elementary-tweaks

Install VLC Media Player

sudo apt-get install vlc

Install Plugin Flash Player and Pepper Flash

sudo apt-get install flashplugin-installer pepperflashplugin-nonfree

Install Additional Web Browser

sudo apt-get install chromium-browser firefox

Install Graphic Editor

sudo apt-get install gimp inkscape

 Install Indicator Synapse

sudo add-apt-repository ppa:elementary-os/daily
sudo apt-get update
sudo add-apt-repository ppa:elementary-os/unstable-upstream
sudo apt-get update
sudo apt-get install indicator-synapse
sudo killall wingpanel


Install Synapse

sudo add-apt-repository ppa:synapse-core/ppa 
sudo apt-get update
sudo apt-get install synapse

Execute Synapse from the slingshot launcher


Install Cloud Storage

Download DropBox : https://www.dropbox.com/install?os=lnx

Install Google Drive :

sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt-get update
sudo apt-get install google-drive-ocamlfuse

 For Laptop : Install TLP for Improve Battery Life and Reduce Overheating

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start


sudo apt-get install gnome-disk-utility

Disable OneDrive

Written by r2d2. Posted in Tips

OneDrive er indbygget i Windows 10, så du kan ikke fjerne det som en app. Du kan dog skjule det og standse synkronisering af OneDrive-filer med din pc. 
Deaktivere eller fjerne OneDrive:


Deaktivere OneDrive i Windows 8.1 eller Windows 10

Tryk på Windows-tasten + R for at åbne dialogboksen Kør.

Skriv gpedit.msc, og klik på OK.

I editoren til lokal gruppepolitik skal du på mappelisten under lokal computerpolitik gå til Lokal computerpolitik > Computerkonfiguration> Administrative skabeloner > Windows-komponenter > OneDrive.

På OneDrive-skærmen skal du under Indstilling klikke på Undgå brug af OneDrive til lagring af filer.

I feltet Undgå brug af OneDrive til lagring af filer skal du vælge Aktiveret og derefter klikke på OK.
Skjule OneDrive i Windows 10:


Højreklik på OneDrive-ikonet i meddelelsesområde nederst på Windows-skærmen. Du skal muligvis klikke på pilen Vis skjulte ikoner for at finde OneDrive.

Klik på Indstillinger, og fjern markeringen af alle afkrydsningsfelter under Generelt på fanen Indstillinger.

På fanen Gem automatisk skal du angive listerne Dokumenter og Billeder til Kun denne pc og fjerne markeringen i de andre afkrydsningsfelter.
På fanen Konto skal du klikke på Vælg mapper.
I dialogboksen Synkroniser dine OneDrive-filer til denne pc skal du markere og fjerne markeringen i afkrydsningsfeltet ud for Synkroniser alle filer og mapper på mit OneDrive. (Når du markere feltet vælges alle felterne, og når du fjerner markeringen igen, ryddes alle felterne.) Klik på OK for at lukke dialogboksen og vende tilbage til indstillinger.
Ved at udføre dette trin fjernes alle OneDrive-filer fra din computer, men de bevares på OneDrive.com.
Klik på OK for at gemme dine ændringer i Indstillinger.
Åbn dialogboksen Indstillinger igen: Højreklik på OneDrive-ikonet i meddelelsesområdet, og klik på Indstillinger. Klik på Fjern link til OneDrive på fanen Konto. Luk dialogboksen Velkommen til OneDrive, der vises.
Åbn Stifinder, højreklik på OneDrive, og klik derefter på Egenskaber.
Markér feltet Skjult ud for Attributter på fanen Generelt. Så skjules OneDrive fra Stifinder.
Tilbage i meddelelsesområdet skal du endnu engang højreklikke på OneDrive-ikonet og derefter klikke på Afslut. På den måde fjernes OneDrive-ikonet fra meddelelsesområdet.

Windows 7 SP1 Windows Update stuck checking for updates

Written by r2d2. Posted in Tips, Windows


This is what I do when I reinstall Windows 7 with SP1 or have issues with Windows update stuck on checking for updates.

If Service Pack 1 is not installed, install it before following this guide.



for 64bit W7 or


for 32bit W7

Download KB-3138612 and save it where you can find it later

Download SUR Tool save it to same place

Restart the PC and disconnect from internet before Windows loads, this is important because at every boot windows will check for updates in the background and this will start the checking for updates hang all over again and will prevent the install of the downloaded packages until it finishes checking, so disconnecting from the internet before Windows loads prevents this.

Once booted install KB-3138612, if reboot is required do so and stay disconnected from internet.

Now install the SUR Tool package, this is a big package and will install many updates along with cleaning up and repairing the Windows update store. It will also cut down on how many more Windows updates will need to be installed later.

After install of SUR package reboot, connect to internet and do a manual Windows Update, it should work much faster now. Even after these fixes I have seen some W7 PC’s take up to an hour to finish checking for updates if launched from Control Panel manually.

If you have other Windows updates issues and the 2 updates above are installed, download this Microsoft Windows Update fixit tool (right click “save link as”) run it and select aggressive mode to completely reset Windows updates. Reboot and try Windows Updates from the Control Panel again.

All downloads [HERE]