スポンサーサイト

2023.04.20 Thursday
0

    一定期間更新がないため広告を表示しています

    category:- | by:スポンサードリンク | - | - | -

    hidemaru macro

    2017.05.31 Wednesday 08:12
    0
      //
      // FILEOPEN.MAC
      // よく使うファイルを開く
      //

      main_menu:
      mousemenu
      "■ FILE(ファイル)を開く ", // 1
      " ・Passwordファイル", // 2
      " ・勤務実績ファイル", // 3
      " ・ブログ投稿用" // 93
      ;


      if (result==0) goto main_end;
      else if (result==2 ) openfile "■dir■¥¥password.txt";
      else if (result==3 ) execmacro "勤怠時間FILEOPEN.mac";
      else if (result==4 ) openfile "■dir■¥¥会社(OpenEcology)¥¥作業履歴¥¥作業履歴(200903以降).txt";
      else if (result==93 ) openfile "■dir■¥¥会社(OpenEcology)¥¥作業履歴¥¥ブログ投稿用.txt";

      main_end:
      endmacro;
      //

      ★★★★★★★★
      ★★★★★★★★
      ★★★★★★★★


      //
      //MAC_MENU.MAC

      main_menu:
      mousemenu
      "■ 挿入(時間) ", // -- 1
      " ・今日の日付カッコ有)", // 2
      " ・今日の日付カッコ無)", // 3
      " ・現時刻", // 4

      "■ 挿入(他) ", // -- 5
      " ・リンク", // 6
      " ・div newsタグ", // 7
      " ・日記フォーマット", // 8
      " ・todoリスト見出し", // 9
      " ・Directory名、FILE名の表示", // 10
      " ・かっこ", // 11
      " ・Document :フォーマット", // 12
      " ・tableタグ", // 13
      " ・echo", // 14

      "■ 挿入(段落番号) ", // -- 15
      " ・まる数字", // 16
      " ・アルファベット", // 17
      " ・数字の記入( .で区切る)", // 18

      "■ 変換 ", // -- 19
      " ・小文字 <<----->> 大文字 変換", // 20
      " ・指定桁折・連結・挿入マクロ", // 21
      " ・タグ->空白置換", // 22

      "■ その他編集 ", // -- 23
      " ・空白行削除", // 24
      " ・罫線を引く", // 25
      " ・sort", // 26
      " ・uniq(並ぶ重複行削除)", // 27
      " ・sortuniq(重複行削除)", // 28

      "■ grep(検索) ", // -- 29
      " ・対象行のみ抽出", // 30
      " ・検索文字の強調表示" // 31

      else if (result==2 ) execmacro "today1.mac" ;
      else if (result==3 ) execmacro "today2.mac";
      else if (result==31 ) execmacro "find.mac";

      main_end:
      endmacro;
      //

      続きを読む >>
      category:秀丸 | by:ittoocomments(0)trackbacks(0) | -

      php apiで返す場合 header('Content-Type: application/json'); をつけること

      2017.05.29 Monday 20:00
      0
        php apiで返す場合
        header('Content-Type: application/json');
        をつけること

        例)
        値設定
        $r_array['searchword'] = "あああ" ;
        $r_array['result'] = "OKOKOK!!!あああ" ;

        返すよ
        header('Content-Type: application/json');
        $r_json = json_encode($r_array);
        echo $r_json ;
        category:php | by:ittoocomments(0)trackbacks(0) | -

        wordpressのデフォルト設定でURLに日本語が含まれていると Page not found (404) がでてうまくいかなかった話

        2017.05.06 Saturday 19:55
        0
          wordpressのデフォルト設定でURLに日本語が含まれていると
          Page not found (404)
          がでてうまくいかなかった話。

          文字コードUTF-8に設定しているし
          DBみても、文字化けしているわけでもないし
          どこが不明だかわからなかったが
          wordpress管理ページで、
          設定 > パーマリンク設定
          箇所が、「カスタム構造」を選択していたため他の項目に変更すると
          うまくアクセスできるようになった。
          他の項目だと日本語タイトルでもうまく表示されるんだけどね
          URLのカスタム構造の設定がおかしいのかな?
          まぁ解決したのでよしとしよう
          category:wordpress | by:ittoocomments(0)trackbacks(0) | -

          特定のipアドレスを iptables で遮断する

          2017.05.03 Wednesday 20:16
          0
            特定のipアドレスを iptables で遮断する
            centosの secureログでかくなりすぎてなにだ?と思ったら
            中国のサーバーから rootでのログインこころみる回数が数秒おきにおこっていて
            そのログイン失敗ログがあふれていたためでした
            よってipアドレスを iptables で遮断するときの作業メモ


            実際に来てたログ
            17:28:39 localhost sshd[50155]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
            17:28:41 localhost sshd[50155]: Failed password for root from 61.177.172.26 port 38041 ssh2
            17:28:41 localhost sshd[50155]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
            17:28:43 localhost sshd[50155]: Failed password for root from 61.177.172.26 port 38041 ssh2
            17:28:43 localhost sshd[50155]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"

            ★★ログ
            ★★事前の状態確認
            [root@xxxxxserver etc]# iptables -L
            Chain INPUT (policy ACCEPT)
            target prot opt source destination

            ★★ipアドレス、第1,2,3オクテットまで指定ありで 第4オクテットをすべて禁止した
            つまり61.177.172.〜 配下全部NGに変更した
            [root@xxxxxserver etc]# iptables -I INPUT -s 61.177.172.0/24 -j DROP

            ★★状態確認
            [root@xxxxxserver etc]# iptables -L
            Chain INPUT (policy ACCEPT)
            target prot opt source destination
            DROP all -- 61.177.172.0/24 anywhere ★1行目 今回追加
            DROP all -- 61.177.0.0/16 anywhere ★2行目 前回追加

            ★★状態確認
            [root@xxxxxserver etc]# iptables -L
            Chain INPUT (policy ACCEPT)
            target prot opt source destination
            DROP all -- 61.177.172.0/24 anywhere

            ★★ iptableコマンドでとりけすときは、追加された行ナンバーをしていする
            [root@xxxxxserver etc]# iptables -D INPUT 1
            category:コマンド | by:ittoocomments(0)trackbacks(0) | -

            ad
            Calender
             123456
            78910111213
            14151617181920
            21222324252627
            28293031   
            << May 2017 >>
            Selected entry
            PR
            Category
            Archives
            Recommend
            Link
            Profile
            Search
            Others
            Mobile
            qrcode
            Powered
            無料ブログ作成サービス JUGEM