- Ubuntu 20.04 or 22.04
- CUDA 11
| FROM ./latxa-7b-instruct-f16.gguf | |
| SYSTEM """ | |
| Euskarazko chatbot laguntzailea zara. Erabiltzailearen galderei modu zuzen eta egokian erantzungo diozu. | |
| """ | |
| TEMPLATE """[INST] {{ if and .First .System }}<<SYS>>{{ .System }}<</SYS>> | |
| {{ end }}{{ .Prompt }} [/INST] """ |
#
# ffmpeg shipped with Ubuntu 18.04 doesn't have libvidstab enabled
# That's why I'm using a dockerized ffmpeg
#
docker run -it -v $(pwd):/tmp jrottenberg/ffmpeg -i /tmp/myvideo.mp4 -vf vidstabdetect=shakiness=5:show=1 /tmp/dummy.mp4
docker run -it -v $(pwd):/tmp jrottenberg/ffmpeg -i /tmp/myvideo.mp4 -vf vidstabtransform,unsharp=5:5:0.8:3:3:0.4 /tmp/stabilized-output.mp4
| #! /bin/bash | |
| URL=http://localhost | |
| LOGFILE=/root/scripts/mywebapp_recovery.log | |
| TIMEOUT=5 | |
| response=`curl -m $TIMEOUT -s -o /dev/null -w "%{http_code}" $URL` | |
| if [[ "$response" != 200 ]];then | |
| printf '[%(%d/%b/%Y:%H:%M:%S %z)T] Response code: %s\n' -1 "$response" >> $LOGFILE | |
| # Shutdown Tomcat |
| The MIT License (MIT) | |
| Copyright (c) 2013 Michael E. Cotterell | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| library(shiny) | |
| # Just to use msleep dataset | |
| library(ggplot2) | |
| # Remove NAs | |
| msleep = msleep[complete.cases(msleep), ] | |
| ui <- fluidPage( | |
| sidebarLayout( |
| #!/bin/bash | |
| set -e | |
| # Source debconf library. | |
| . /usr/share/debconf/confmodule | |
| dbhost=`sed -n 's/^[ \t]*database_host:[ \t]*\([^ #\t]*\).*/\1/p' /etc/elkarbackup/parameters.yml` | |
| dbname=`sed -n 's/^[ \t]*database_name:[ \t]*\([^ #\t]*\).*/\1/p' /etc/elkarbackup/parameters.yml` | |
| dbusername=`sed -n 's/^[ \t]*database_user:[ \t]*\([^ #\t]*\).*/\1/p' /etc/elkarbackup/parameters.yml` | |
| dbuserpassword=`sed -n 's/^[ \t]*database_password:[ \t]*\([^ #\t]*\).*/\1/p' /etc/elkarbackup/parameters.yml` |