Environment: Mac OSX
References:
#! /bin/bash | |
# Usage: | |
# Start record: sudo gdump start | |
# Stop record : sudo gdump stop | |
# | |
# The cap file is under /tmp/HOSTNAME.cap | |
# | |
# Prerequire: tcpdump | |
# Ubuntu: sudo apt-get install tcpdump |
Environment: Mac OSX
References:
const lineNotifyApiHost = 'notify-api.line.me'; | |
const lineNotifyApiPath = '/api/notify'; | |
const lineNotifyApiToken = process.env.ACCESS_TOKEN; | |
const https = require('https'); | |
const querystring = require('querystring'); | |
// | |
// Push message | |
// |
const botTgApiHost = 'api.telegram.org'; | |
const botTgApiSendMessagePath = '/bot' + process.env.BOT_TOKEN + '/sendMessage'; | |
const https = require('https'); | |
const querystring = require('querystring'); | |
// | |
// Push message | |
// | |
function pushMessage(chatId, message) { |
#! /bin/bash | |
# Requirement | |
# | |
# * gcloud SDK https://cloud.google.com/sdk/downloads | |
# * kubectl https://kubernetes.io/docs/tasks/tools/install-kubectl/ | |
# * ksonnet https://ksonnet.io/ | |
# | |
# * Request GPU Quota in Cloud Console | |
# |
#!/bin/bash | |
xml=`unzip -p $1 AndroidManifest.xml` | |
echo $xml | grep -Eo "android:versionCode=\"[^\"]+\"" | |
echo $xml | grep -Eo "android:versionName=\"[^\"]+\"" |
require 'rake' | |
require 'rake/testtask' | |
Rake::TestTask.new do |t| | |
t.test_files = Dir.glob('spec/**/*_spec.rb') | |
end | |
task(default: :test) |
require 'bundler/capistrano' | |
set :application, "net" | |
set :repository, "git@githost.com:net.git" | |
set :scm, :git | |
set :default_environment, { | |
'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH" | |
} |