Skip to content

Instantly share code, notes, and snippets.

@MerreM
MerreM / robbyrussell-hostname.zsh-theme
Created October 31, 2018 13:52 — forked from SteelPangolin/robbyrussell-hostname.zsh-theme
Tweak robbyrussell ZSH theme to prepend hostname
local hostname="%{$fg_bold[black]%}%m"
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
PROMPT='${hostname} ${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
regexRozchodu = re.compile(r'(\w{8})(\s{15})(.*?)(\s*?)(\d{1,4})(\s{12})')
# regex to check if the script reached bottom of the list (list moves down
# everytime it is clicked on which is performed in zrzutHofsoft() function
jmstanminzero = re.compile(
r'J\.m\. Stan min\.: 0 Op\.: 0')
def populate_dictionary(rozchodTemp, zrzut):
# Populate the list
#!/usr/bin/env python
def main():
output = []
raw_message = "Test Message".upper()
keyword = "Keyword".upper()
while not keyword.isalpha():
keyword = input("Enter a valid word(only letters!)")
keyword_counter = 0
@MerreM
MerreM / punch.py
Last active August 29, 2015 14:20 — forked from koenbollen/punch.py
#!/usr/bin/env python
#
# Proof of Concept: UDP Hole Punching
# Two client connect to a server and get redirected to each other.
#
# This is the client.
#
# Koen Bollen <meneer koenbollen nl>
# 2010 GPL
#