簡易工数記録スクリプト
$ rt task1
... 3 minutes
Slack apiで特定のチャンネルのエクスポートを行うスクリプト
| #if 0 | |
| #!/bin/bash | |
| src=$0 | |
| obj=${src%.*} | |
| gcc -g -Wl,--no-as-needed `pkg-config --cflags --libs json-c` -o $obj $src | |
| $obj | |
| exit | |
| #endif | |
| /************************************************** |
| # 概要 | |
| 簡単なCOBOLプログラムを作成してscan-build、およびvalgrindでInitialize漏れがチェックできるか確認した。 | |
| 結論としては両ツールではチェックできなかった。 | |
| # TEST1.CBLのビルドおよびscan-build実行 | |
| `% ./build.sh` | |
| 結果をbuild.sh.outに記載 |
| --- u14.log 2019-10-29 11:24:19.253258539 +0900 | |
| +++ u18.log 2019-10-29 11:24:19.253258539 +0900 | |
| @@ -2,2 +2,2 @@ | |
| - -falign-functions 1 | |
| - -falign-jumps 1 | |
| + -falign-functions 0 | |
| + -falign-jumps 0 | |
| @@ -5 +5,2 @@ | |
| - -falign-loops 1 | |
| + -falign-loops 0 |
| IDENTIFICATION DIVISION. | |
| PROGRAM-ID. TEST1. | |
| ENVIRONMENT DIVISION. | |
| CONFIGURATION SECTION. | |
| INPUT-OUTPUT SECTION. | |
| FILE-CONTROL. | |
| * | |
| DATA DIVISION. | |
| FILE SECTION. | |
| * |
| # coding:utf-8 | |
| require 'json' | |
| require 'pp' | |
| require 'tempfile' | |
| def cpanda(command,opt,json=nil) | |
| out = nil | |
| arr = [ | |
| opt[:cpanda], |
| mihara@trusty48:~/samples/gtk3$ LANG=C ./checkfcitx.c | |
| ./checkfcitx.c: In function 'main': | |
| ./checkfcitx.c:25:3: warning: 'gtk_vbox_new' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkvbox.h:61): Use 'gtk_box_new' instead [-Wdeprecated-declarations] | |
| vbox = gtk_vbox_new(FALSE,1); | |
| ^ | |
| process 8356: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": Too many open files | |
| See the manual page for dbus-uuidgen to correct this issue. | |
| process 8356: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": Too many open files | |
| See the manual page for dbus-uuidgen to correct this issue. |