Skip to content

Instantly share code, notes, and snippets.

View jensblond's full-sized avatar
🎯
Focusing

Jens Hinrichs jensblond

🎯
Focusing
View GitHub Profile
@jensblond
jensblond / stripe-keys-and-ids.tsv
Created February 8, 2023 16:50 — forked from fnky/stripe-keys-and-ids.tsv
Stripe keys and IDs
Prefix Description Notes
ac_ Platform Client ID Identifier for an auth code/client id.
acct_ Account ID Identifier for an Account object.
aliacc_ Alipay Account ID Identifier for an Alipay account.
ba_ Bank Account ID Identifier for a Bank Account object.
btok_ Bank Token ID Identifier for a Bank Token object.
card_ Card ID Identifier for a Card object.
cbtxn_ Customer Balance Transaction ID Identifier for a Customer Balance Transaction object.
ch_ Charge ID Identifier for a Charge object.
cn_ Credit Note ID Identifier for a Credit Note object.
@jensblond
jensblond / omftag.js
Created September 29, 2016 21:16
omftag.js
<script>
var category_id = {{OMF category id}};
var video_ids = {{OMF data}};
var videos = get_video_ids(video_ids, category_id).slice(0,4);
var row = div_with_class('row product-teaser-row');
for (var i=0, len=videos.length; i < len; i++) {
var icon = document.createElement('i'),
img = document.createElement('img'),
@jensblond
jensblond / parsing.js
Created September 29, 2016 21:14
parsing.js
function() {
var inputVariable = {{Page URL}},
defaultVal = [],
categories = {{OMF Mapping}};
for (var i = 0, len = categories.length; i < len; i++) {
var regex = new RegExp(categories[i].path);
if (regex.test(inputVariable)) {
return categories[i];
}
@jensblond
jensblond / mapping.js
Created September 29, 2016 20:50
mapping.js
function () {
return [
{ path: '/de/firmen/apparate-und-behaelterbau', visibility: true, id: "94401" },
{ path: '/de/firmen/armaturen', visibility: true, id: "89738" },
{ path: '/de/firmen/automatisierungstechnik', visibility: true, id: "87071" },
{ path: '/de/firmen/dichtungen', visibility: true, id: "90322" },
{ path: '/de/firmen/laborgeraete', visibility: true, id: "76541" },
{ path: '/de/firmen/messtechnik', visibility: true, id: "94814" },
{ path: '/de/firmen/pumpen-fuer-die-chemische-industrie', visibility: true, id: "83832" },
{ path: '/de/firmen/ventile', visibility: true, id: "90045" },
@jensblond
jensblond / gist:425238053ad9e54eac3c
Created February 4, 2016 14:56
Pulls all repos in the subdirectories
find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull \;
@jensblond
jensblond / omftag.js
Created November 18, 2015 13:59
GTM Tag for OMF
<script>
var teaser = document.getElementsByClassName('result-company')[1];
if (teaser) {
var categories = {{OMF video json}},
categoryId = {{OMF Category Id}},
categorySlug = getCategory(categories, categoryId).category_slug,
categoryPath = '/de/videos/' + categorySlug + '/',
dataAction = 'click_serp_omfportal_teaser',
dataCategory = 'click',
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>
<font face="helvetica, arial">-- </font>
curl http://icanhazip.com
@jensblond
jensblond / gist:0e8721949085fe7de1ce
Created February 20, 2015 20:15
Find out IP of Appletalk Computers
dns-sd -B _afpovertcp._tcp local
dns-sd -L MyOtherMac _afpovertcp._tcp local
dns-sd -G v4v6 MyOtherMac.local