Let's say you only have a terminal or a SSH access and want to perform multiple attached commands at the same time. E.g: wget
.
screen
#First install the webp converter by this | |
sudo apt-get install webp | |
#go inside the directory where all images are there | |
#make sure all images are in RGB color mode, otherwise you will get error for CMYK images. | |
#Convert all images to RGB by this command (you should install ImageMagik to do that) | |
for f in *.jpg; do convert -colorspace RGB "$f" "${f}"; done | |
#finally convert all images to Webp format | |
for f in *.jpg; do cwebp -q 90 "$f" -o "${f%%.*}".webp; done |
#!/bin/bash | |
# Dynamically retrieves and add IPs from a list of domain names | |
# Creates a cache folder with IP as filenames to know if they have been added previously | |
# Manages both IPv4 and IPv6 rules. | |
MAIN_INTERFACE=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1) | |
THIS_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)" | |
CACHE_DIR="$THIS_DIR/.ips" | |
function is_ipv4() |
- name: Set datetime and timezone | |
hosts: prod-fr-zone-c-server-18 | |
tasks: | |
- name: Set timezone | |
copy: content='Europe/Paris' | |
dest=/etc/timezone | |
- name: Set datetime | |
shell: date --set "25 Sep 2013 15:00:00" |
#!/bin/bash | |
kubectl apply -f - <<EOF | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: keycloak | |
--- | |
apiVersion: cert-manager.io/v1 |
# List and delete resources from a resource group using the Azure API (can be used in runbooks then triggered by Monitor > Alerts > Create action groups when budget is exceeded). | |
# It requires an "Application Insights" resource. | |
# Configure the CLIENT_ID (Azure App Registration) to be able to read/delete RESOURCE_GROUP's resources in the IAM of | |
# | |
# Useful link : https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/cost-management-budget-scenario#create-webhooks-for-the-runbook | |
the RESOURCE_GROUP. | |
import requests | |
def extract_type_prefix(input_string): | |
if '/' in input_string: |
Values in bold represent the best value.
Metrics | Google Translate | Azure Translate | Deepl Translate | OpenAI GPT3.5-t | OpenAI GPT4 |
---|---|---|---|---|---|
Duration (s) | 79.12 | 113.00 | 124.43 | 1820.75 | 1278.52 |
BLEU score | 0.65 | 0.69 | 0.68 | 0.77 | 0.72 |
SacreBLEU score | 53.36 | 55.21 | 53.08 | 58.59 | 57.27 |
Price* ($) | 0.96 | 0.48 | 0.96 | 0.04 | 2.17 |
BLEU/price | 0.68 | 1.44 | 0.71 | 19.25 | 0.332 |
Duration/price | 82.42 | 235.42 | 182.98 | 2364.61 | 588.94 |