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
""" | |
Download the model | |
------------------------------------- | |
https://huggingface.co/afrideva/Tiny-Vicuna-1B-GGUF | |
Hugging Face repo: afrideva/Tiny-Vicuna-1B-GGUF | |
Tiny Vicuna 1B | |
This model is a fine-tuned version of TinyLlama on WizardVicuna Dataset. | |
It should be fully compatible with Vicuna-v1.5 series. | |
This model is easy to iterate on for early experiments! |
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
diff --git a/configure b/configure | |
index 6a7a85c..5810ab5 100755 | |
--- a/configure | |
+++ b/configure | |
@@ -340,6 +340,7 @@ External library support: | |
--disable-vaapi disable Video Acceleration API (mainly Unix/Intel) code [autodetect] | |
--disable-vdpau disable Nvidia Video Decode and Presentation API for Unix code [autodetect] | |
--disable-videotoolbox disable VideoToolbox code [autodetect] | |
+ --enable-nvmpi enable nvmpi code | |
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
-- | |
- hosts: All | |
gather_facts: no | |
tasks: | |
- name: "check" | |
shell: hostname | |
- name: Docker-container | |
hosts: localhost |
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
# USAGE | |
# python detect_and_remove.py --dataset dataset | |
# python detect_and_remove.py --dataset dataset --remove 1 | |
# import the necessary packages | |
from imutils import paths | |
import numpy as np | |
import argparse | |
import cv2 | |
import os |
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 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
#!/usr/bin/env bash | |
# Usage: | |
# timeout 10 docker_iptables.sh | |
# | |
# Use the builtin shell timeout utility to prevent infinite loop (see below) | |
if [ ! -x /usr/bin/docker ]; then | |
exit | |
fi |
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
server { | |
listen 8080; | |
root /home/ubuntu/sigatchov/php; | |
index orel-codes.php index.html index.htm index.nginx-debian.html; | |
# server_name example.com; | |
location / { | |
} | |
location ~ \.php$ { |
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
user www-data; | |
pid /run/nginx.pid; | |
worker_processes 2; | |
worker_rlimit_nofile 65535; | |
#include /etc/nginx/modules-enabled/*.conf; | |
events { | |
worker_connections 8192; |
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
<?php | |
$data = json_decode(file_get_contents('php://input'), true); | |
$data['first_name'] .= " " . md5($data['first_name']); | |
$data['last_name'] .= " " . md5($data['last_name']); | |
$data['say'] = 'PHP is Good'; | |
$data['current_time'] = date("Y-m-d H:m:s z"); | |
echo json_encode($data, JSON_UNESCAPED_UNICODE); |
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
version: '2' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
restart: unless-stopped | |
volumes: | |
- "/etc/nginx/vhost.d" |
NewerOlder