Skip to content

Instantly share code, notes, and snippets.

@akomakom
akomakom / git_svn_bash_prompt.sh
Last active September 19, 2018 18:15 — forked from woods/git_svn_bash_prompt.sh
Set color bash prompt according to git/svn branch, and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE:
@akomakom
akomakom / init.gradle
Last active March 29, 2018 15:27 — forked from mosabua/init.gradle
init.gradle file for proxying all repositories with Sonatype Nexus, with blacklisting feature for excluded projects. also adds plugin repository handling and a disable flag
/**
* init.gradle file for development using Nexus as proxy repository
*
* @author Manfred Moser <manfred@simpligility.com
* akom added blacklisting feature to leave certain projects alone.
*/
apply plugin: NexusRepositoryPlugin
class NexusRepositoryPlugin implements Plugin<Gradle> {
@akomakom
akomakom / russian-phonetic-like-linux.klc
Last active April 16, 2017 20:36 — forked from max630/gist:2872656
Russian phonetic layout for MS Keyboard Layout Creator 1.4 (Windows 7). Layout is the same as the standard Russian-Phonetic keyboard in Ubuntu. (Ч on +, Ю on `, Э on \). Layout Creator 1.4 would not load https://gist.github.com/max630/2872656, so I rebuilt it from scratch.
KBD RU_P "Russian - Phonetic Akom"
COPYRIGHT "(c) 2017 Akom"
COMPANY "Akom"
LOCALENAME "ru-RU"
LOCALEID "00000419"
@akomakom
akomakom / find-nexus-local-repos.rb
Last active December 19, 2016 22:58
Nexus 2.x backup helper that finds local repositories and produces an rsync include file or runs a command for each one. See comments and -h for usage.
#!/usr/bin/env ruby
#
# helper for backing up nexus 2 repositories that matter
# Run with -h for help
#
# Finds Nexus repositories that are not group, shadow or proxy
# and either produces an rsync file or runs an arbitrary command for each directory
#
# Examples (you may need to specify -n for all of these examples to specify your nexus installation)