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
{"label":"Coverage","message":"30%","schemaVersion":1,"color":"red","namedLogo":"typescript"} |
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
CERT_PATH=$(python -m certifi) | |
export SSL_CERT_FILE=${CERT_PATH} | |
export REQUESTS_CA_BUNDLE=${CERT_PATH} |
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
CERT_PATH=$(python -m certifi) | |
export SSL_CERT_FILE=${CERT_PATH} | |
export REQUESTS_CA_BUNDLE=${CERT_PATH} |
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
ARG ALPINE_VERSION=3.16 | |
FROM python:3.10.5-alpine3.16 as builder | |
ARG AWS_CLI_VERSION=2.7.20 | |
RUN apk add --no-cache git | |
RUN apk add --no-cache unzip | |
RUN apk add --no-cache groff | |
RUN apk add --no-cache build-base | |
RUN apk add --no-cache libffi-dev | |
RUN apk add --no-cache cmake |
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 | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
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
tasks.fix_generator = function () { | |
const config = grunt.config('fix_generator'); | |
const files = grunt.file.expand({}, config.dist.src); | |
files.forEach((file) => { | |
const contents = fs.readFileSync(file).toString('utf-8'); | |
const match = contents.match(/\ndefine\(\s*(\[|function)/); | |
if (match) { | |
const prepended = contents.substring(0, match.index); | |
let body = contents.substring(match.index); |
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
const observeDOM = (function() { | |
const MutationObserver = window.MutationObserver || | |
window.WebKitMutationObserver; | |
return function(obj, callback) { | |
if (!obj || obj.nodeType !== 1) return; | |
if (MutationObserver) { | |
// define a new observer | |
const mutationObserver = new MutationObserver(callback); |
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
const {PurgeCSS} = require('purgecss'); | |
const minify = require('minify'); | |
const scope = require('scope-css'); | |
const fs = require('fs'); | |
const path = require('path'); | |
(new PurgeCSS()).purge({ | |
content: [ | |
'app/design/frontend/Magento/ady/**/*.phtml', | |
'app/design/frontend/Magento/ady/**/*.html', |
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
const path = require('path'); | |
const chokidar = require('chokidar'); | |
const SFTPClient = require('ssh2-sftp-client'); | |
const {ChannelQueue} = require('@buttercup/channel-queue'); | |
async function connectSFTP() { | |
const sftp = new SFTPClient(); | |
return new Promise((resolve, reject) => { | |
sftp | |
.connect({ |
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 bash | |
apt update | |
apt upgrade -y | |
apt install -y \ | |
curl \ | |
wget \ | |
zip \ |
NewerOlder