This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # ============================================================================== | |
| # スクリプト名: MariaDB アップグレードオートメーション (FreeBSD pkg版) v3 | |
| # 作成日: 2026-01-11 | |
| # 対象環境: FreeBSD 14.3-RELEASE / ZFS / sh (Bourne Shell) | |
| # | |
| # 【修正内容】 | |
| # - 文字装飾に printf を使用し、FreeBSD sh での表示崩れを修正 | |
| # - pkg search の判定ロジックを緩和し、パッケージ検出エラーを解消 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <base target="_top"> | |
| <style> | |
| /* 全体の基本スタイル */ | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | |
| margin: 0; | |
| padding: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #================================================================================ | |
| # | |
| # Step CA 証明書 発行・更新スクリプト | |
| # | |
| # 概要: | |
| # Step CAサーバーから証明書を新規発行、または既存の証明書を更新します。 | |
| # 引数の数によって動作を切り替えます。 | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # ============================================================================== | |
| # collectd/rrdtoolデータ取得・整形スクリプト (FreeBSD向け修正版) | |
| # | |
| # 指定した期間のシステムリソース(メモリ、CPU、負荷、ネットワーク)の | |
| # データをcollectdのRRDファイルから抽出し、人間が読みやすい形式で表示します。 | |
| # ============================================================================== | |
| # --- 設定項目 --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /usr/local/etc/collectd.conf | |
| # collectdデーモン設定ファイル | |
| # | |
| # この設定ファイルは、collectd5-5.12.0_23のRRDTOOLオプションのみを有効にしたビルドに基づいています。 | |
| # | |
| # collectdの詳細な情報については、公式ドキュメントを参照してください: | |
| # https://collectd.org/documentation.shtml | |
| # ---------------------------------------------------------------------------- | |
| # グローバル設定 (Global Settings) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # ============================================================================== | |
| # GeoIPデータベース(.mmdb)のメタデータ表示スクリプト | |
| # | |
| # [機能] | |
| # 指定されたGeoLite2-Country.mmdbファイルのメタデータを読み込み、 | |
| # 人間が読みやすい形式でターミナルに表示します。 | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # ================================================================= | |
| # MaxMind GeoLite2 DBから特定の国のIPリストを抽出し、 | |
| # nginxの allow ルールファイルを生成するスクリプト (Python 3.11 対応版) | |
| # | |
| # 依存関係: pkg install py311-maxminddb | |
| # ================================================================= | |
| # --- 設定 (ご利用の環境に合わせて変更してください) --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name dev.hoge.jp; | |
| return 301 https://dev.hoge.jp$request_uri; | |
| #root /home/httpd/hoge/wordpress; | |
| # WordPress Setting | |
| #include conf.d/global/wordpress_restrictions.conf; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function cleanUp() { | |
| // | |
| // Settings | |
| // | |
| // Enter # of days before messages are moved to trash | |
| var days = 7; | |
| // List of labels which you want to remove | |
| var filters = []; | |
| filters.push('label:notification-mailmagazine'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt){ | |
| // Load plugins | |
| grunt.loadNpmTasks("grunt-contrib-jshint"); | |
| grunt.loadNpmTasks("grunt-contrib-watch"); | |
| grunt.initConfig({ | |
| options: { | |
| livereload: true, | |
| }, | |
| jshint: { |
NewerOlder