$ export http_proxy=http://example.com:8080/
$ export https_proxy=$http_proxy
$ sudo -E sh -c "echo 'Acquire::http::proxy \"$http_proxy\";' >> /etc/apt/apt.conf"
$ sudo -E sh -c "echo 'Acquire::https::proxy \"$https_proxy\";' >> /etc/apt/apt.conf"
$ wget https://raw.githubusercontent.com/progrium/dokku/v0.4.3/bootstrap.sh
$ sudo -E DOKKU_TAG=v0.4.3 bash bootstrap.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Simple inspector for Docker container IP address | |
# https://gist.github.com/mugifly/3bb1c54b48764340eda8 | |
print_help () { | |
echo -e "USAGE: docker-container-ip.sh KEYWORD\n" | |
echo "KEYWORD: A keyword string for target container." | |
echo " e.g. dokku.mysql.foobar" | |
echo -e "\n[Example usecases]" | |
echo " Connect to MySQL database in container:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# FTP directory clone script for Unix OS | |
# Required: bash & wget command | |
# https://gist.github.com/mugifly/931624e375d40267afc4 | |
# Copy source (Remote FTP server) | |
SRC_HOST="example.com" | |
SRC_USERNAME="xxxx" | |
SRC_PASSWORD="yyyy" | |
SRC_DIRECTORY="/home/xxxx/src" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Database migration script for Sakura to Any | |
SRC_IS_SSH_USE=1 | |
SRC_SSH_SAKURA_USER="example" | |
SRC_SSH_HOST="${SRC_SSH_SAKURA_USER}.sakura.ne.jp" | |
SRC_SSH_USERNAME="${SRC_SSH_SAKURA_USER}" | |
SRC_SSH_PASSWORD="foobar" | |
SRC_DB_HOST="mysql0000.db.sakura.ne.jp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
print "MySQL Database and User Generator\n"; | |
print "Input database name: "; | |
my $db_name = <STDIN>; | |
chomp $db_name; | |
if (length($db_name) <= 0) { | |
exit 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function test () { | |
postToSlack('Hello!'); | |
} | |
function postToSlack (text) { | |
var SLACK_WEBHOOK_URL = 'https://hooks.slack.com/services/XXXXX/YYYYY/ZZZZZ'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Setting Script for Let's Encrypt Certificate for Dokku apps | |
# Path of Let's Encrypt command | |
PATH_LE="/root/letsencrypt/" | |
# Base domain of dokku apps | |
DOKKU_BASE_DOMAIN="example.com" | |
# App names |
- Build the Android Studio Project (Gradle Project) which exist on your Git repository.
- Upload the generated apk file to Slack.
- Name: YOUR-REPOSITORY-NAME
- Repository URL: git@github.com:XXX/YYY.git
- Provider: Github
- Source control: Git
- Project type: Generic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
machine: | |
java: | |
version: oraclejdk8 | |
environment: | |
# Java options | |
JAVA_OPTS: "-Xms512m -Xmx2048m" | |
# ADB options | |
ADB_INSTALL_TIMEOUT: 5000 | |
dependencies: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
machine: | |
environment: | |
# Path | |
PATH: "$PATH:/home/$USER/perl5/bin" | |
# cpanm - Install destination of libraries | |
PERL_CPANM_OPT: "--local-lib=/home/$USER/perl5" | |
# perl - Include path | |
PERL5LIB: "/home/$USER/perl5/lib/perl5:$PERL5LIB" | |
dependencies: |