Skip to content

Instantly share code, notes, and snippets.

View nega0's full-sized avatar
🌴
I may be slow to respond.

nega nega0

🌴
I may be slow to respond.
View GitHub Profile
@nega0
nega0 / init.el
Created February 24, 2019 15:27
minimal init.el w/ package.el initialization and tramp
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize)
;; Bootstrap 'use-package'
(eval-after-load 'gnutls
@nega0
nega0 / wipe.bat
Created June 8, 2019 21:20
wipe partition table with debug.exe
debug <wipe.in
@nega0
nega0 / opt.pl
Created July 24, 2019 14:22
create an optimized regular expression (regex/regexp) from list of strings
#!/usr/bin/perl -w
use feature qw(say);
use strict;
use Regexp::List;
my @s = <STDIN>;
my $l = Regexp::List->new;
say $l->list2re(@s);
@nega0
nega0 / dashes.py
Last active June 3, 2022 02:55
display the list of unicode dashes/hyphens
#!/usr/bin/env python3 # -*- coding: utf-8; -*-
# table sourced from http://jkorpela.fi/dashes.html
## - U+002D &#45; hyphen-minus the Ascii hyphen, with multiple usage, or “ambiguous semantic value”; the width should be “average”
## ~ U+007E &#126; tilde the Ascii tilde, with multiple usage; “swung dash”
## ­ U+00AD &#173; soft hyphen “discretionary hyphen”
## ֊ U+058A &#1418; armenian hyphen as soft hyphen, but different in shape
## ־ U+05BE &#1470; hebrew punctuation maqaf word hyphen in Hebrew
## ᐀ U+1400 &#5120; canadian syllabics hyphen used in Canadian Aboriginal Syllabics
## ᠆ U+1806 &#6150; mongolian todo soft hyphen as soft hyphen, but displayed at the beginning of the second line
@nega0
nega0 / drac.md
Last active February 2, 2022 03:58
dracula example

emacs + dracula

included files:

  • init.el -- minimal ~/.emacs.d/init.el
  • nega_basic.terminal -- Terminal.app settings (i think it's the default "Basic" profile)
  • nega_tn_iterm2.json -- my iTerm2 profile

TERM is set via the terminal emulator settings (xterm-256color). i don't touch it my shell init files.

from back-to-front... chrome, Emacs 27.2, same in Terminal.app, same in iTerm2