docker build -t ${APP_TAG} ${REPO_URL}#${BUILD_BRANCH} -f ${APP_DF_PATH}docker build -t ${APP_TAG} "${REPO_URL}#${BUILD_BRANCH}" -f ${APP_DF_PATH}| #!/usr/bin/env sh | |
| TOKEN="api-token" | |
| master=${1:-"master"} | |
| APIURL="https://api.github.com" | |
| OWNER=$(git config --get user.name) | |
| REPO=$(basename $(git rev-parse --show-toplevel)) | |
| git checkout -b master | |
| git push origin master | |
| curl -s -X PATCH "$APIURL/repos/$OWNER/$REPO" \ | |
| -d "{\"default_branch\":\"master\"}" \ |
| #!/usr/bin/env sh | |
| tmp=${1:-ca-tmp} | |
| mkdir -p $tmp | |
| DEF_ROOT_NAME=RootCA | |
| DEF_SRV_NAME=localhost | |
| DEF_TERM=365 | |
| read -p "Name of root cert ($DEF_ROOT_NAME): " root | |
| read -p "Name of server cert ($DEF_SRV_NAME): " srv | |
| read -p "Certificates term in days ($DEF_TERM): " term |
| #!/usr/bin/env python | |
| # Run $('.TextInput-fragment').textContent in browser console | |
| # Then run this script and copy-paste text from browser console to terminal. | |
| # Script will Alt+Tab to browser so make sure it won't go to the wrong window. | |
| import os | |
| import time | |
| import pyautogui as pag | |
| import random |
| data/ | |
| test*/ | |
| iter*/ | |
| *.txt | |
| __pycache__/ | |
| from os import getenv, path | |
| import requests | |
| from pprint import pprint | |
| import json | |
| from termcolor import colored | |
| USERNAME = 'username' | |
| TOKEN = 'your_github_app_token' | |
| GHAPI = 'https://api.github.com' | |
| GIST_ID = 'gist_id' |
| 'use strict' | |
| const { resolve, extname } = require('path') | |
| const http = require('http') | |
| const fs = require('fs') | |
| const PORT = process.env.PORT || 8080 | |
| const PUBLIC_PATH = 'public/' // place it directory, where you execute node | |
| const MIME_TYPES = { |
| FROM node:slim | |
| WORKDIR /opt/app | |
| COPY ./ ./ | |
| EXPOSE 8080 | |
| CMD node ./ |