Posts tagged “til”

20230410T002200

9 April 2023

TIL that you can create Gmail filters on the iOS app.




20230318T221318

18 March 2023

TIL that on Windows you can use a laptop as a second display using this tutorial.




20230318T194024

18 March 2023

TIL you can have a universal shortcut to paste as plain text on Windows with Powertoys.




20220428T175828

28 April 2022

TIL you can convert OpenDocuments into txts and pdfs with unoconv.

unoconv -f pdf *.odt
unoconv -f txt *.odt



20220407T193600

7 April 2022

TIL you can use a bluetooth mouse and keyboard in iOS.




20220407T150511

7 April 2022

TIL you can use multiple ssh private keys in one client.

# credit: https://stackoverflow.com/a/2419609
Host myshortname realname.example.com
    HostName realname.example.com
    IdentityFile ~/.ssh/realname_rsa # private key for realname
    User remoteusername

Host myother realname2.example.org
    HostName realname2.example.org
    IdentityFile ~/.ssh/realname2_rsa  # different private key for realname2
    User remoteusername



20220405T142655

5 April 2022

TIL you can clone a specific branch with git.

git clone -b my-branch --single-branch git@github.com:user/myproject.git



20220401T225319

1 April 2022

TIL that people hiking up the mountain have the right of way.




20220329T191514

29 March 2022

TIL you can change the background color of conflict marker sections.

Credit: https://vi.stackexchange.com/a/19760

function! ConflictsHighlight() abort
    syn region conflictStart start=/^<<<<<<< .*$/ end=/^\ze\(=======$\||||||||\)/
    syn region conflictMiddle start=/^||||||| .*$/ end=/^\ze=======$/
    syn region conflictEnd start=/^\(=======$\||||||| |\)/ end=/^>>>>>>> .*$/

    highlight conflictStart ctermbg=red ctermfg=black
    highlight conflictMiddle ctermbg=blue ctermfg=black
    highlight conflictEnd ctermbg=green cterm=bold ctermfg=black
endfunction

augroup MyColors
    autocmd!
    autocmd BufEnter * call ConflictsHighlight()
augroup END



20211216T090942

16 December 2021

TIL that the word procrastinate” comes from the Latin procratinat- which means deferred till the morning”.

The prefix pro means forward and crastinus means belonging to tomorrow” which comes from the word cras which means tomorrow”.

An image of the etymology diagram for the word 'procrastinate' from google dot com.
This screenshot is taken from google.com, which gets its information from Oxford Languages.



20211215T132749

15 December 2021

TIL that the word robot” comes from the Czech word robota which means forced labor”.

An image of the etymology diagram for the word 'decide' from google dot com.
This screenshot is taken from google.com, which gets its information from Oxford Languages.



20211215T115458

15 December 2021

TIL you can detect whether the targetEnvironment is iPadOS in SwiftUI with the following code:


extension UIDevice {
static var isIPad: Bool {
UIDevice.current.userInterfaceIdiom == .pad
}
static var isIPhone: Bool {
UIDevice.current.userInterfaceIdiom == .phone
}
}

Here’s the Stack Overflow comment I got this code from.




20211215T105604

15 December 2021

TIL that the word decide” originally meant cut off” in Latin. So when you decide on something you cut off” all other possible choices.

An image of the etymology diagram for the word 'decide' from google dot com.
This screenshot is taken from google.com, which gets its information from Oxford Languages.



20211215T100733

15 December 2021

TIL you can find a file recursively in Linux with the following command:


find . -name "*foo"

Here’s the Stack Overflow comment I got this from.




20211206T205658

6 December 2021

TIL you can have syntax highlighting with code blocks in JIRA.

Here’s an example inspired from the docs:

{code:java}
// Some comments here
public String getFoo()
{
    return foo;
}
{code}



20211129T212900

29 November 2021

TIL you can switch back to the previous branch by running git switch -.




20211129T185500

29 November 2021

TIL you can navigate to the previous directory with cd -.




20211116T181500

16 November 2021

TIL that there’s a free, open source, private, iOS fitness app called OutRun (App Store).




20211116T181000

16 November 2021

TIL you can get music recognition (Shazam) in your Control Center.




20211113T141455

13 November 2021

TIL you can get Vim keybindings in XCode 13.

Menu Bar -> Editor -> Vim Mode




20211105T230006

5 November 2021

TIL you can create an iOS shortcut to turn Bluetooth off completely.

Or you can download mine.




20211105T204230

5 November 2021

TIL you can create an iOS shortcut to turn Wifi completely off.

Or you can download mine.




20211103T150150

1 November 2021

TIL there’s dark mode on Webex.

You can only turn this on during a meeting.




20211029T105802

29 October 2021

TIL you can sort lines of text in Vi.

  1. Select lines with Visual mode linewise
  2. :sort<CR>



20211026T142734

29 October 2021

TIL you can quickly go to another character in the terminal when you do +click.