This file contains hidden or 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
| # custom WebStorm VM options, this configuration also works well for other IDEs like phpstorm, pycharm..etc. | |
| -Xms1024m | |
| -Xmx2048m | |
| -XX:ReservedCodeCacheSize=240m | |
| -XX:+UseConcMarkSweepGC | |
| -XX:SoftRefLRUPolicyMSPerMB=50 | |
| -ea | |
| -Dsun.io.useCanonCaches=false | |
| -Djava.net.preferIPv4Stack=true |
This file contains hidden or 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 doPost(y) { | |
| var token = PropertiesService.getScriptProperties().getProperty("xoxp-123"); | |
| var name = "name"; | |
| var token = PropertiesService.getScriptProperties().getProperty('SLACK_ACCESS_TOKEN'); | |
| var app = SlackApp.create(token); | |
| var spreadsheet = SpreadsheetApp.openById('sheetID'); | |
| var sheet = spreadsheet.getSheetByName('シート1'); | |
| var range = sheet.getRange("シート1!C1").setFormula('=INDIRECT("シート1!A:A" & INT(RAND()*n+1))'); |
This file contains hidden or 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 python | |
| # encoding: utf-8 | |
| from __future__ import unicode_literals | |
| import requests as req | |
| URL_ROOT = 'http://localhost:5050' | |
| def get_logged_in_session(name): |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: ReplicationController | |
| metadata: | |
| name: kube-registry-v0 | |
| namespace: kube-system | |
| labels: | |
| k8s-app: kube-registry | |
| version: v0 | |
| spec: | |
| replicas: 1 |
This file contains hidden or 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/sh | |
| REPOSRC=$1 | |
| LOCALREPO=$2 | |
| # We do it this way so that we can abstract if from just git later on | |
| LOCALREPO_VC_DIR=$LOCALREPO/.git | |
| if [ ! -d $LOCALREPO_VC_DIR ] | |
| then |
This file contains hidden or 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 | |
| # Predefined links and files. Note: LTS may not be latest LTS | |
| export NODE_STABLE=http://nodejs.org/dist/node-latest.tar.gz | |
| export NODE_LTS=https://nodejs.org/dist/latest-v4.x/node-v4.2.2.tar.gz | |
| export RC_BASH=~/.bashrc | |
| export RC_PROFILE=~/.profile | |
| # Settings | |
| export NODE_VER=$NODE_LTS |
This file contains hidden or 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
| set :application, "MY_APPLICATION" | |
| set :repository, "git@github.com:PATH_TO_MY_REPO" | |
| set :scm, :git | |
| set :use_sudo, false | |
| set :keep_releases, 5 | |
| set :deploy_via, :remote_cache | |
| set :main_js, "MAIN_APP.js" | |
| desc "Setup the Demo Env" | |
| task :demo do |
This file contains hidden or 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
| BOX_NAME=vagrant-build | |
| BASE_DIR="`pwd`/machines" | |
| BOX_DIR="${BASE_DIR}/${BOX_NAME}" | |
| mkdir -p ${BASE_DIR} | |
| VBoxManage createvm --name "${BOX_NAME}" --ostype RedHat_64 --basefolder ${BASE_DIR} | |
| VBoxManage registervm "${BOX_DIR}/${BOX_NAME}.vbox" | |
| mkdir -p tmp |
This file contains hidden or 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
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
NewerOlder