ネットワーク構築 パソコン設定 サーバ構築 無線LAN構築 名古屋市 豊田市

ホリテック ブログ 最新投稿

prism.jsのsyntaxhighlighterで、書いたらこんな感じ

実際に、prism.jsで書いてみた例です。

これで、前に比べて、conifgや、変更点がわかりやすくなる為、ここで書くことに意欲がわきそうです。

 

これを、社内マニュアルのDokuwikiにも導入しよっと

html

<h3>タイトル</h3>

 

css

@media (min-width: 900px) {
#head-in .head-cover .info .head-tel {
	margin-top: 3%;
        float: right;
	} 
}

shell


[root@localhost ~]# ls -al /etc
合計 1932
drwxr-xr-x. 139 root root            8192  5月 10 08:58 .
dr-xr-xr-x.  17 root root            4096  5月  6 15:11 ..
drwxr-xr-x.   3 root root              25  4月 29  2020 .java
-rw-------.   1 root root               0  7月 12  2018 .pwd.lock
-rw-r--r--    1 root root             163  7月 12  2018 .updated
-rw-r--r--    1 root root            5090 11月 16 23:40 DIR_COLORS
-rw-r--r--    1 root root            5725 11月 16 23:40 DIR_COLORS.256color
-rw-r--r--    1 root root            4669 11月 16 23:40 DIR_COLORS.lightbgcolor
-rw-r--r--.   1 root root              94  3月 25  2017 GREP_COLORS
-rw-r--r--    1 root root            1704  8月 13  2019 GeoIP.conf
drwxr-xr-x.   7 root root            4096  3月 10 15:13 NetworkManager
drwxr-x---.   2 root pegasus           53  3月 10 15:17 Pegasus
drwxr-xr-x.   5 root root              54  4月 11  2018 X11

 

Editorconfig

[Unit]
Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
Documentation=man:httpd(8)
Documentation=man:apachectl(8)

[Service]
Type=notify
EnvironmentFile=/etc/sysconfig/httpd
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
ExecStop=/bin/kill -WINCH ${MAINPID}
# We want systemd to give httpd some time to finish gracefully, but still want
# it to kill httpd after TimeoutStopSec if something went wrong during the
# graceful stop. Normally, Systemd sends SIGTERM signal right after the
# ExecStop, which would kill httpd. We are sending useless SIGCONT here to give
# httpd time to finish.
KillSignal=SIGCONT
PrivateTmp=true

[Install]
WantedBy=multi-user.target

 

Diff (highlightも有効)


--- header.php  2021-05-04 10:24:06.804474257 +0900
+++ header.php_2021_5_2 2021-05-02 14:54:33.266629278 +0900
@@ -162,10 +162,10 @@

 if( $_is_front_page === true ) {
        // フロントページは H1
-?≶<div class="sitename"≶<a href="<?php echo THK_HOME_URL; ?≶" itemprop="url"≶<?php
+?≶<p class="sitename"≶<a href="<?php echo THK_HOME_URL; ?≶" itemprop="url"≶<?php
 }
 else {
-?≶<div class="sitename"≶<a href="<?php echo THK_HOME_URL; ?≶" itemprop="url"≶<?php
+?≶<p class="sitename"≶<a href="<?php echo THK_HOME_URL; ?≶" itemprop="url"≶<?php
 }

 // One point logo Image
@@ -195,11 +195,11 @@
 ?≶</a≶<?php
 if( $_is_front_page === true ) {
        // フロントページは H1 (閉じタグ)
-?≶</div≶
+?≶</p≶
 <?php
 }
 else {
-?≶</div≶
+?≶</p≶
 <?php
 }
 if( isset( $luxe['title_img'] ) ) {
@@ -212,7 +212,6 @@
 ?≶
 <?php $custom = get_post_custom(); ?≶
 <?php if(empty($custom['h1'])){ $custom['h1'][0] = THK_DESCRIPTION; } ?≶
-<div class="head-tel"≶<a href="http://192.168.254.150/wp_hori/inquiry/"≶<img src="http://192.168.254.150/wp_hori/wp-content/uploads/2021/05/inquerry.png"  alt="お 問い合わせ"≶</a≶</div≶
 <h1≶<?php echo $custom['h1'][0]; ?≶</h1≶
 <?php
 }

 

DNS zone file


$TTL      86400
@         IN       SOA     cent77-01.test.local.  root.test.local.(
                                        2020020501 ; Serial
                                        28800      ; Refresh
                                        14400      ; Retry
                                        3600000    ; Expire
                                        86400 )    ; Minimum
            IN NS cent77-01.test.local.
cent77-01   IN A 192.168.142.31
cent77-02   IN A 192.168.142.32

 

Dockerfile


FROM centos:7
RUN yum install -y java
ADD files/apache-tomcat-9.0.6.tar.gz /opt/ 
CMD [ "/opt/apache-tomcat-9.0.6/bin/catalina.sh", "run" ]

 

 

vim


[PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.

; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://php.net/configuration.file

; The syntax of the file is extremely simple.  Whitespace and lines
; beginning with a semicolon are silently ignored (as you probably guessed).
"/etc/php.ini" 1697L, 63332C

 

Makefile


# Makefile.in generated by automake 1.16.1 from Makefile.am.
# Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994-2018 Free Software Foundation, Inc.

# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.



#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#
# NOTE: Parts of this file (Makefile.am) are automatically transcluded verbatim
# into Makefile.in. Though the build system (GNU Autotools) automatically adds
# its own license boilerplate to the generated Makefile.in, that boilerplate
# does not apply to the transcluded portions of Makefile.am which are licensed
# to you by the ASF under the Apache License, Version 2.0, as described above.
#

am__is_gnu_make = { \
  if test -z '$(MAKELEVEL)'; then \
    false; \
  elif test -n '$(MAKE_HOST)'; then \
    true; \
  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
    true; \
  else \
    false; \
  fi; \
}
am__make_running_with_option = \
  case $${target_option-} in \
      ?) ;; \
      *) echo "am__make_running_with_option: internal error: invalid" \
              "target option '$${target_option-}' specified" >&2; \
         exit 1;; \
  esac; \
  has_opt=no; \
  sane_makeflags=$$MAKEFLAGS; \
  if $(am__is_gnu_make); then \
    sane_makeflags=$$MFLAGS; \
  else \
    case $$MAKEFLAGS in \
      *\\[\ \   ]*) \
        bs=\\; \
        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
          | sed "s/$$bs$$bs[$$bs $$bs   ]*//g"`;; \
:

 

nginx


user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
        worker_connections 768;
        # multi_accept on;
}

http {

        ##
        # Basic Settings
        ##

        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;
        server_tokens off;

        # server_names_hash_bucket_size 64;
        # server_name_in_redirect off;

        include /etc/nginx/mime.types;
        default_type application/octet-stream;
        client_max_body_size 128M;

        ##
        # SSL Settings
        ##

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
        ssl_prefer_server_ciphers on;

        ##
        # Logging Settings
        ##

        access_log /var/log/nginx/access.log;
        error_log /var/log/nginx/error.log;

        ##
        # Gzip Settings
        ##

        gzip on;

        # gzip_vary on;
        # gzip_proxied any;
        # gzip_comp_level 6;
        # gzip_buffers 16 8k;
        # gzip_http_version 1.1;
        # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

        ##
        # Virtual Host Configs
        ##

        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
}

 

 

Python


# Copyright (c) 2012 Nicira, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
vswitch module allows its callers to interact with OVS DB.
"""
import util


def ovs_vsctl_add_bridge(bridge):
    """
    This function creates an OVS bridge.
    """
    ret, _out, _err = util.start_process(["ovs-vsctl", "add-br", bridge])
    return ret


def ovs_vsctl_del_bridge(bridge):
    """
    This function deletes the OVS bridge.
    """
    ret, _out, _err = util.start_process(["ovs-vsctl", "del-br", bridge])
    return ret


def ovs_vsctl_del_pbridge(bridge, iface):
    """
    This function deletes the OVS bridge and assigns the bridge IP address
    back to the iface.
    """
    (ip_addr, mask) = util.interface_get_ip(bridge)
    util.interface_assign_ip(iface, ip_addr, mask)
    util.interface_up(iface)
    util.move_routes(bridge, iface)
    return ovs_vsctl_del_bridge(bridge)

 

 

SQL


-- phpMyAdmin SQL Dump
-- version 3.4.9
-- http://www.phpmyadmin.net
--
-- ホスト: mysql519.phy.lolipop.jp
-- 生成時間: 2012 年 5 月 02 日 12:43
-- サーバのバージョン: 5.1.59
-- PHP のバージョン: 5.2.17

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- データベース: `LA10961980-ixnvuu`
--

-- --------------------------------------------------------

--
-- テーブルの構造 `mt_asset`
--

CREATE TABLE IF NOT EXISTS `mt_asset` (
  `asset_id` int(11) NOT NULL AUTO_INCREMENT,
  `asset_blog_id` int(11) NOT NULL,
  `asset_class` varchar(255) DEFAULT 'file',
  `asset_created_by` int(11) DEFAULT NULL,
  `asset_created_on` datetime DEFAULT NULL,
  `asset_description` mediumtext,
  `asset_file_ext` varchar(20) DEFAULT NULL,
  `asset_file_name` varchar(255) DEFAULT NULL,
  `asset_file_path` varchar(255) DEFAULT NULL,
  `asset_label` varchar(255) DEFAULT NULL,
  `asset_mime_type` varchar(255) DEFAULT NULL,
  `asset_modified_by` int(11) DEFAULT NULL,
  `asset_modified_on` datetime DEFAULT NULL,
  `asset_parent` int(11) DEFAULT NULL,
  `asset_url` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`asset_id`),
  KEY `mt_asset_blog_class_date` (`asset_blog_id`,`asset_class`,`asset_created_on`),
  KEY `mt_asset_parent` (`asset_parent`),
  KEY `mt_asset_file_ext` (`asset_file_ext`),
  KEY `mt_asset_created_on` (`asset_created_on`),
  KEY `mt_asset_class` (`asset_class`),
  KEY `mt_asset_label` (`asset_label`),
  KEY `mt_asset_created_by` (`asset_created_by`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=484 ;

--
-- テーブルのデータをダンプしています `mt_asset`
--

 

yaml


version: '3'

services:
    # SIP gateway (audio)
    jigasi:
        image: jitsi/jigasi:latest
        restart: ${RESTART_POLICY}
        ports:
            - '${JIGASI_PORT_MIN}-${JIGASI_PORT_MAX}:${JIGASI_PORT_MIN}-${JIGASI
_PORT_MAX}/udp'
        volumes:
            - ${CONFIG}/jigasi:/config:Z
            - ${CONFIG}/transcripts:/tmp/transcripts:Z
        environment:
            - ENABLE_AUTH
            - XMPP_AUTH_DOMAIN
            - XMPP_MUC_DOMAIN
            - XMPP_INTERNAL_MUC_DOMAIN
            - XMPP_SERVER
            - XMPP_DOMAIN
            - PUBLIC_URL
            - JIGASI_SIP_URI
            - JIGASI_SIP_PASSWORD
            - JIGASI_SIP_SERVER
            - JIGASI_SIP_PORT
            - JIGASI_SIP_TRANSPORT
            - JIGASI_SIP_DEFAULT_ROOM
            - JIGASI_XMPP_USER
            - JIGASI_XMPP_PASSWORD
            - JIGASI_BREWERY_MUC
            - JIGASI_PORT_MIN
            - JIGASI_PORT_MAX
            - JIGASI_HEALTH_CHECK_SIP_URI
            - JIGASI_HEALTH_CHECK_INTERVAL
            - JIGASI_SIP_KEEP_ALIVE_METHOD
            - JIGASI_ENABLE_SDES_SRTP
            - ENABLE_TRANSCRIPTIONS
            - JIGASI_TRANSCRIBER_ADVERTISE_URL
            - JIGASI_TRANSCRIBER_RECORD_AUDIO
            - JIGASI_TRANSCRIBER_SEND_TXT
            - GC_PROJECT_ID
            - GC_PRIVATE_KEY_ID
            - GC_PRIVATE_KEY
            - GC_CLIENT_EMAIL
            - GC_CLIENT_ID
            - GC_CLIENT_CERT_URL
            - TZ
        depends_on:
            - prosody
        networks:
            meet.jitsi: