Skip to content

Instantly share code, notes, and snippets.

View ykostr's full-sized avatar

Yevhen Kostryka ykostr

View GitHub Profile
@ykostr
ykostr / gist:a1a7ce76817af6fc40cfa1200fe31bd6
Created March 14, 2019 18:55 — forked from dmitshur/gist:6927554
How to `go get` private repos using SSH key auth instead of password auth.
$ ssh -A vm
$ git config --global url."[email protected]:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "[email protected]:"]
	insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!
@ykostr
ykostr / spacemacs-cheatsheet.md
Created March 1, 2019 14:42 — forked from davoclavo/spacemacs-cheatsheet.md
Spacemacs cheatsheet

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

NOTE: "M-m and SPC can be used interchangeably".

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ansi-color-faces-vector
[default default default italic underline success warning error])
'(blink-cursor-mode nil)
'(compilation-message-face 'default)
'(custom-enabled-themes '(leuven))
package main
import (
"strings"
"github.com/vmware/govmomi/vim25/soap"
"fmt"
"io/ioutil"
)
type Info struct {
@ykostr
ykostr / main.go
Created November 8, 2017 13:15 — forked from 0x6e6562/main.go
Simple gocql batch example
package main
import (
"github.com/tux21b/gocql"
"log"
)
func main() {
cluster := gocql.NewCluster("127.0.0.1")
cluster.Keyspace = "logs_ks"
@ykostr
ykostr / install_font_adobe_source_code_pro.sh
Created November 3, 2017 18:35 — forked from enzinier/install_font_adobe_source_code_pro.sh
Install font Adobe Source Code Pro on Ubuntu 16.04 LTS
#!/bin/sh
# Userland mode (~$USER/), (~/).
# ~/.fonts is now deprecated and that
#FONT_HOME=~/.fonts
# ~/.local/share/fonts should be used instead
FONT_HOME=~/.local/share/fonts
echo "installing fonts at $PWD to $FONT_HOME"
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"