Interesting Things I've Found in the World (of programming)

Google

Gmail

filters

https://support.google.com/mail/answer/7190?hl=en

before:2014-06-01
after:2014-06-01
has:attachment
size:1000000
larger:
smaller:
cc:
bcc:
dinner -movie
is:unread
OR
list:
filename:
in:anywhere
- exclude
+ exactly
to:
from:
subject:
is:chat

jump to messages

you can add the page of messages you want to see to the end of the url like p10 instead of clicking older 10 times!

https://mail.google.com/mail/u/0/#label/mbz/p10

Google Calendar add UTC event

Under Iceland there is a UTC timezone.

Chrome

How to remove a value from Autofill web form

Scroll down to the bad entry and then type:

<shift><delete>

How to remove individual site data

chrome://settings/siteData

How to close source tabs in Dev Tools

<Alt>W

Search

" -- Force search parameter

old Python2 gotchas

How to URL decode a utf-8 URL

urllib is a really old library and doesn't seem to support utf-8 very well. And i haven't found a newer version of the function in python?

urllib.unquote(url.encode('ascii')).decode('utf-8')

super() method doesn't work

if you get the error:

TypeError: super() argument 1 must be type, not classobj

you are inheriting from an old style class instead of a new style class. you need to add object to the class parent to convert it into a new style class. This only occurs in version 2.X, all classes in python 3.X are new style.

How to get all the properties on an object

for property, value in vars(theObject).iteritems():
    print property, value

Sleep better at night

Use a blue light filter on your Fedora installation and your Android phone.

Linux

When your remote gnome-terminal hangs on network/firewall error

~.  -  disconnects the network connection and gets your terminal back

Invert your find expression

To invert a find expression use the exclamation point

find . ! -group dev

Find files created on specific date (modified)

find . -type f -newermt 2017-06-07 ! -newermt 2017-06-08

Paste more the 4K to a terminal/file

on the paste terminal type

stty -icanon

you will have to Ctrl-C out of the cat then, because canon mode handles the Ctrl-D file end

how to run unetbootin as root under Wayland/Fedora 28+

under user run

xhost local:root

non-network local connections being added to access control list then with sudo

sudo QT_X11_NO_MITSHM=1 /usr/bin/unetbootin

right click gone with fedora 28

it's now an apple style right click. use two fingers to click and get the right click behavior

Apple

Key map

<ctrl><click> - inspect element at
<shift><command><3> - print screen region
<shift><command><4> - print full screen
<command>~ - switch windows inside app
<command><tab> - switch between apps
<option><command>R - reload page without cache