Skip to content

Instantly share code, notes, and snippets.

Avatar

Makito Katsube katsube

View GitHub Profile
View electron-i18n.js
/**
* 翻訳クラス
*
*/
//--------------------------------
// モジュール
//--------------------------------
const p = require('../package.json')
View pdosample_02.php
<?php
/**
* MySQLに接続しデータを取得する
* (エラー処理対応版)
*
*/
//-------------------------------------------------
//準備
//-------------------------------------------------
View bashrc_alias.sh
#-------------------------------------
# httpd
#-------------------------------------
# Wordpressのアクセスログ
alias log-blog="sudo cat /var/log/httpd/access_log | grep -v '::1' | grep -v '/wp-' "
#-------------------------------------
# /var/log/secure
# (Ubuntu,Debianは/var/log/auth.logに修正)
#-------------------------------------
View neec.js
/**
* 日本工学院用の便利JSライブラリ
*
* @license MIT License
* @version 1.0.0
* @author M.Katsube <katsubemakito@gmail.com>
*/
const neec = {
//-------------------------------------------
View RedmineBackup_bitnami.sh
#!/bin/bash
#
# Backup MySQL and Remine files to S3
#
# Author: M.Katsube
# Date: 2020-09-15
echo 'Redmine Backuper'
echo ''
View neec-html5-qustion.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>MusicPlayer</title>
<style>
#wave{ border:1px solid gray; }
</style>
</head>
<body>
View firestore_crud1.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello FireStore</title>
<style type="text/css">
button{width:100px; height:30px; margin:5px;}
#msg{ display:none; border:1px solid gray; margin:10px; padding:10px; width:600px;}
</style>
</head>
View jsonserve.js
/**
* JSONデータ保管用の簡易Webサーバ
*/
//--------------------------------------
// モジュール読み込み
//--------------------------------------
const port = 3001;
const app = require('express')();
const http = require('http').Server(app);
View chat.sql
/**
* モバイルプログラミング2
* SQL実習
*
* Date: 2018-12-10
*/
/* ----------------------------------------- */
/* データベース作成 */
/* ----------------------------------------- */
View Apache_Allowfrom_JP.conf
<Directory "/var/www/html">
order deny,allow
deny from all
## JP
allow from 1.0.16.0/20
allow from 1.0.64.0/18
allow from 1.1.64.0/18
allow from 1.5.0.0/16
allow from 1.21.0.0/16