Skip to content

Instantly share code, notes, and snippets.

@yerstd
yerstd / init.el
Created July 23, 2021 11:22 — forked from TheBB/init.el
(defun dotspacemacs/layers ()
(setq-default
dotspacemacs-configuration-layer-path '("~/.spacemacs.d/")
dotspacemacs-delete-orphan-packages t
dotspacemacs-distribution 'spacemacs
dotspacemacs-configuration-layers
`((auto-completion
:variables
@yerstd
yerstd / README.txt
Created March 23, 2020 12:54 — forked from ncw/README.txt
Client side certificates with go
This demonstrates how to make client side certificates with go
First generate the certificates with
./makecert.sh [email protected]
Run the server in one terminal
go run server.go
http://benmezger.me/post/109706270421/git-ignore-file-lines
Git: ignore file lines
I’ve always asked myself, if git can ignore files (using .gitignore), can it also ignore file lines? Well, not by default, but you can hack it.
It might sound stupid, but say you are working with a bunch of guys on a project, where somewhere in an important file you have something like this;
...
def connect_db():
require 'formula'
class Jemallocfb < Formula
homepage 'http://www.canonware.com/jemalloc/download.html'
url 'https://src.fedoraproject.org/repo/pkgs/jemalloc/jemalloc-3.6.0.tar.bz2/md5/e76665b63a8fddf4c9f26d2fa67afdf2/jemalloc-3.6.0.tar.bz2'
md5 'e76665b63a8fddf4c9f26d2fa67afdf2'
keg_only "We're just a patched version."
# __GLIBC__ is not defined, but we still want hooks!