Skip to content

Instantly share code, notes, and snippets.

@sochotnicky
sochotnicky / stdin
Created August 1, 2017 08:12
stdin
2017-08-01 10:12:24,798 - MainThread - __main__ - INFO - Found docker images to rebuild in following order:
2017-08-01 10:12:24,798 - MainThread - __main__ - INFO - Batch 0 (10 images):
2017-08-01 10:12:24,798 - MainThread - __main__ - INFO - - rpms/jenkins-slave-base-rhel7-docker#92fa240b80c0b2c3dd8a968113add8c6947ac8f9 (based on rhel-server-docker-7.3-97)
jenkins-slave-base-rhel7-docker-1.0-25
2017-08-01 10:12:24,799 - MainThread - __main__ - INFO - - rpms/rhmap-mongodb-docker#cbe112023eb189c78d3f57ca619aa0fe0f4eca9d (based on rhel-server-docker-7.3-97)
rhmap-mongodb-docker-3.2-22
2017-08-01 10:12:24,799 - MainThread - __main__ - INFO - - rpms/jboss-openjdk-docker#16fa05cf29356061b94b9dd2097fa089d222f8f6 (based on jboss-base-rhel7-docker-1.0-8)
jboss-openjdk18-rhel7-docker-1.0-10
2017-08-01 10:12:24,799 - MainThread - __main__ - INFO - - rpms/logging-deployment-docker#e0cb6d07b5b5bbd5cfde00610b4cc776a55aff35 (based on openshift-enterprise-docker-v3.5.5.31.6-2)
logging-deployment-d
@csswizardry
csswizardry / README.md
Last active June 16, 2024 13:44
Vim without NERD tree or CtrlP

Vim without NERD tree or CtrlP

I used to use NERD tree for quite a while, then switched to CtrlP for something a little more lightweight. My setup now includes zero file browser or tree view, and instead uses native Vim fuzzy search and auto-directory switching.

Fuzzy Search

There is a super sweet feature in Vim whereby you can fuzzy find your files using **/*, e.g.:

:vs **/*<partial file name><Tab>
@rponte
rponte / get-latest-tag-on-git.sh
Last active May 16, 2024 06:48
Getting latest tag on git repository
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples
@angstwad
angstwad / dict_merge.py
Last active March 1, 2024 23:53
Recursive dictionary merge in Python
# Copyright 2016-2022 Paul Durivage
#
# 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,
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 23, 2024 09:05
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname