issue about fish shell support
PYENV_ROOT is set to /opt/pyenv
git clone https://github.com/pyenv/pyenv.git /opt/pyenv- put settings below in correspond
~/.config/fish/configs:
| { | |
| "yapf_command": "C:\\www\\env\\Scripts\\yapf.exe", | |
| "on_save": false, | |
| "use_entire_file_if_no_selection": true, | |
| "popup_errors": false, | |
| "config": { | |
| // The column limit. | |
| "COLUMN_LIMIT": 120, | |
| // The number of columns to use for indentation. | |
| "INDENT_WIDTH": 4, |
| # -*- coding: utf-8 -*- | |
| from flask import Flask, render_template_string, request, Response, session, redirect | |
| import logging, os, sys, time | |
| import random | |
| app = Flask(__name__) | |
| app.config["SECRET_KEY"] = "SECRETKEYSECRETKEYSECRETKEYSECRETKEYSECRETKEY" | |
| app.config["DEBUG"] = os.environ.get("FLASK_DEBUG", True) | |
| app.config["JSON_AS_ASCII"] = False |
| <!DOCTYPE html> | |
| <html lang="en" xmlns="http://www.w3.org/1999/xhtml" dir="ltr" class="uk-height-1-1"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>flasktest</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" /> | |
| <script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| </head> |
issue about fish shell support
PYENV_ROOT is set to /opt/pyenv
git clone https://github.com/pyenv/pyenv.git /opt/pyenv~/.config/fish/ configs:QTDesigner на винде лежит в Scripts\designer.exe
| #-*- coding: utf-8 -*- . | |
| import subprocess, os, sys, json | |
| MY_PROCESS = "chrome" | |
| print("MY_PROCESS: %s" % MY_PROCESS) | |
| p = subprocess.Popen([ | |
| "C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe", | |
| "-ExecutionPolicy", "Bypass", | |
| "-NoLogo", |
Для работы нужен percol - https://github.com/mooz/percol
| function editrc () { | |
| if [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]] || [[ "$1" == "help" ]]; then | |
| cat <<EOF | |
| Usage: editrc [--help|-h|help] [ID] | |
| [ID] - first column in output (index number) | |
| It may be executed without arguments and select the file with interactive prompt. | |
| EOF | |
| return |
| [Unit] | |
| Description=SSHFS share with logs | |
| Requires=network-online.target | |
| [Automount] | |
| Where=/mnt/mail/var | |
| TimeoutIdleSec=301 | |
| [Install] | |
| WantedBy=graphical.target |
| #!/bin/bash | |
| if [[ -z $1 ]]; then | |
| pool_name="www" | |
| elif [[ "$1" == "--help" ]] || [[ "$1" == "-h" ]] || [[ "$1" == "help" ]]; then | |
| echo "Usage: $(basename $0) [FPM_POOL_NAME]" | |
| exit 1 | |
| elif [[ "$1" == "--list" ]] || [[ "$1" == "-l" ]] || [[ "$1" == "list" ]]; then | |
| for p in $(grep -h "^\[" /etc/php/7.1/fpm/pool.d/*.conf | tr -d '[|]'); do | |
| echo " ${p}" |