This file contains 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 | |
while true | |
do clear | |
date | |
esc=$(printf '\033') | |
dmesg --color=always --time-format iso | grep -vE "(cbr0|IPv6|audit|promiscuous mode)" | tail -15 | sed "s/,[0-9]\{6\}+0900 / /g" | sed "s/^[^ ]*\([0-9]\{4\}-[01][0-9]-[0-3][0-9]\)T\([^ ]\+\) /${esc}[32m[\1 \2] /g" | |
sleep 15 | |
done |
This file contains 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
using System.Text; | |
public class Hello{ | |
public static void Main(){ | |
// Your code here! | |
System.Console.WriteLine("Hello C#"); | |
System.Console.WriteLine($"??? => {DIC_ALPHABET[0]}"); | |
for (int i = 1; i <= 16384; i++) |
This file contains 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 bash | |
BACKUP_DIR=backups | |
LOG_FILE=${BACKUP_DIR}/backup.log | |
WEBAPI_PORT=8080 | |
API_KEY="foobar" | |
CURL_OPTS="-H Content-Type:application/json -H x-webapi-key:${API_KEY}" | |
BODY=$( | |
cat << _EOT_ |
This file contains 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 | |
########################################################### | |
# Config | |
########################################################### | |
SEND_LOG_EMAIL=foobar@example.com | |
SENDER_EMAIL=report@example.com | |
TARGET=/hoge | |
BACKUP_DIR=/backups/hoge | |
BACKUP_WEEKLY_NUM=3 |
This file contains 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 lang="ja"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta content="width=device-width,user-scalable=no,maximum-scale=1" name="viewport" /> | |
<title>Inactive dynmap</title> | |
<link href="https://cdn.rawgit.com/NKMR6194/Umi/v3.3.6-3/dist/css/bootstrap.min.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<style type="text/css"> |
This file contains 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
--- a/src/common.h 2013-12-25 08:59:59.000000000 +0900 | |
+++ b/src/common.h 2016-04-23 00:30:24.825939688 +0900 | |
@@ -225,6 +225,7 @@ | |
#define DEFAULT_ALIVE_INTERVAL 1800 // seconds | |
#define DEFAULT_BOOKMARK_FILE "mediatomb.html" | |
#define DEFAULT_IGNORE_UNKNOWN_EXTENSIONS NO | |
+#define DEFAULT_DISABLED_IGNORE_LOG_EXTENSIONS YES | |
#define DEFAULT_CASE_SENSITIVE_EXTENSION_MAPPINGS NO | |
#define DEFAULT_IMPORT_SCRIPT "import.js" | |
#define DEFAULT_DVD_SCRIPT "import-dvd.js" |
This file contains 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
#------------------------------------------------------------------------------- | |
# オプション解析 | |
#------------------------------------------------------------------------------- | |
minimist = require 'minimist' | |
OptionUtil = -> | |
knownOptions = | |
string: 'env' | |
default: | |
env: process.env.NODE_ENV || 'development' |
This file contains 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
#------------------------------------------------------------------------------- | |
# ライブラリ読み込み | |
#------------------------------------------------------------------------------- | |
gulp = require 'gulp' | |
gutil = require 'gulp-util' | |
# コンフィグ | |
config = require('../config.coffee').slim | |
# 追加パッケージ |
This file contains 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 | |
# | |
# OSX 10.10.3(Yosemite)で動作確認取ってる固定ルート自動追加スクリプト。 | |
# 各VPNに合わせて下のVPN設定を増やしてください。 | |
# 条件分岐一つ一つが一つのVPN用設定になりますが、Softetherの場合など、 | |
# 複数のVPNで同一条件になる物が出てくると思います。 | |
# その場合は適当に改造して条件分岐とインターフェース指定を頑張ってください! | |
# | |
# add_routesの後ろの部分がグループ名になります。 | |
# |