This file contains hidden or 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
<td v-for="key in columns"> | |
<div v-if="key === 'id'"> | |
it-{{entry[key]}} | |
</div> | |
<div v-else="key === 'id"> | |
{{entry[key]}} | |
</div> | |
</td> |
This file contains hidden or 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
// this is the UDF - note the data type - should be a Java reflection compatible one !!! | |
val getUID = udf { (col1: String) => | |
{ | |
musa_wkt_eutrancellid match { | |
case null => UUID.randomUUID().toString | |
case _ => { | |
try { | |
broadCastedMap.value.get(col1).get.toString // obs return the same datatype as | |
} catch { | |
case e: java.util.NoSuchElementException => { |
This file contains hidden or 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
# file:linux-cheat-sheet.sh v.1.9.5 docs at the end | |
# dns troubleshooting | |
dig host-dns.name | |
# how-many Answers !? | |
host host-dns.name | |
nslookup | |
# type g=max |
This file contains hidden or 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
export pdf_file='/path/to/pdf/file/dir/must/exist/some-file.pdf' | |
export url='http://some-host.com/note/use/single/qotes/because/of/?the-ampersand=value&is-problematic=yes' | |
# on mac it could be | |
lias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" | |
# on linux it might be | |
alias chrome=/usr/bin/chromium-browser | |
# action !!! | |
chrome --headless --disable-gpu --window-size=1200,900 --no-proxy-server --print-to-pdf=$pdf_file $url |
This file contains hidden or 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
# file: ~/.npm_opts.company | |
export http_proxy=http://100.114.1.1:9090 | |
export https_proxy=https://100.114.1.1:9090 | |
npm config set registry http://registry.npmjs.org/ | |
npm config set proxy $http_proxy | |
npm config set https-proxy $https_proxy | |
npm config set strict-ssl false | |
set HTTPS_PROXY=$https_proxy | |
set HTTP_PROXY=$http_proxy |
This file contains hidden or 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
df.write | |
.mode("overwrite") | |
.format("parquet") | |
.option("path", uri) | |
.saveAsTable(table) |
This file contains hidden or 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
curl -s -X GET \ | |
--header "Private-Token: $gitlab_private_token" \ | |
"$gitlab_url""$gitlab_proj_id" | jq . | |
echo get the pipelines | |
curl -s -X GET --header "Private-Token: $gitlab_private_token" \ | |
"$gitlab_url""$gitlab_proj_id"/pipelines | jq . | |
echo get a job by id | |
job_id=1157220 |
This file contains hidden or 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
# configure your aws credentials | |
# file: ~.aws/credentials | |
[aws-profile-1] | |
endpoint-url=objectstorage.company.net:813 | |
aws_access_key_id=AKIAA5QDLQ5sdfsdGMEQZMX | |
aws_secret_access_key=jveF4QVjUsdj6CzVouCPnm1lQyHqYV28F7EH7Tv | |
# bucket name: some-bucket name | |
[aws-profile-2] |
This file contains hidden or 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
graph { | |
node[style=filled,color=cornflowerblue,fontcolor=white, fontsize=14]; | |
edge[color=maroon,dir="both",arrowsize=.6]; | |
requirements -- features; | |
requirements -- problems; | |
requirements -- userstories ; | |
userstories -- features; | |
userstories -- problems; |
This file contains hidden or 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
# how-to list all the local and remote branches and filter by to_srch string | |
git branch -a | grep -i $to_srch | |
# how-to branch from the current branch ( aka copy ) | |
git branch copy_of_the_current_branch | |
# how-to check the differences between 2 branches | |
git diff src_branch..tgt_branch | |