Skip to content

Instantly share code, notes, and snippets.

View juev's full-sized avatar
🏠
Working from home

Evsyukov Denis juev

🏠
Working from home
View GitHub Profile
@juev
juev / budget.ledger
Created March 12, 2019 09:44 — forked from simonmichael/budget.ledger
seeking minimal ledger budget examples
; whenever there's a food expense, deduct the same amount from the budget
= /^expenses:food$/
(budget:food) -1
1/1 opening balances
assets:checking 1000
equity:opening balances
1/2 budget allocation ; could also do this with an automated posting on income txns
@juev
juev / envelope-budgeting.journal
Created March 9, 2019 14:52 — forked from simonmichael/envelope-budgeting.journal
envelope budgeting example
; An example of YNAB-ish envelope budgetting with hledger/ledger
; cf https://github.com/simonmichael/hledger/issues/315
; Using accounts like the following:
;
; assets
; business
; bank
; wf
; bchecking
@juev
juev / match.c
Created January 14, 2019 17:21 — forked from ianmackinnon/match.c
C Regex multiple matches and groups example
# gcc -Wall -o match match.c && ./match
#
#include <stdio.h>
#include <string.h>
#include <regex.h>
@juev
juev / zshrc
Created December 29, 2018 07:00
##############
# BASIC SETUP
##############
typeset -U PATH
autoload colors; colors;
#############
## PRIVATE ##
#############
@juev
juev / .vimrc
Created December 8, 2018 08:13 — forked from millermedeiros/.vimrc
My VIM settings (.vimrc)
" =============================================================================
" Miller Medeiros .vimrc file
" -----------------------------------------------------------------------------
" heavily inspired by: @factorylabs, @scrooloose, @nvie, @gf3, @bit-theory.
" =============================================================================
" -----------------------------------------------------------------------------
" BEHAVIOR
" -----------------------------------------------------------------------------
@juev
juev / gist:bdfcfcf7afef1352d30a6284199e1326
Created November 30, 2018 06:11 — forked from nateware/gist:3915757
Start Mac VNC server from command line
# Step 1: Set priveleges
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all
Starting...
Setting allow all users to YES.
Setting all users privileges to 1073742079.
Done.
# Step 2: Allow VNC clients

Chrome

  1. HTTPS Everywhere
  2. Inoreader Companion
  3. Privacy Possum
  4. Save to Pocket
  5. The New Tab - Customize Your Start Page
  6. uBlock Origin

Firefox

#!/usr/bin/env bash
# Usage: {script} [ OPTIONS ] TARGET BUILD
#
# TARGET Default target is "/usr/local".
# BUILD If not defined tries to get the build into the Sublime Text 3 website.
#
# OPTIONS
#
# -h, --help Displays this help message.
#
@juev
juev / emacs.el
Created April 2, 2018 12:28 — forked from nilsdeppe/emacs.el
My Emacs init file
;;; initfile --- Summary:
;;; Commentary:
;; Emacs 25.1 and newer tested
;;; Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Configuration/Customization:
;; Defines global variables that are later used to customize and set
;; up packages.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;