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
@echo off | |
echo Building Package... | |
set arg1=%1 | |
set mydir="%~p0" | |
cd %mydir% | |
::find package name | |
::convert \ to ; |
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
class FunctionAttributeMapping(AttributeMapping): | |
def __init__(self, method, targetName): | |
AttributeMapping.__init__(self) | |
self.__method = method | |
self.__targetName = targetName | |
def getValue(self, ci): | |
import sys | |
modname = globals()['__name__'] | |
module = sys.modules[modname] |
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
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: dns-sync | |
# Required-Start: | |
# Required-Stop: | |
# Default-Start: S | |
# Default-Stop: | |
# Short-Description: Synchronizes /etc/resolv.conf in WLS with Windows DNS - Matthias Brooks | |
### END INIT INFO |
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
# Aliases | |
alias g='git' | |
alias gst='git status' | |
alias gclean="git pull --all -p && git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d" | |
alias gp='git push' | |
alias cdrep='cd /c/repositories/' |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": "unbound", | |
"keys": "win+shift+\u00b4" | |
}, | |
{ | |
"command": |
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
#!/bin/bash | |
# Author: Dominik Bartsch | |
usage=" | |
Usage: $(basename "$0") [OPTIONS] | |
A tool to gather several infromation about the OpenShift projects/namespaces and capacity | |
Options: | |
-h, --help Show this help text | |
-f, --foo Do the foo thing |
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 time | |
def measure(method, verbose=True, *params): | |
start = time.perf_counter() | |
result = method(*params) | |
for i in range(100000): | |
i + 1 | |
end = time.perf_counter() | |
duration = end - start |
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 os | |
import shutil | |
source_dir = os.getcwd() | |
for filename in os.listdir(source_dir): | |
try: | |
if filename[:4] == 'test': | |
file_path = os.path.join(source_dir, filename) | |
shutil.move(file_path, os.path.join(source_dir, 'test')) |