В nginx.conf:
proxy_cache_path /var/cache/nginx keys_zone=cache_pages:16m max_size=10g;
Создать /etc/nginx/snippets/proxy_cache_force.conf:
#!/bin/bash | |
# install: | |
# 1. save it to /usr/local/bin/gptb | |
# 2. make it executable: chmod +x /usr/local/bin/gptb | |
# 3. add environment OPENAI_API_KEY=sk-... | |
# | |
# usage: POSTFIX="on ubuntu" gptb what you need for from bash | |
set -eu | |
PREFIX="${PREFIX:-how to}" |
Все поля, которые определяют тематику материала, теперь стали тегами. Теги при этом разделились на несколько типов.
Общий принцип разметки тегами: ставим в отдельные поля всё, для чего есть поля: рубрики, сюжеты, персоны, колумнисты, регионы, форматы.
Все поля тегов стали необязательными и с мультивыбором.
// ==UserScript== | |
// @name Planfix task list | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Send task list from planner to remote server | |
// @author popstas | |
// @match https://popstas.planfix.ru/?action=planner | |
// @match https://popstas.planfix.ru/planner/6138 | |
// @match https://popstas.planfix.ru/planner | |
// @match https://popstas.planfix.ru/* |
// ==UserScript== | |
// @name Yandex Metrika Screenshot | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Screenshot mode | |
// @author popstas | |
// @match https://metrika.yandex.ru/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
LeftX := 0 | |
LeftY := 0 | |
RightX := 2560 | |
RightY := -920 | |
ResetWindowSize() { | |
WinGet activeWin, ID, A | |
posX := 0 |
/* | |
стиль используется для личного ПФ | |
раскрашен нормально только планировщик | |
https://gist.github.com/popstas/6de4dee93916da01d92d188127c57911 | |
*/ | |
:root { | |
--bg: #121212; | |
--bg-hover:#333; | |
--card-bg: #1E1E1E; |
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
<?php | |
$filename = 'planfix-tasks.json'; | |
if($_POST['tasks']) { | |
file_put_contents($filename, $_POST['tasks']); | |
return; | |
} | |
$lists = json_decode(file_get_contents($filename)); | |
foreach($lists as $listName => $data) { |
'''Trains a simple deep NN on the MNIST dataset. | |
Gets to 98.40% test accuracy after 20 epochs | |
(there is *a lot* of margin for parameter tuning). | |
2 seconds per epoch on a K520 GPU. | |
''' | |
from __future__ import print_function | |
import os | |
# os.environ['CUDA_VISIBLE_DEVICES']='-1' |