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 December 9, 2024 00:27
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 December 22, 2024 16:02
Recursive dictionary merge in Python
import collections
def dict_merge(dct, merge_dct):
""" Recursive dict merge. Inspired by :meth:``dict.update()``, instead of
updating only top-level keys, dict_merge recurses down into dicts nested
to an arbitrary depth, updating keys. The ``merge_dct`` is merged into
``dct``.
:param dct: dict onto which the merge is executed
:param merge_dct: dct merged into dct
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 13, 2025 13:48
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname