Skip to content

Instantly share code, notes, and snippets.

View rk4an's full-sized avatar

Erkan rk4an

View GitHub Profile
@rk4an
rk4an / gist:3735630
Created September 17, 2012 04:58
MySQL status
<?php
$mysqli = new mysqli("localhost", "user", "password", "database");
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
printf ("System status: %s\n", $mysqli->stat());
@rk4an
rk4an / gist:3385371
Created August 18, 2012 08:44
Brother MFC-5860CN

Brother MFC-5860CN on Linux (Ethernet)

  • sudo apt-get install brother-lpr-drivers-bh7
  • Add printer with Gnome
  • Go to cups: http://localhost:631
  • Tab "Printers"
  • Select "MFC-5860CN"
  • Select "Edit printer"
  • Change settings: