Skip to content

Instantly share code, notes, and snippets.

View davidbarkhuizen's full-sized avatar
🧐

david barkhuizen davidbarkhuizen

🧐
  • .za
View GitHub Profile
from https://www.inksaver.co.za
https://www.inksaver.co.za/en/blog/Reset-the-Toner-Life-End-Message-on-Your-Brother-Printer.php
>>>
So you’ve just replaced your Brother toner cartridge in your printer and the 'toner low' or 'replace toner' warning keeps popping up. You’ve tried everything. You’ve taken the toner cartridge out and checked everything is working and all the packaging has been removed. You’ve shaken the cartridge from side to side. You’ve even switched the printer on and off and nothing is making that irritating little message go away. There’s nothing in the user manual to tell you what to do. And worst of all, even though you know the toner cartridge is new, the printer still won’t let you print!
Brother toner cartridges
Relax. Most Brother toner printers need to be told you’ve replaced the toner cartridge. You’ll have to manually reset the counter and, luckily, this is fairly easy to do. We’ve put together a handy list of Brother toner printers and how to reset the toner count on them.
@davidbarkhuizen
davidbarkhuizen / mac.md
Last active November 9, 2022 13:34
mac

mac os

window management

full-screen
ctrl + cmd + F

minimize current window
cmd + M

@davidbarkhuizen
davidbarkhuizen / scala.md
Last active October 14, 2022 13:06
scala
# install bluez-tools
$ sudo apt-get install bluez-tools
# list bt devices
$ bt-device -l
@davidbarkhuizen
davidbarkhuizen / sbt cheat sheet
Last active November 24, 2017 10:11
scala build tool cheat sheet
# sbt version
sbt sbt-version
or
sbt sbtVersion
# get scala version from sbt
$ sbt
[project] $ scala-version
@davidbarkhuizen
davidbarkhuizen / linux.md
Last active October 14, 2022 13:06
linux

find files matching expression

e.g. all .dll files in .

$ find . -name "*.dll"

copy directory and contents recursively

$ cp -R source destination/

list processes

-A include processes for all users

@davidbarkhuizen
davidbarkhuizen / java infrastructure cheat sheet
Last active November 24, 2017 07:55
java infrastructure cheat sheet
# uninstall java 9 on osx
https://www.java.com/en/download/help/mac_uninstall_java.xml
(confirm folder parths first)
$ sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/
$ sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
$ sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
@davidbarkhuizen
davidbarkhuizen / intellij scala cheat sheet
Last active April 13, 2018 11:50
intellij cheat sheet
NAVIGATION
# navigate to symbol definition cmd + B
# navigate backwards cmd + opt + left
# navigate forwards cmd + opt + right
# goto class cmd + O
# goto file shift + cmd + O
# goto symbol cmd + opt + O
@davidbarkhuizen
davidbarkhuizen / custom URI protocols in windows
Created December 21, 2017 05:55
custom URI protocols in windows
>>>
Registering an Application to a URI Scheme
https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx
To register an application to handle a particular URI scheme, add a new key, along with the appropriate subkeys and values, to HKEY_CLASSES_ROOT. The root key must match the URI scheme that is being added. For instance, to add an "alert:" scheme, add an alert key to HKEY_CLASSES_ROOT, as follows:
HKEY_CLASSES_ROOT
alert
URL Protocol = ""
@davidbarkhuizen
davidbarkhuizen / ubuntu 1804
Created July 15, 2018 04:58
ubuntu 1804 install, config & customization
configure laptop lid-close power behaviour
1. edit systemd config file @ /etc/systemd/logind.conf
2. uncomment & edit line a required
3. restart machine