Skip to content

Instantly share code, notes, and snippets.

View didenko's full-sized avatar
💭
I may be slow to respond.

Vlad Didenko didenko

💭
I may be slow to respond.
View GitHub Profile
@didenko
didenko / .vimrc
Created April 25, 2012 23:47
VIM startup file
set nocompatible
set backspace=indent,eol,start
set backup
set backupdir=~/tmp,/tmp,.
set directory=~/tmp,/tmp,.
set history=1000
set ruler
set showcmd
set mouse=a
set autoindent
@didenko
didenko / technic_osx.command
Last active December 15, 2015 05:39
A Technic downloader and launcher for OSX systems where Java 6 got upgraded to Java 7. Save the gist as `.command` file, e.g. `technic_osx.command`, make it executable and run it from Finder.
#!/bin/bash
#
# Copyright 2013 Vlad Didenko
#
# 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
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@didenko
didenko / 0. Version enforcement
Last active December 27, 2015 06:09
Transfer version information into your code and build environment.
In a rush to patch a hot issue developers may deploy
a dirty codebase build. Dirty in a sense that the build
happens while there are changes to the code which are
not committed to the repository, even if local. If that
dirty build goes to production while source code gets
more changes before committing, one will never have
certainty why that production build behaves a certain
way should a problem arise.
A full write-up on files in this solution is at:
@didenko
didenko / itermcd.scpt
Last active July 9, 2016 12:01
run iTerm2 in a specific folder (AppleScript) Raw
on run argv
tell application "iTerm"
if exists current window then
tell current window
create tab with default profile
end tell
else
create window with default profile
end if
@didenko
didenko / multiverse-configurable-margin.patch
Created January 19, 2017 19:50
Configurable margin in HTML5UP Multiverse photoalbum
diff --git a/assets/js/main.js b/assets/js/main.js
index 6044dc5..c27e37f 100644
--- a/assets/js/main.js
+++ b/assets/js/main.js
@@ -215,6 +215,9 @@
// Main.
var $main = $('#main');
+ var popupMargin = $main.attr("data-popup-margin");
+ if (popupMargin == 0) popupMargin = 50;
@didenko
didenko / Powershell confirmation wrapper
Last active April 1, 2017 14:41
Confirmation PowerShell script
powershell.exe -nologo -command "&" C:\bin\confirm.ps1 shutdown /r /t 15 /f /d p:0:0
@didenko
didenko / mermaid_sd.html
Last active April 28, 2017 01:39
mermaid diagramming library template
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.rawgit.com/knsv/mermaid/7.0.0/dist/mermaid.min.js"></script>
<script>mermaid.initialize({ startOnLoad: true });</script>
<style>
@import url('https://fonts.googleapis.com/css?family=Dosis');
body { width: 95%; margin: 1em auto; text-align: center; }
.note { width: 180px; }
.noteText { font-family: 'Dosis', sans-serif; }

The license file referred to in this Developer Certificate of Origin is the LICENSE.md file located in the root directory of this project's repository.

Developer Certificate of Origin

Version 1.1

Copyright © 2004, 2006 The Linux Foundation and its contributors.

1 Letterman Drive

@didenko
didenko / CLA.md
Last active December 13, 2017 14:10
CLA

Preamble

This Contributor License Agreement is a derivative from the GitHub, Inc's version 298f3afd updated August 9, 2017, copied and modified under the individually granted CC-BY-4.0 terms on November 14, 2017.

Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
@didenko
didenko / .bash_profile
Last active December 21, 2017 17:27
BASH profile
alias l="ls -AFGhlO "
alias ll="ls -alFgeh "
alias lll="ls -alFgeh@@ "
alias hig="history | grep "
alias less="less -i -~ "
alias ci="vi "
alias bb="bbedit"
alias gdc="godoc -http=:6060; open \"http:\\\\localhost:6060\\\""
function lg(){