This file contains 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
[includeIf "gitdir:~/code/company.io/"] | |
path = ~/code/company.io/.gitconfig | |
[includeIf "gitdir:~/code/github.com/"] | |
path = ~/code/github.com/.gitconfig | |
[includeIf "gitdir:~/code/local/"] | |
path = ~/code/local/.gitconfig |
This file contains 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
import tkinter #in python 3.x: tkinter wird kleingeschrieben | |
window = tkinter.Tk() | |
window.title("TK Sample") | |
window.geometry("400x100") | |
frame = tkinter.Frame(window, relief="ridge", borderwidth=2) | |
frame.pack(fill="both",expand=1) | |
label = tkinter.Label(frame, text="Hello World!") | |
label.pack(expand=1) | |
button = tkinter.Button(frame,text="OK",command=window.destroy) |
This file contains 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
#could be injected by ci pipeline or extracted from git | |
tag=RELEASE#1.0.7-alpha | |
#Split by "#" to get Version substring | |
tagversion=( ${tag//#/ } ) | |
product_version="${tagversion[1]}" | |
echo "${product_version}" | |
#Split by "." | |
semver=( ${product_version//./ } ) |
This file contains 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
# github is separated from company and other logins | |
Host github.com | |
HostName github.com | |
User git | |
IdentityFile ~/.ssh/id_rsa_github | |
# dont have to remember the username | |
Host git-codecommit.*.amazonaws.com | |
User awscodecommitusername | |
IdentityFile ~/.ssh/id_rsa_aws |
This file contains 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
#!/usr/bin/env python | |
# requirements: pip install azure msrestazure | |
import os | |
''' | |
AZURE_PUBLIC_CLOUD | |
AZURE_CHINA_CLOUD | |
AZURE_US_GOV_CLOUD |
This file contains 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
# Shell prompt based on the Solarized Dark theme. | |
# Screenshot: http://i.imgur.com/EkEtphC.png | |
# Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles | |
# iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing. | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
export TERM='gnome-256color'; | |
elif infocmp xterm-256color >/dev/null 2>&1; then | |
export TERM='xterm-256color'; | |
fi; |
This file contains 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
#OS junk files | |
[Tt]humbs.db | |
*.DS_Store | |
#Visual Studio files | |
*.[Oo]bj | |
*.user | |
*.aps | |
*.vspscc | |
*.vssscc |
This file contains 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
using System; | |
using System.Windows.Media; | |
namespace blndev.GitHub.Extensions | |
{ | |
/// <summary> | |
/// Use this Extension to convert your SolidColorBrush in Format which is storable | |
/// </summary> | |
/// <example> | |
/// SolidColorBrush scb = new SolidColorBrush(Colors.White); |