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 | |
#################### | |
# user vars # | |
#################### | |
API_KEY='MY_API_KEY' | |
DEPLOYMENT_DATA='{"environment_id":"MY_ENV_ID-e,"application_id":"MY_APP_ID-a"}' | |
#################### |
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
/** | |
* @NOTE - This is a snippet will not work in Internet Explorer. | |
*/ | |
function mablJavaScriptStep(mablInputs, callback) { | |
// ## Values that one could parameterize ## | |
let elementSelector = ".contents-genre-ranking .contents-more--center .btn--emphasis"; | |
let elementText = "ランキング一覧"; | |
// Call the "scrollDown" function once every second |
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
# bash script to collect Nomad stderr (aka outer build container) logs | |
# run via cron on 5-10 minute interval, please ensure you turn off this service after usage | |
#! /bin/bash | |
set -eu | |
output_dir="nomad-stderr-logs" | |
nomad_log_dir_max_bytes=1073741824 |
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 | |
# Please run as root user! | |
set -eu | |
output_dir="container-logs" | |
timestamp=$(date +%s) | |
generate_logs() { |
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
# Hautelook experienced an outage where their services crashed overnight (no particular elevated build volume. | |
# They attempted a restart and received errors such as: | |
### - Timeout waiting for event Migrator Finished - VM Service | |
### - Timeout waiting for event Migrator Finished - Permissions Service | |
### - Timeout waiting for event Postgresql 9.4 ready-5432 | |
# | |
# Weirdly enough, the container logs for each of those looked to be just fine. Replicated logs would show the timeout errors, however. | |
# Doing the Replicated dance did not fix the issue, so I had them nuke all existing images and containers and reinstall Replicated. | |
# Good to reassure them that no data will be destroyed through all this. |
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 | |
## | |
# CircleCI Database Export Script | |
# | |
# This script is for installations running CircleCI server 2.0 or higher. | |
# | |
# This script will create a tar ball of the PostgreSQL and Mongo databases. | |
# This should generally be used when you are planning on switching from | |
# the default embedded databases to an external database source. |
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
FROM circleci/golang:1.9-browsers | |
USER root | |
RUN apt-get update | |
RUN apt-get install zlib1g-dev \ | |
# mysql | |
default-libmysqlclient-dev mysql-server \ | |
# lxml | |
libxml2 libxml2-dev libxslt1.1 libxslt1-dev \ |
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
FROM heug/ruby-trusty:2.3.3-1 | |
USER root | |
## BEGIN CIRCLECI PREAMBLE | |
# make Apt non-interactive | |
RUN echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90circleci \ | |
&& echo 'DPkg::Options "--force-confnew";' >> /etc/apt/apt.conf.d/90circleci |
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
FROM ubuntu:14.04 | |
USER root | |
## TOOLS | |
RUN apt-get update && apt-get install wget xz-utils autoconf build-essential zlib1g-dev apt-transport-https libssl-dev curl libreadline-dev -y | |
## END TOOLS |
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
version: 2 | |
references: | |
container_config: &container_config | |
working_directory: ~/root | |
docker: | |
- image: heug/docker-images:fundthatflip # replace with your dockerhub image | |
environment: | |
PGHOST: 127.0.0.1 | |
PGUSER: root |
NewerOlder