Skip to content

Instantly share code, notes, and snippets.

View skar404's full-sized avatar

Denis Malin skar404

View GitHub Profile
@olegborzov
olegborzov / marshmallow_to_openapi.py
Created February 22, 2021 17:59
Marshmallow to Sanic-Openapi converter
from typing import List
from marshmallow import fields, Schema
from sanic_openapi import doc
MAP_MARSHMALLOW_IN_OPEN_API = {
fields.DateTime: doc.DateTime,
fields.Date: doc.Date,
fields.Integer: doc.Integer,
@nmix
nmix / docker-remote-config.md
Last active August 22, 2023 18:45
Управление докером на удаленной машине
@bhmj
bhmj / README.md
Last active January 2, 2024 21:27
Тестовое задание по Golang + Postgresql

Задание (Golang + PostgreSQL)

Написать сервис, который будет слушать входящие запросы по HTTP, преобразовывать их в запрос к соответствующей функции Postgres, выполнять запрос и возвращать ответ клиенту.

Дописать функции Postgres для сервиса.

/Скиллы: Golang, Postgres, regexp, строки, работа с json в Golang и Postgres/

1. Web-сервис

@musukvl
musukvl / medusa.html
Created August 2, 2017 19:33
medusa.io RSS feeds
<link rel="alternate" type="application/rss+xml" title="Meduza — Все" href="https://meduza.io/rss/all">
<link rel="alternate" type="application/rss+xml" title="Meduza — Новости" href="https://meduza.io/rss/news">
<link rel="alternate" type="application/rss+xml" title="Meduza — Шапито" href="https://meduza.io/rss/fun">
@erichrobinson
erichrobinson / README.md
Last active February 24, 2024 08:32
SwitchResX Configuration

#SwitchResX Settings for LG 21:9 UltraWide

SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist http://www.madrau.com/ .

##Disabling System Integrity Protection (SIP)

If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:

  • Boot into the recovery partition by pressing CMD + R when starting up your Mac.
  • Once in recovery mode, open a terminal window.
  • Type the command csrutil disable
@zeroseis
zeroseis / disable-auto-android-file-transfer.md
Created September 14, 2015 17:28
Disable auto start for Android File Transfer
  • Close Android File Transfer
  • Open Activity Monitor and kill “Android File Transfer Agent”
  • Go to where you installed “Android File Transfer.app” (I have it under /Applications)
  • Ctrl+click –> “Show package contents”
  • Go to Contents/Resources
  • Rename “Android File Transfer Agent” to e.g. “Android File Transfer Agent_DISABLED”
  • Then go to “/Users/username/Library/Application Support/Google/Android File Transfer” and again rename the Agent app.
@drmalex07
drmalex07 / helloworld-win32-service.py
Created April 12, 2014 20:08
An example Windows service implemented with pywin32 wrappers. #python #windows-service #pywin32
import win32serviceutil
import win32service
import win32event
import servicemanager
import socket
import time
import logging
logging.basicConfig(
filename = 'c:\\Temp\\hello-service.log',
@fnando
fnando / dev.conf
Created July 23, 2011 09:00
Nginx configuration for SSH tunnel
upstream tunnel {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name dev.codeplane.com br.dev.codeplane.com;
location / {
proxy_set_header X-Real-IP $remote_addr;