๐
Link to these links: https://git.io/vKSVZ
Module 1:
- Run jenkins from war file:
jenkins -jar jenkins.war
- Run jenkins from docker:
docker run -d \
--restart unless-stopped \
--name jenkins \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GIT heart FZF | |
# ------------- | |
is_in_git_repo() { | |
git rev-parse HEAD > /dev/null 2>&1 | |
} | |
fzf-down() { | |
fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class LINQExtensions | |
{ | |
public static IEnumerable<IGrouping<TKey, TElement>> GroupAdjacentBy<TElement, TKey>(this IEnumerable<TElement> source, Func<TElement, TKey> keySelector, IEqualityComparer<TKey> comparer=null) | |
{ | |
comparer = comparer ?? EqualityComparer<TKey>.Default; | |
List<TElement> elements = null; | |
TKey key = default(TKey); | |
TKey lastKey = default(TKey); | |
foreach (var x in source) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ObservableExtensions | |
{ | |
/// <summary> | |
/// Group observable sequence into buffers separated by periods of calm | |
/// </summary> | |
/// <param name="source">Observable to buffer</param> | |
/// <param name="calmDuration">Duration of calm after which to close buffer</param> | |
/// <param name="maxCount">Max size to buffer before returning</param> | |
/// <param name="maxDuration">Max duration to buffer before returning</param> | |
public static IObservable<IList<T>> BufferUntilCalm<T>(this IObservable<T> source, TimeSpan calmDuration, Int32? maxCount=null, TimeSpan? maxDuration = null) |