Skip to content

Instantly share code, notes, and snippets.

View vertigra's full-sized avatar
😬
I may be slow to respond.

Alexey Nesterov vertigra

😬
I may be slow to respond.
View GitHub Profile
@rstackhouse
rstackhouse / Program.cs
Last active January 26, 2022 14:54
Console app to generate a gateway to a service using NSwag and a swagger document.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NSwag;
using NSwag.CodeGeneration.CSharp;
namespace GatewayGenerator
{
class Program
@vertigra
vertigra / check_temp_smartmoontools.md
Last active April 3, 2017 15:00
Прооверить температуру hdd с помощью smartmoontols

Прооверить температуру hdd с помощью smartmoontols

# smartctl -d ata -a /dev/sdb | grep 194 && smartctl -d ata -a /dev/sda | grep 194
@vertigra
vertigra / update_grub.md
Last active March 1, 2017 03:50
Установка загрузчика grub после копирования системного разделов.

Восстановление загрузчика grub после копирования системного раздела.

После копирования разделов с помощью gparted необходимо установить загрузчик. Делается это из консоли gparted так:

# sudo mount /dev/sda1 /mnt
# sudo grub-install --root-directory=/mnt /dev/sda

где:

@vertigra
vertigra / howto-upgrade-debian-jessie-kernel.md
Last active February 14, 2017 23:38 — forked from minazou67/howto-upgrade-debian-jessie-kernel.md
How to upgrade the Linux Kernel of debian 8 jessie

How to upgrade the Linux Kernel of debian 8 jessie

Debian 8

Environment

  • Microsoft Windows Server 2012 R2
  • Hyper-V
  • Debian 8.2 jessie
@vertigra
vertigra / logrotate.md
Last active February 7, 2017 12:26
Ротация логов TeamCity с помощью logrotate Debian

Ротация логов TeamCity с помощью logrotate Debian

# joe /etc/logrotate.conf

Добавляем:

# system-specific logs may be configured here
@vertigra
vertigra / installbtsynk.md
Last active April 12, 2017 12:29
BitTorrent Sync на Debian

Установка Resilio Sync (BitTorrent Sync) на Debian

# echo "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" > /etc/apt/sources.list.d/resilio-sync.list
# wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | apt-key add -
# dpkg --add-architecture armhf
# apt-get update
# apt-get install resilio-sync
# # systemctl enable resilio-sync
![Иллюстрация к проекту](https://github.com/jon/coolproject/raw/master/image/image.png)
![Image alt](https://github.com/{username}/{repository}/raw/{branch}/{path}/image.png)
{username} — ваш ник на ГитХабе;
{repository} — репозиторий где хранятся картинки;
{branch} — ветка репозитория;
{path} — путь к месту нахождения картинки.
@racerxdl
racerxdl / huebot.js
Last active July 16, 2021 13:28
Telegram <=> Slack Bot
#!/usr/bin/env node
// npm install slackbots node-telegram-bot-api
var TelegramBot = require('node-telegram-bot-api');
var SlackBot = require('slackbots');
// create a bot
var sBot = new SlackBot({
token: 'your-slack-bot-token', // Add a bot https://my.slack.com/services/new/bot and put the token
@PurpleBooth
PurpleBooth / README-Template.md
Last active June 21, 2024 17:56
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@thuandt
thuandt / XenServer-software-RAID1.md
Last active June 4, 2017 08:26
Instructions for switching to RAID 1 for XenServer 6.2 with GPT

Instructions for switching to RAID 1 for XenServer 6.2 with GPT

  • Create new partition for Local Storage
# gdisk /dev/sda
  • Check /dev/sda partition table