Skip to content

Instantly share code, notes, and snippets.

View i-rocky's full-sized avatar
:octocat:
Multitasking

Rasel Rana Rocky i-rocky

:octocat:
Multitasking
  • Hydra Inc.
  • Dhaka, Bangladesh
View GitHub Profile
{"label":"Coverage","message":"30%","schemaVersion":1,"color":"red","namedLogo":"typescript"}
CERT_PATH=$(python -m certifi)
export SSL_CERT_FILE=${CERT_PATH}
export REQUESTS_CA_BUNDLE=${CERT_PATH}
CERT_PATH=$(python -m certifi)
export SSL_CERT_FILE=${CERT_PATH}
export REQUESTS_CA_BUNDLE=${CERT_PATH}
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
#! /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.
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);
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);
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',
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({
#!/usr/bin/env bash
apt update
apt upgrade -y
apt install -y \
curl \
wget \
zip \