Skip to content

Instantly share code, notes, and snippets.

@Paramon
Paramon / main.dart
Created April 20, 2024 09:44
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@Paramon
Paramon / Python3.10_centos7.md
Last active July 28, 2022 19:37
Python 3.10.5 on Centos 7

wget --no-check-certificate https://www.openssl.org/source/openssl-1.1.1m.tar.gz tar xvzf openssl-1.1.1m.tar.gz cd openssl-1.1.1m/ mkdir /opt/openssl ./config --prefix=/opt/openssl --openssldir=/opt/openssl shared zlib make make install tar xvzf Python-3.10.5.tgz cd Python-3.10.5/ nano Modules/Setup

#!/usr/bin/env python3.10
"""Хелпер для создания React компонентов.
Спрашивает, создаём компонент в components или pages,
затем спрашивает, какой элемент создаём.
Если для pages элемент указываем MyComponent, создаст:
pages/MyComponent/MyComponent.tsx
pages/MyComponent/MyComponent.module.css
pages/MyComponent/index.ts (опционально)
Если указать MyComponent/Element, создаст:
pages/MyComponent/Element.tsx
#!/usr/bin/env python
### depends on https://github.com/xolox/python-rotate-backups -- check this url for understanding rotating parameters
import argparse
import os
import subprocess
import shutil
import zipfile
import datetime
import tempfile

Keybase proof

I hereby claim:

  • I am paramon on github.
  • I am paramon (https://keybase.io/paramon) on keybase.
  • I have a public key ASB7ap7Q3GzXCXfKI9u-pXlI37UPmXDZ8UrS6npITP8sHAo

To claim this, I am signing this object:

@Paramon
Paramon / docker-compose.yml
Created April 16, 2019 08:22
docker-compose file parse-sever + parse-dashboard + mongo
version: '3'
services:
mongo:
image: mongo
ports:
- 27017:27017
volumes:
- ./data-db:/data/db
@Paramon
Paramon / osx
Last active June 26, 2017 14:50 — forked from ivoputzer/osx
vysheng/tg telegram-cli install osx
git clone --recursive https://github.com/vysheng/tg.git && cd tg
brew install libconfig readline lua python libevent jansson openssl
brew link --force readline
export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.3.8/include -I/usr/local/opt/openssl/include"
export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.3.8/lib -L/usr/local/opt/openssl/lib"
./configure --disable-liblua && make