Skip to content

Instantly share code, notes, and snippets.

@ovc
ovc / .bash_profile
Created April 4, 2022 08:37 — forked from chrisberkhout/.bash_profile
Git aliases taken from oh-my-zsh's git plugin and translated to bash
# git aliases - taken from oh-my-zsh's git plugin and translated to bash
# https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet#helpful-aliases-for-common-git-tasks
# https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh
function git_current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
function git_current_repository() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
@ovc
ovc / git lol.md
Created April 4, 2022 05:41 — forked from outro56/git lol.md
git lol
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
git config --global alias.lol "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@ovc
ovc / publickey.asc
Last active April 28, 2021 12:54
Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEYFys1RYJKwYBBAHaRw8BAQdALIuG36zlECOnC6sFNEvKLz3do6gNZ3tlENM7
Y3dK5+e0JlJvbWFuIE92Y2hpbm5pa292IDxyb21hLm92Y0BnbWFpbC5jb20+iI4E
ExYKADYWIQQzAAJeJXxfqlcSHwPSLnGT9h9BewUCYFys1QIbAQQLCQgHBBUKCQgF
FgIDAQACHgECF4AACgkQ0i5xk/YfQXsPgQD7BMb7VHLFqY6a7fpRF+dPcySjf/zK
C08bQ1pw2OevNdUBAI7v+Vp1peED6Njo75coX9qP05tI5uQBNg4SWE9s/gILuDME
YFytXBYJKwYBBAHaRw8BAQdAxctM6fDBhXG/+peXDfEy/VaCiycX+jw5Y7j8sJs7
FuuI9QQYFgoAJhYhBDMAAl4lfF+qVxIfA9IucZP2H0F7BQJgXK1cAhsCBQkB4TOA
AIEJENIucZP2H0F7diAEGRYKAB0WIQSRjqVlNYkRWx9CPjTztV2Yg+s6cAUCYFyt
@ovc
ovc / wsl-ssh-pageant.md
Created December 13, 2019 06:43 — forked from h4de5/wsl-ssh-pageant.md
Use putty's SSH key agent (pageant) from windows in WSL bash - no more "ssh-add" needed

prepare on windows cmd

see: https://github.com/benpye/wsl-ssh-pageant

mkdir workspace
cd workspace
git clone git@github.com:benpye/wsl-ssh-pageant.git
cd wsl-ssh-pageant
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /out:wsl-ssh-pageant.exe Program.cs
@ovc
ovc / summary.org
Created December 9, 2017 09:01 — forked from Profpatsch/summary.org
Summary of the Talk “Literate DevOps With Emacs”
@ovc
ovc / org-mode-reference-in.org
Created September 7, 2017 08:06 — forked from drj42/org-mode-reference-in.org
This is a cheat sheet for Emacs org-mode... in org-mode format!
@ovc
ovc / Vendor_05ac_Product_0220.kcm
Created July 30, 2017 17:39 — forked from jettero/Vendor_05ac_Product_0220.kcm
Android Keymap and Charmap files — that I used to reverse the Fn key results for my Anker® T300 Ultra-Slim Mini Bluetooth 3.0 Wireless Keyboard
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@ovc
ovc / tmux-cheatsheet.markdown
Created March 10, 2017 11:09 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
(setq mu4e-mu-binary "/usr/local/bin/mu"
mu4e-sent-folder "/[Gmail].Sent Mail"
mu4e-drafts-folder "/[Gmail].Drafts"
mu4e-trash-folder "/[Gmail].Trash"
mu4e-refile-folder "/Archives"
mu4e-use-fancy-chars nil)
(setq user-mail-address "foo"
user-full-name "bar"
mail-user-agent 'message-user-agent
@ovc
ovc / always-view-mode.emacs
Created December 9, 2015 07:42 — forked from valvallow/always-view-mode.emacs
emacs, view-mode, find-file-hook
(add-hook 'find-file-hook
'(lambda ()
(interactive)
(view-mode)))