There are some key values that the time.Parse is looking for.
By changing:
test, err := time.Parse("10/15/1983", "10/15/1983")to
| import os | |
| def merge_files_in_folder(folder_path, output_file): | |
| """ | |
| Merges all .go files in the specified folder and its subfolders into a single file, excluding the vendor directory. | |
| Args: | |
| folder_path (str): Path to the folder containing .go files to merge. | |
| output_file (str): Path to the output file where content will be merged. | |
| """ |
| # list all pods | |
| kubectl -n dev get pods | |
| # list all config maps (CM) for env vars etc. | |
| kubectl -n dev get cm | |
| # get logs of pod | |
| kubectl -n dev logs -f <pod name> | |
| # get content of CM |
There are some key values that the time.Parse is looking for.
By changing:
test, err := time.Parse("10/15/1983", "10/15/1983")to
| // Copyright 2017 Google LLC | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, |
I hereby claim:
To claim this, I am signing this object:
| while true; do netstat -ant | awk '{print $6}' | sort | uniq -c | sort -n; sleep 1; clear; done |
| package main | |
| import ( | |
| "bufio" | |
| "log" | |
| "os" | |
| "strings" | |
| ) | |
| func checkErr(err error) { |
| package main | |
| import ( | |
| "bufio" | |
| "os" | |
| "regexp" | |
| ) | |
| func checkErr(err error) { | |
| if err != nil { |
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "errors" | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "path/filepath" |
| // Sycnhronous python-like sleep function | |
| const sleep = (ms) => { | |
| const start = new Date().getTime(); | |
| const expire = start + ms; | |
| while (new Date().getTime() < expire) { | |
| // spinning... | |
| } | |
| }; | |
| // Asynchronous sleep |