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 | |
# | |
# Redmine Startup script for unicorn. | |
# | |
# chkconfig: - 86 15 | |
# description: redmine on unicorn start/stop script. | |
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin | |
# load rbenv |
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: { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# This is the main Samba configuration file. For detailed information about the | |
# options listed here, refer to the smb.conf(5) manual page. Samba has a huge | |
# number of configurable options, most of which are not shown in this example. | |
# | |
# The Official Samba 3.2.x HOWTO and Reference Guide contains step-by-step | |
# guides for installing, configuring, and using Samba: | |
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf | |
# | |
# The Samba-3 by Example guide has working examples for smb.conf. This guide is | |
# generated daily: http://www.samba.org/samba/docs/Samba-Guide.pdf |
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
#!/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
# /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
#!/bin/sh | |
# ============================================================================== | |
# collectd/rrdtoolデータ取得・整形スクリプト (FreeBSD向け修正版) | |
# | |
# 指定した期間のシステムリソース(メモリ、CPU、負荷、ネットワーク)の | |
# データをcollectdのRRDファイルから抽出し、人間が読みやすい形式で表示します。 | |
# ============================================================================== | |
# --- 設定項目 --- |