Skip to content

Instantly share code, notes, and snippets.

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

Kundan kundancool

💭
I may be slow to respond.
View GitHub Profile
@kundancool
kundancool / zsh-timestamp.md
Created February 18, 2022 12:54 — forked from zulhfreelancer/zsh-timestamp.md
How to add timestamp on right hand side of ZSH / iTerm2 terminal prompt?

Add the following snippet at the bottom of ~/.zshrc file.

Option 1 - Just time

RPROMPT='[%D{%L:%M:%S}] '$RPROMPT
@kundancool
kundancool / jenkins-git-backup.sh
Created January 13, 2017 10:06 — forked from choldrim/jenkins-git-backup.sh
Example of a script for backing up Jenkins config in git.
#!/bin/bash
# Copies certain kinds of known files and directories from a given Jenkins master directory
# into a git repo, removing any old ones, adds 'em, commits 'em, pushes 'em.
set -ex
if [ $# -ne 3 ]; then
echo usage: $0 jenkins_home git_repos_url git_repos_name
exit 1
fi
@kundancool
kundancool / LICENSE.txt
Created September 30, 2011 08:37 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri <http://www.p01.org/releases/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE