Skip to content

Instantly share code, notes, and snippets.

View chibi929's full-sized avatar
👨‍🌾
私の戦闘力は 5 です。

chibi929 chibi929

👨‍🌾
私の戦闘力は 5 です。
View GitHub Profile
@chibi929
chibi929 / gist:4290b5980d4e96261de9470f50f03a27
Last active May 19, 2018 00:14
カレントディレクトリ以下の容量が大きい順に表示するコマンド
# 容量が大きい順に
du -m | sort -rn
# 容量が大きい順に20個表示
du -m | sort -rn | head -20

コピペ用

(不要なコード削除済み)

'use strict';
 
const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');
const {Card, Suggestion} = require('dialogflow-fulfillment');
#!/bin/bash
if ! type convert > /dev/null 2>&1; then
echo 'Require: ImageMagick'
exit 1
fi
if [ $# -ne 1 ]; then
echo 'Usage: bash image-size.sh ${IMAGE_FILE}'
exit 1
#!/bin/bash
if ! type convert > /dev/null 2>&1; then
echo 'Require: ImageMagick'
exit 1
fi
if [ $# -ne 1 ]; then
echo 'Usage: bash image-resizer.sh ${IMAGE_FILE}'
exit 1
#!/bin/bash
if ! type convert > /dev/null 2>&1; then
echo 'Require: ImageMagick'
exit 1
fi
if [ $# -ne 1 ]; then
echo 'Usage: bash appicon-generator.sh ${IMAGE_FILE}'
exit 1
@chibi929
chibi929 / index.php
Created April 13, 2016 14:20
LINE BOTのお試しで使用したPHPファイル
/*
* 環境変数として以下を使用しています
* - LINE_CHANNEL_ID
* - LINE_CHANNEL_SECRET
* - LINE_CHANNEL_MID
* - FIXIE_URL
* - APP_NAME
*/
<?php
error_log("START: PHP");