View bump-version.sh
#!/bin/bash | |
# | |
# █▄▄ █░█ █▀▄▀█ █▀█ ▄▄ █░█ █▀▀ █▀█ █▀ █ █▀█ █▄░█ | |
# █▄█ █▄█ █░▀░█ █▀▀ ░░ ▀▄▀ ██▄ █▀▄ ▄█ █ █▄█ █░▀█ | |
# | |
# Description: | |
# - This script automates bumping the git software project's version using automation. | |
# - It does several things that are typically required for releasing a Git repository, like git tagging, | |
# automatic updating of CHANGELOG.md, and incrementing the version number in various JSON files. |
View ssjs-try-catch-ampscript-example.html
<script runat="server"> | |
Platform.Load("Core","1.1.1"); | |
try{ | |
</script> | |
%%[ | |
set @email = emailaddr | |
if (@email != "") then | |
set @rows = LookupRows("LeadDataExtension","Email", @email) | |
set @rowCount = rowcount(@rows) |
View oneTrustIntegrartion.js
;(function(u){ | |
var addListener = function(element, event, callback) { | |
if(element.addEventListener) { | |
element.addEventListener(event, callback, false); | |
} | |
else if(element.attachEvent) { | |
element.attachEvent('on' + event, callback); | |
} | |
}; | |
var readDataAndSetConsentPref = function(data){ |
View .gitlab-ci.yml
variables: | |
GCP_ZONE: us-central1-a | |
stages: | |
- npm-install | |
- push | |
npm-install: | |
image: node:8-alpine | |
stage: npm-install |
View Dockerfile
FROM ruby:2.3-onbuild | |
VOLUME /opt/postal/config | |
ENV LOG_TO_STDOUT 1 | |
ENV AM_CONFIG_ROOT /opt/postal/config | |
RUN gem install procodile | |
RUN apt-get update -qq && apt-get install -yqq nodejs |
View phpmailer.sh
#!/bin/bash | |
for file in $(find /var/www |grep class.phpmailer.php) ; do echo $file; grep -ni '%s["'\''], $this->Sender' $file ; done |
View move-issues-from-jira-to-gitlab.py
import requests | |
from requests.auth import HTTPBasicAuth | |
import re | |
from StringIO import StringIO | |
JIRA_URL = 'https://your-jira-url.tld/' | |
JIRA_ACCOUNT = ('jira-username', 'jira-password') | |
# the JIRA project ID (short) | |
JIRA_PROJECT = 'PRO' | |
GITLAB_URL = 'http://your-gitlab-url.tld/' |
View SFMC-SSJS-delete-rows-from-DE.js
<script runat="server"> | |
Platform.Load("core", "1.1.1"); | |
function pruneRows () { | |
var DERowKeys = DataExtension.Init("DEofRowKeys"); | |
var DERowKeyRows = DERowKeys.Rows.Lookup(["ProcessedFlag"], [0], 50, "RowDate"); | |
var returnString = ""; |
View mongrel.rb
if ['2.3.8', '2.3.9', '2.3.10', '2.3.11'].include?(Rails.version) && Gem.available?('mongrel', '~>1.1.5') && self.class.const_defined?(:Mongrel) | |
# Pulled right from latest rack. Old looked like this in 1.1.0 version. | |
# | |
# def [](k) | |
# super(@names[k] ||= @names[k.downcase]) | |
# end | |
# | |
module Rack | |
module Utils |