Skip to content

Instantly share code, notes, and snippets.

@elijahdanko
elijahdanko / gnome-shell-set-font.sh
Last active Jan 7, 2020
Change font of gnome-shell globally
View gnome-shell-set-font.sh
#!/usr/bin/env bash
#
# Author: Illia Danko (idanko@tuta.io)
# License: MIT
#
# Change font on Adwaita gnome-shell theme using gresource.
# You can adapt the script to adjust whatever you want.
#
# Tested on archlinux gnome-shell 3.34.2.
# Make sure that `gresource` and `glib-compile-resources` are located in the path.
@elijahdanko
elijahdanko / go-rpc_test.go
Last active Mar 6, 2019
Golang benchmark test to compare two built-in Gob and Json RPC servers.
View go-rpc_test.go
// The purpose of this source file is to compare transmittion speed of two
// built-in RPCs servers, namely Gob and Json by using blocking calls.
package main
import (
"net"
"net/rpc"
"net/rpc/jsonrpc"
"testing"
@elijahdanko
elijahdanko / pre-commit
Last active Mar 6, 2019
golang pre-commit hook
View pre-commit
#!/bin/sh
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
#
# To use, store as .git/hooks/pre-commit inside your repository and make sure
# it has execute permissions.
#
# This script does not handle file names that contain spaces.
# The script is adopted version of