Skip to content

Instantly share code, notes, and snippets.

Avatar

Tibor Szentmarjay tibu

View GitHub Profile
@jv-k
jv-k / bump-version.sh
Created Dec 4, 2020
This script automates bumping the git software project's version using automation.
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)
@nedimdragic
nedimdragic / oneTrustIntegrartion.js
Created May 28, 2019
Tealium Consent Manager - OneTrust Cookie Consent Manager Integration
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){
@troyharvey
troyharvey / .gitlab-ci.yml
Last active Mar 6, 2021
Deploy Google Cloud Functions: GitLab CI/CD Pipeline Config File
View .gitlab-ci.yml
variables:
GCP_ZONE: us-central1-a
stages:
- npm-install
- push
npm-install:
image: node:8-alpine
stage: npm-install
@andyshinn
andyshinn / Dockerfile
Last active Feb 20, 2021
Postal on Docker
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
@cebe
cebe / phpmailer.sh
Last active Dec 28, 2016
command for finding vulnerable files and line of code for https://isc.sans.edu/forums/diary/Critical+security+update+PHPMailer+5218+CVE201610033/21855/ finds also really old versions, e.g. 2.0.4.
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/'
@wvpv
wvpv / SFMC-SSJS-delete-rows-from-DE.js
Created Mar 21, 2016
SFMC SSJS Delete Rows from a Data Extension
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