- WEB (default):
- ANDROID: https://api.eitb.eus/android_nahieran/
- IOS: https://api.eitb.eus/ios_nahieran/
- MAM REST: https://mam.eitb.eus/mam/REST/ServiceMultiweb/
- BILATZAILEA: https://bilatzailea.eitb.eus/bilatzailea/
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
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
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 | |
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 |
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
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: |
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
library(shiny) | |
# Just to use msleep dataset | |
library(ggplot2) | |
# Remove NAs | |
msleep = msleep[complete.cases(msleep), ] | |
ui <- fluidPage( | |
sidebarLayout( |
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 | |
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` |
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
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
NewerOlder