Skip to content

Instantly share code, notes, and snippets.

Создать monorepo (1) в котором будет два отдельных приложения server (2) и client (3).
## 1. Требования по monorepo
### Технологии:
- TypeScript
- Eslint
- любой пакетный менеджер, который поддерживает монорепо
### Команды в корневом package.json:
#!/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'
#!/usr/bin/env python3
"""Generate aggregated network list from given file"""
import sys
from netaddr import IPSet, IPNetwork
def main(argv):
ipset = IPSet()
try:
@hedgeven
hedgeven / clean_cache.php
Last active October 26, 2015 07:42
PHP script for recursive cleaning old files
<?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 {
/* -*- 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>
#!/usr/bin/env python2
import re
import os
import sys
import time
import syslog
from socket import socket
WORK_DIR = '/var/cache/zabbix/mka2/'
@hedgeven
hedgeven / xmlparser.py
Last active August 29, 2015 14:01
simple xmlparser
#!/usr/bin/env python3
from urllib.request import urlopen
import xml.etree.ElementTree as ET
import os
import sys
import re
def help():
print("Usage: "+ __file__+ " TARGET..."+
"\nSimple script for parsing local and remote xml files")
#!/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)
#!/usr/bin/env python2
import sys, os, shutil
import getopt
import urllib2
import base64
import socket
from urlparse import urlparse
#!/usr/bin/env python3.3
# -*- coding: utf8 -*-
import requests
import re
import sys
from bs4 import BeautifulSoup
params = {
'TO_STATION_LIST': '901',