I hereby claim:
- I am crallen on github.
- I am crallen (https://keybase.io/crallen) on keybase.
- I have a public key ASDMiswcuTplLAOhzsTqir2R-cPY3vfilT9m8HG9sxGWOwo
To claim this, I am signing this object:
package main | |
import ( | |
"testing" | |
"github.com/Masterminds/semver/v3" | |
) | |
type testCase struct { | |
Name string |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash -e | |
display_usage() { | |
echo -e "\nCopies settings from a kubeconfig context on the current machine to a new" | |
echo "kubeconfig file using a designated service account for credentials." | |
echo -e "\nUsage:" | |
echo " $0 [options] <serviceaccount>" | |
echo " $0 -h | --help" | |
echo -e "\nOptions:" | |
echo -e " -h --help Show this help text" |
#!/bin/bash | |
CONTAINERS=$(docker container ls -aq) | |
if [ -n "$CONTAINERS" ]; then | |
docker -l debug container stop $CONTAINERS | |
docker -l debug container rm $CONTAINERS | |
fi | |
docker -l debug system prune -af |
using Newtonsoft.Json.Serialization; | |
namespace ConsoleApplication3 | |
{ | |
public class SnakeCaseContractResolver : DefaultContractResolver | |
{ | |
protected override string ResolvePropertyName(string propertyName) | |
{ | |
return GetSnakeCase(propertyName); | |
} |
require 'find' | |
def copy_dir_tree(src_dir, dest_dir, ignored_exts) | |
Find.find(src_dir) do |file| | |
next if ignored_exts.include?(File.extname(file)) | |
if File.directory?(file) | |
mkdir File.join(dest_dir, file) | |
else | |
cp file, File.join(dest_dir, file) | |
end |
@echo off | |
REM Batch file used for task scheduler, calls Ruby script | |
C:\Ruby\bin\ruby.exe reset_build_numbers.rb |
# Simple Ruby script to reset TeamCity build numbers | |
USER_DIR = ENV['USERPROFILE'].gsub('\\', '/') | |
# If the .BuildServer directory for TeamCity is located elsewhere on your machine, change this constant to match | |
TC_BUILDSERVER_CONFIG = File.join(USER_DIR, '.BuildServer', 'config', '**', '*.buildNumbers.properties') | |
Dir.glob(TC_BUILDSERVER_CONFIG).each do |file| | |
buffer = File.new(file, 'r').read.gsub(/next.build=\d+/, 'next.build=1') | |
File.open(file, 'w') { |f| f.write(buffer) } |