- Connect printer, install printer drivers, and enable Printer Sharing.
- Open terminal, run:
dns-sd -Z _ipp._tcp
. You'll see a few lines of repeated text. Look for your printer's name, next to that record you will see aTXT
, copy everything afterTXT
into a notepad. - In that TXT line, you'll see a line like this:
"pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster"
Change that, to add,image/urf
. So it'll look like:"pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf"
- Now take that entire TXT line, and add it to this:
dns-sd -R "name_to_be advertised" _ipp._tcp.,_universal . 631 URF=none pdl=application/pdf,image/urf YOUR_TXT_STRING
- Run that line in the terminal, and Airprint should be enabled.
#!/usr/bin/env python3 | |
PRINTER = '/dev/usb/lp0' # the printer device | |
DOTS_MM = 8 # printer dots per mm, 8 == 203 dpi | |
WIDTH_MM = 100 # sticker width, mm | |
HEIGHT_MM = 35 # sticker height, mm | |
GAP_MM = 2 # sticker gap, mm | |
FONT = "0" # built-in vector font, scalable by X and Y |
function hide_wordpress_icon() { | |
echo "<style>#wp-admin-bar-wp-logo, #wp-admin-bar-comments { | |
border: 0; clip: rect(0 0 0 0); height: 1px;margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }</style>"; | |
} | |
add_action('admin_head', 'hide_wordpress_icon'); |
sudo fsck -y /dev/sda1 && sudo reboot
I see a lot of users having issues connecting to umbrel.local and most of them are Windows users. People… please before getting into running a node, DYOR and learn at least basics about networking, TCP/IP, IPs, LAN, WAN.
Running a node is something serious, is not a toy!
ssh-copy-id -i ~/.ssh/mykey user@host
Test it:
ssh -i ~/.ssh/mykey user@host
OR:
cat ~/.ssh/raspberry-pi.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys
youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re
youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/user/TheLinuxFoundation/playlists
A very simple and straightforward way that worked for me is as follows:
Stop apache2.
sudo service apache2 stop
Uninstall Apache2 and its dependent packages.
Now that all modern browsers support SVG favicons, here's how to turn any emoji into a favicon.svg: | |
<svg xmlns="http://w3.org/2000/svg" viewBox="0 0 100 100"> | |
<text y=".9em" font-size="90"> | |
Pile of poo | |
</text> | |
</svg> | |
Useful for quick apps when you can't be bothered to design a favicon! |
This Gist contains an example code fragment of how to read temperature and humidity data from Inkbird ibs-TH1 bluetooth thermometer in NodeJS with Noble.
Note that you can also read values directly via command line with gatttool
:
gatttool -b <MAC> --char-read --handle=0x002d
Example value: