- Install package
$ yum install wget httpd php glibc glibc-common gd gd-devel
make net-snmp unzip openssl-devel gcc- Add user
$ useradd nagios -p nagios| @ECHO off | |
| SET APP_NAME=app | |
| REM Get Home Directory | |
| SET APP_PATH=%~dp0 | |
| SET APP_HOME=%APP_PATH:~0,-5% | |
| REM Project Information |
| """ | |
| Author: Jonathan Cardasis | |
| """ | |
| import socket | |
| import signal # Allow socket destruction on Ctrl+C | |
| import sys | |
| import time | |
| import threading |
| subcmd = parser.add_subparsers(description='command description', | |
| title='command title', | |
| help='command help', | |
| dest='cmd', | |
| metavar='command metavar', | |
| prog='command prog') | |
| subcmd.add_parser('cmd1', help='cmd1 help') |
| #!/bin/bash | |
| usage() { | |
| echo "Usage:" | |
| echo " $(basename "$0") -u <username> -p <password> -a <api>" | |
| exit | |
| } | |
| if [ "$#" -ne 6 ]; then | |
| usage |
| " ==================== VIM PLUG ================== | |
| call plug#begin() | |
| " autocompletion (also a linter - diagnostics) | |
| " Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer' } | |
| " airline (powerline) | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'vim-airline/vim-airline-themes' |
open-wsl.exetools/1-add-open-wsl-terminal-here-menu.jswsl-terminal -> 選項 -> 文字 -> 字型| cat /proc/self/mountinfo | grep /home/repo | awk '{print $4 " ==> " $5}' | |
| # output to markdown format | |
| echo -e "|source|dest|\n|----|----|" > out.md | |
| cat /proc/self/mountinfo | grep /home/repo | awk '{printf "|%s|%s|\n", $4, $5}' >> out.md |
| find . -regex '^.*\(__pycache__\|\.py[co]\)$' -delete |
| class HTTPRequestError(Exception): | |
| pass | |
| class HTTPClientError(Exception): | |
| pass | |
| class HTTPServerError(Exception): | |
| pass |