Skip to content

Instantly share code, notes, and snippets.

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
@e-kostylov
e-kostylov / dmenu_hotkeys.py
Created March 8, 2019 23:01 — forked from maledorak/dmenu_hotkeys.py
i3 hotkeys in dmenu or rofi
#!/usr/bin/env python3
import os
import sys
from re import compile
from subprocess import run, Popen, PIPE
__author__ = "Mariusz 'Maledorak' Korzekwa"
__credits__ = ["Mariusz 'Maledorak' Korzekwa"]
__license__ = "CC BY 4.0"
sudo apt-get update
sudo apt-get install golang-go -y
wget https://dist.ipfs.io/go-ipfs/v0.4.10/go-ipfs_v0.4.10_linux-386.tar.gz
tar xvfz go-ipfs_v0.4.10_linux-386.tar.gz
sudo mv go-ipfs/ipfs /usr/local/bin/ipfs