Skip to content

Instantly share code, notes, and snippets.

View alexted's full-sized avatar
🐉

Alex Ted alexted

🐉
View GitHub Profile
class Qwer():
def __init__(self, info='12345'):
self.info = info
def method(self):
print(self.info)
def fun(meth):
return meth()
@alexted
alexted / test_data
Created September 2, 2019 11:13
test_data
{
'channelId': '52',
'clInfo': {
'bankDetails': {
'bankAccountNum': '40702810100000002519',
'bankID': '041012765',
'bankName': 'Сбербанк'
},
'billingId': 402.0,
'clAcceptId': 1.0,
@alexted
alexted / user.service.ts
Created August 21, 2019 08:06
Angular auth module
import {Injectable} from '@angular/core';
import {HttpClient, HttpHeaders} from '@angular/common/http';
@Injectable()
export class UserService {
private httpOptions: any;
// текущий JWT токен
public token: string;
@alexted
alexted / 01_postfix_installer.md
Created December 21, 2018 22:32 — forked from MarcelFox/01_postfix_installer.md
Postfix + Dovecot + Postgresql + Postfixadmin + Roundcube + Opendkim

Postfix Installer

Following script may be used for configuring complete and secure email server on fresh install of Debian 9. It will probably work on other distributions using apt-get. After minor changes you'll be able to use it on other Linux distros.

What it does?

02_postfix.sh:

  • Install Postfix and configure it with TLS support.
  • Install Dovecot and configure it's transport on Postfix.
  • Download, extract and correct permissions for Postfixadmin.
  • Download, extract and correct permissions for Roundcube.