Skip to content

Instantly share code, notes, and snippets.

View atnartur's full-sized avatar

Artur atnartur

View GitHub Profile
@atnartur
atnartur / yandex_cloud_deploy.tf
Last active September 2, 2022 15:53
Deploy Django+Celery app to Yandex Cloud with Terraform https://atnartur.ru/posts/2022/celery-in-yandex-cloud/
variable "yc_token" {
type = string
nullable = false
}
variable "service_account_id" {
type = string
nullable = false
}
@atnartur
atnartur / README.md
Last active December 19, 2020 06:32
Git group repo helper

Helper for git for executing commands in multiple repositories

Initialization

  1. Create a directory for repositories
  2. Create repos.txt with list of repositories links
  3. Locate the git_helper.py in the directory

Commands

@atnartur
atnartur / README.md
Last active December 1, 2020 15:51
Генератор списка источников для Google Docs

Генератор списка источников для Google Docs

Скрипт генерирует список источников в виде отдельного списка, который вставляется в конце документа. Работает с помощью комментариев Google Docs.

Установка

  1. Открыть документ в Google Docs
  2. В верхнем меню нажать Инструменты / Редактор скриптов
  3. Вставить содержимое файла app_script.gs
@atnartur
atnartur / method.mustache
Last active January 21, 2018 09:36
Template for swagger-js-codegen with separated arguments in functions
/**
* {{&summary}}
* @method
* @name {{&className}}#{{&methodName}}
{{#parameters}}
{{^isSingleton}} * @param {{=<% %>=}}{<%&type%>}<%={{ }}=%> {{&camelCaseName}} - {{&description}}{{/isSingleton}}
{{/parameters}}
*/
{{&className}}.prototype.{{&methodName}} = function({{#parameters.length}}{{#parameters}} {{&camelCaseName}}{{^isLast}}, {{/isLast}}{{/parameters}}{{/parameters.length}}){
{{#isES6}}let{{/isES6}}{{^isES6}}var{{/isES6}} parameters = {};
@atnartur
atnartur / Package Control.sublime-settings
Created July 18, 2016 09:55
Sublime text Package control config
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"All Autocomplete",
"apiDoc Autocompletion",
"Babel",
<?php
// Variables used in this script:
// $summary - text title of the event
// $datestart - the starting date (in seconds since unix epoch)
// $dateend - the ending date (in seconds since unix epoch)
// $address - the event's address
// $uri - the URL of the event (add http://)
// $description - text description of the event
// $filename - the name of this file for saving (e.g. my-event-name.ics)
//
@atnartur
atnartur / gist:f065cc2befaacabb2cd7
Created August 5, 2014 19:14
NGINX wordpress config
server {
root /example.com/www;
index index.php index.html index.htm;
server_name example.com;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$args;