Skip to content

Instantly share code, notes, and snippets.

[aws]
symbol = " "
[character]
success_symbol = '[➜](bold green) '
error_symbol = '[➜](bold red) '
[conda]
symbol = " "

Installing Arch linux with EFI

  1. Change keyboard layout:

    • loadkeys no
  2. Verify boot mode:

    • ls /sys/firmware/efi/efivars (If the directory exist your computer supports EFI)
  3. Ping some site on the Internet to verify connection:

  • ping archlinux.org
@e-kostylov
e-kostylov / channel_example_test.go
Created June 30, 2021 19:14 — forked from casualjim/channel_example_test.go
examples of golang context and channels
package channel
import (
"fmt"
"sync"
"time"
)
func ExampleUnbufferedSend() {
c1 := make(chan string)
lib_name='trap'
lib_version=20121026
stderr_log="/dev/shm/stderr-$(date +%s).log"
#
# TO BE SOURCED ONLY ONCE:
#
###~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~##
@e-kostylov
e-kostylov / doom.txt
Created November 15, 2020 20:53 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@e-kostylov
e-kostylov / diskusage.go
Created May 14, 2020 08:13 — forked from ttys3/diskusage.go
Disk Usage info like `df -h` for Golang
package main
import (
"fmt"
syscall "golang.org/x/sys/unix"
)
type DiskStatus struct {
All uint64 `json:"all"`
Used uint64 `json:"used"`
@e-kostylov
e-kostylov / .gitconfig
Created February 26, 2020 11:21 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@e-kostylov
e-kostylov / config
Created January 20, 2020 14:22 — forked from 7415963987456321/config
Sway config
##################
# sway config file
##################
set $lock ~/.config/sway/scripts/lock.sh
set $grim ~/.config/sway/scripts/grim.sh
set $slurp ~/.config/sway/scripts/slurp.sh
set $mod Mod4
set $left h
set $down j
set $up k
# example of usage grafana/loki api when you need push any log/message from your python scipt
import requests
import json
import datetime
import pytz
host = 'myhost'
curr_datetime = datetime.datetime.now(pytz.timezone('Asia/Yekaterinburg'))
curr_datetime = curr_datetime.isoformat('T')
msg = 'On server {host} detected error'.format(host=host)