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 | |
# save this file in ~/.local/bin/civit, make it executable | |
# usage: civit <URN> [path} | |
# | |
# Author: Patrice Ferlet <[email protected]> | |
# License: BSDv3 | |
# | |
# Please ensure you've installed "jq" command and "curl" | |
# The URN can be easily copied from the model page, on the right, the "AIR" | |
# This script will download in the provided direcoty (default to the current directory) |
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
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
openai = "*" | |
rich = "*" | |
[dev-packages] |
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
package main | |
import ( | |
"bytes" | |
"context" | |
"image" | |
"log" | |
"sync" | |
_ "image/jpeg" |
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
Data confidentiality | |
This application does not store any personal data and consequently does not transmit any data to a third party. |
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
# Get the current clean version from your git repo | |
# - -tagname if the current commit is tagged and no changes were detected | |
# - branchname-sha if not | |
# - branchname-sha-dirty if changes were detected and not commited | |
# Use $(VERSION) to get it, wherever you want in your commands | |
VERSION=$(shell \ | |
git describe --exact-match --tags --dirty 2>/dev/null || \ | |
printf "%s-%s%s" \ | |
$(shell git branch --show-current) \ | |
$(shell git log -n1 --pretty=%h) \ |
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 | |
# Check helm, kubectl and kind | |
NEEDED="" | |
for cmd in helm kubectl kind pkexec; do | |
if ! command -v $cmd >/dev/null 2>&1; then | |
NEEDED="$NEEDED $cmd" | |
fi | |
done | |
if [ -n "$NEEDED" ]; then |
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
package blur | |
import ( | |
"image" | |
"image/color" | |
"image/png" | |
_ "image/png" | |
"math" | |
) |
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
""" Create dataset """ | |
import os | |
import uuid | |
import cv2 as cv | |
DATA_DIR = "data" | |
DIRECTIONS = ["up", "down", "right", "left", "neutral"] | |
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
lines=$(tput lines) | |
cols=$(tput cols) | |
awkscript=' | |
{ | |
lines=$1 | |
random_col=$3 | |
letter=$4 | |
letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()" | |
letter=substr(letters,letter,1) |
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
# Configuration | |
count=4 | |
clustername=mycluster | |
admin=admin | |
password=password | |
networkname=couchbase | |
volumename=couchbase | |
# inside the pods, do not change it |
NewerOlder