Author: Konrad Fedorczyk
How to turn Arduino Mega 2560 into simple keyboard?
This tutorial will show you how to turn Arduino into HID controller (in this case simple keyboard).
How to list all PostgreSQL databases and their sizes in MB
You must provide proper database name and user: File: gistfile1.txt ——————- psql -c “SELECT pg_database.datname, pg_database_size(pg_database.datname), pg_size_pretty(pg_database_size(pg_database.datname)) FROM pg_database ORDER BY pg_database_size DESC;” -d
How to restore or update Arduino Mega 2560 firmware?
This tutorial is for Linux users. It will cover step by step how to flash an Arduino with miscellaneous firmwares (it’s for absolute beginners, you should know Linux quite good to perform this). I use cheap cloned board called Mega Keyes model Mega 2560 R3 with Atmega 2560 16AU. You can also use this method […]
Nice text highlighting effect in CSS
Check demo here: https://jsfiddle.net/fedek6/78mL1ora/
How to find Raspberry Pi using MAC address
When you want to find your headless but networked Raspberry Pi and you’re lazy like me use nmap: sudo nmap -sP 192.168.1.0/24 | awk ‘/^Nmap/{ip=$NF}/B8:27:EB/{print ip}’ Mask /24 means that addresses from 192.168.1.0 to 192.168.1.254 will be searched. You can extend that to /16 if you don’t know subnet of your device.
How to obscure your WordPress version and troll the attacker a little…
One of my company’s WordPress installations has been hacked by Turkish hackers recently. After quick investigation I’ve found that script version was little bit old (not a very popular website, mea culpa, not updated very often). In case you didn’t know, WordPress is bundled with readme file by default. I’ve found that malicious scripts or […]
Horizontal color fill loop for a preloader
Here’s a method to create horizontal color fill preloader using svg, js and a bit of CSS. Enjoy: https://jsfiddle.net/fedek6/nd6huxkr/1/
Tiled tile map editor
How to install Tiled map editor on Debian derivatives such as Ubuntu or Elementary.
How to add Bower component when it’s not in the repository?
Sometimes component that you want to use in your project isn’t available in Bower repo. There is a way to install it, even in very specified version. Go to project’s Github, in my case it’s here. Copy URL from the browser, and paste it somewhere. Now go to relases and click commit id that you’re interested […]
Search engine importer bookmarklet
Organic sources importer for Google Analytics. Check this site.