This file contains 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
Создать monorepo (1) в котором будет два отдельных приложения server (2) и client (3). | |
## 1. Требования по monorepo | |
### Технологии: | |
- TypeScript | |
- Eslint | |
- любой пакетный менеджер, который поддерживает монорепо | |
### Команды в корневом package.json: |
This file contains 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
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ | |
/* | |
* main.c | |
* Copyright (C) 2014 Vassiliy K <hedgeven@linux.com> | |
* | |
* | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> |
This file contains 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 python | |
import sys | |
import os | |
import telegram | |
from flask import Flask, request | |
TOKEN = 'XXXXXXXXXXXXXXXXXX' | |
HOST = 'bot.domain.tld' | |
CERT = '/path/to/cert.pem' |
This file contains 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 python3 | |
"""Generate aggregated network list from given file""" | |
import sys | |
from netaddr import IPSet, IPNetwork | |
def main(argv): | |
ipset = IPSet() | |
try: |
This file contains 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 python3.3 | |
# | |
# hedgeven@linux.com, 2014 | |
# | |
# Distributed under the MIT License. | |
# (See accompanying file LICENSE or copy at | |
# http://opensource.org/licenses/MIT) | |
# | |
# | |
# Script for downloading Aerostat podcasts (and maybe other podcasts) |
This file contains 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 python2 | |
import sys, os, shutil | |
import getopt | |
import urllib2 | |
import base64 | |
import socket | |
from urlparse import urlparse |
This file contains 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 python3.3 | |
# -*- coding: utf8 -*- | |
import requests | |
import re | |
import sys | |
from bs4 import BeautifulSoup | |
params = { | |
'TO_STATION_LIST': '901', |
This file contains 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
#!/bin/bash | |
[[ ! -z $1 ]] && [[ -d $1 ]] && input_dir=$1 || input_dir=`pwd` | |
file_mask="*.JPG" | |
font_name="DejaVu-Sans-Book" # see all available variants: convert -list font|grep Font | |
output_dir="output" | |
color=white | |
font_size=32 | |
cd ${input_dir} |
This file contains 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
#!/bin/bash | |
# | |
# This script performs NOD virus database updates for clients listed in the file $clients | |
# | |
# Format $clients: | |
# -==== router_ip ====- | |
# client_ip | |
# client_ip | |
# client_ip | |
# -==== router_ip ====- |
This file contains 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 | |
function rrmdir($dir, $t) { | |
if (is_dir($dir)) { | |
$objects = scandir($dir); | |
foreach ($objects as $object) { | |
if ($object != "." && $object != "..") { | |
if (filetype($dir."/".$object) == "dir") { | |
rrmdir($dir."/".$object, $t); | |
} else { |
NewerOlder