Skip to content

Instantly share code, notes, and snippets.

View artsi0m's full-sized avatar

Artsiom Karakin artsi0m

  • Unemployed
  • Minsk
  • 22:41 (UTC +03:00)
View GitHub Profile
@akamch
akamch / russian-colemak.el
Created May 12, 2012 22:42
Кириллическая раскладка в Emacs для систем с Colemak
; Citing http://www.emacswiki.org/emacs/WritingRussianWithDvorak:
; "As you know, all the cyrillic InputMethods work in a way that assumes your keyboard is in QWERTY layout. However,
; if you’re using dvorak keyboard layout, you may discover that, for example, cyrillic-jcuken input method can’t work ; properly since all the ascii symbols on your keyboard are mapped to appropriate cyrillic ones according to the
; qwerty->jcuken translation rules.
; Thus, one of the possible solutions is to define your own input method which translate symbols according to
; dvorak->jcuken rules."
;
; Это такой input method, только для Colemak.
; Нужно положить этот файл в ~/.emacs.d и вставить в ~/.emacs строки:
; (load-file "~/.emacs.d/russian-colemak.el")
@kiwanami
kiwanami / calfw-git.el
Last active August 14, 2023 16:27
Calendar view for git-log
;;; calfw-git.el --- calendar view for git-log
;; Copyright (C) 2014 SAKURAI Masashi
;; Author: SAKURAI Masashi <m.sakurai at kiwanami.net>
;; Keywords: calendar
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
<meta charset="utf-8">
<style >*{
margin
:0;}
a {color : gold }
[e] {font-weight : bold }
[s] {white-space : pre }
[t] {text-decoration : overline }
@gonejack
gonejack / mapper-0.74.map
Last active February 26, 2024 11:19
Colemak keymap for DOSBox, put this file to %LOCALAPPDATA%\DOSBox
hand_shutdown "key 290 mod1"
hand_capmouse "key 291 mod1"
hand_fullscr "key 13 mod2"
hand_pause "key 19 mod2"
hand_mapper "key 282 mod1"
hand_speedlock "key 293 mod2"
hand_recwave "key 287 mod1"
hand_caprawmidi "key 289 mod1 mod2"
hand_scrshot "key 286 mod1"
hand_video "key 286 mod1 mod2"
@ishu3101
ishu3101 / gist_to_github_repo.md
Created November 24, 2015 08:35
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

@nicowilliams
nicowilliams / fork-is-evil-vfork-is-good-afork-would-be-better.md
Last active May 18, 2024 14:10
fork() is evil; vfork() is goodness; afork() would be better; clone() is stupid

I recently happened upon a very interesting implementation of popen() (different API, same idea) called popen-noshell using clone(2), and so I opened an issue requesting use of vfork(2) or posix_spawn() for portability. It turns out that on Linux there's an important advantage to using clone(2). I think I should capture the things I wrote there in a better place. A gist, a blog, whatever.

This is not a paper. I assume reader familiarity with fork() in particular and Unix in general, though, of course, I link to relevant wiki pages, so if the unfamiliar reader is willing to go down the rabbit hole, they should be able to come ou

@voutilad
voutilad / vmm-alpine.sh
Created May 29, 2017 15:16
Installing Alpine Linux in OpenBSD's VMM Hypervisor
# Assuming you're a regular user that has doas allowances for vmctl
mkdir -p ~/vmm
cd ~/vmm
# Grab the the one of the virt iso's of Alpine Linux
curl https://nl.alpinelinux.org/alpine/v3.6/releases/x86_64/alpine-virt-3.6.0-x86_64.iso -o alpine-virt-3.6.0-x86_64.iso
# Make a new virtual disk image, change the size as needed
vmctl create alpine-virt.img -s 6G
@exocode
exocode / kicad-cheat-sheet.md
Created April 6, 2019 20:18
KiCad short manual and cheat sheet

Flow

  1. Design Circuit
  2. Create Symbols (library editor)
  3. Schematic capture (eeschema)
  4. Create footprints (footprint editor)
  5. Generate Netlist (cvpcb)
  6. Board layout (pcbnew)
  7. Production (gerbview)
  8. Generate BOM (Digi-Key)
@hack-tramp
hack-tramp / AVRAwMSVS.txt
Last active May 29, 2024 16:30
How to compile AVRA with MS Visual Studio 2019
How to compile AVRA https://github.com/Ro5bert/avra
with MS Visual Studio 2019
New Project > Console Application > C++
(create it empty without any files)
Import all .c and .h files from AVRA src folder
In file.c, you will need to change line
#include <unistd.h> into: