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
import json | |
import logging | |
from shopify_utils import get_store | |
logging.basicConfig(level=logging.INFO) | |
def generate_variations(domain, max_distance=2): | |
alphabet = "abcdefghijklmnopqrstuv" | |
variations = {domain} |
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
let settings = input.config({ | |
title: '📎⇣ Bulk attachment renamer', | |
description: 'rename all attachments in a table with the name based on multiple fields in the same record.', | |
items: [ | |
input.config.table('tableWithAttachment', { | |
label: 'table with attachments to be renamed', | |
description: '', | |
}), | |
input.config.field('attachmentField', { | |
label: 'attachment that will be renamed', |
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 | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
fi | |
# Oh-my-zsh - zsh default shell on mac | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
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
# Install Chocolatey | |
powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" | |
SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
choco feature enable -n allowGlobalConfirmation | |
#$Packages = 'git','googlechrome', 'adobereader', 'skype', 'filezilla', 'python', 'virtualbox', | |
# 'wireshark', 'fiddler', 'vlc', 'youtube-dl', 'jre8','jdk8', 'deluge','vagrant','visualstudiocode', '7zip.install' |