Vi shortcuts

I am tired to look for Vi shortcuts, let the copy of this content stay here. Press Esc to start waiting for the command and after that enter the action.

  • $ vi <filename> — Open or edit a file.
  • i — Switch to Insert mode.
  • Esc — Switch to Command mode.
  • :w — Save and continue editing.
  • :wq or ZZ — Save and quit/exit vi.
  • :q! — Quit vi and do not save changes.
  • yy — Yank (copy) a line of text.
  • p — Paste a line of yanked text below the current line.
  • o — Open a new line under the current line.
  • O — Open a new line above the current line.
  • A — Append to the end of the line.
  • a — Append after the cursor’s current position.
  • I — Insert text at the beginning of the current line.
  • b — Go to the beginning of the word.
  • e — Go to the end of the word.
  • x — Delete a single character.
  • dd — Delete an entire line.
  • Xdd — Delete X number of lines.
  • Xyy — Yank X number of lines.
  • G — Go to the last line in a file.
  • XG — Go to line X in a file.
  • gg — Go to the first line in a file.
  • :num — Display the current line’s line number.
  • h — Move left one character.
  • j — Move down one line.
  • k — Move up one line.
  • l — Move right one character.

Fix Gilab runner error: listen_address not defined, metrics & debug endpoints disabled builds=0

The error is:

Configuration loaded builds=0
listen_address not defined, metrics & debug endpoints disabled builds=0
[session_server].listen_address not defined, session endpoints disabled builds=0
In gitlab runners allor “Run untagged jobs: Indicates whether this runner can pick jobs without tags”, set the checkbox correspondingly.

(more...)

SharePoint and field called "state"

SharePoint 2016 Logo

Many times I told myself not to work with SharePoint, but it's forever with me 🙂
My colleague asked to help him with a problem with modern lists. There some simple fields, without lookups. But there's an error in displaying items. I spent about an hour to determine the problem - created a copy of the list, removed all items, added items with only 1 filled field. It worked in classic view, but not in modern.

(more...)

Create list item and add data to SharePoint 2019 lists via REST C#

SharePoint 2016 Logo

Once I tried to make the application to migrate a custom data source from SharePoint 2010 to SharePoint 2019 on-premise. To make it easier, I decided to make to separate solutions – the first one to export the data from SharePoint 2010 from the list to JSON and attachments to local folder(CSOM for SharePoint 2010 sucks) and the utility to import data to SharePoint 2019 via REST.

(more...)

Git. How to add external repository to your project

If you work with external developers and you often have to get the code from them, it's not very good to transfer it with dropbox or something like that. You want to achieve it, view changes, make tests and build it. It's why CI/CD is made for. At first you should add external repository to your project and to automate the process of getting new builds. Here's how to do it.

(more...)

Main Git (Github, Gitlab) rules

I can't imagine the development process without Git. It's not only to store the source code, but to work and to live with it. If you can't use Git, you can't take part in modern development. It's not very difficult, may be it's even easy. But you should know some recommendations to avoid mistakes and to make your work more efficient.

(more...)

MarkiMarta.com. Notes of web-specialist
Since 2009
18+