Skip to content

Instantly share code, notes, and snippets.

View Linda-chan's full-sized avatar
🐄
То засада, то измена...

Linda Kaioh Linda-chan

🐄
То засада, то измена...
View GitHub Profile
@Linda-chan
Linda-chan / do-cleaner.rb
Last active December 23, 2018 11:06
Clean up domain records from verification records
#!/usr/local/bin/run_ruby_script_in_rvm
require "json"
require "os"
DOCTL_FILE_NAME = "doctl"
#====================================================================
def main
if OS.windows? then
@Linda-chan
Linda-chan / vimdiff.md
Last active December 6, 2018 12:58
Most useful hotkeys for visual comparsion in vim

vimdiff hotkeys

Most useful:

]c       – next difference
[c       – prev difference

dp       – copy left to right
do – copy right to left
#!/bin/bash
SRC_FILE_NAME="$1"
if [[ "$SRC_FILE_NAME" = "" ]] ; then
echo "Usage: $0 FILE"
exit
fi
if [[ ! -f "$SRC_FILE_NAME" ]] ; then