Skip to content

Instantly share code, notes, and snippets.

View tobiasstrebitzer's full-sized avatar

Tobias Strebitzer tobiasstrebitzer

View GitHub Profile
{
"annual": {
"metadata": {
"ts": 1636958990227,
"version": {
"data": "1.1",
"modules": {
"@solargis/prospect-service": "9.8.0"
}
},
[{
// Configure Stripe Target
"type": "stripe",
"options": {
// Your Stripe Publishable Key
"publishableKey": "pk_test_...",
// URL Called to prepare the Stripe Customer
"setupUrl": "https://api.magloft.dev/reader/universal-form/setup"
}
}, {
@tobiasstrebitzer
tobiasstrebitzer / universal-form.trial.html
Last active May 18, 2021 08:56
Universal Form - Trial Example
<universal-form mode="dark">
<universal-form-input name="name" label="Name" type="text" placeholder="Jane" required></universal-form-input>
<universal-form-input name="email" label="Email" type="email" placeholder="[email protected]" required></universal-form-input>
<universal-form-phone name="phone" label="Phone" placeholder="+1 555 555 1234"></universal-form-phone>
<universal-form-credit-card name="card" label="Card" required></universal-form-credit-card>
<universal-form-input name="coupon" label="Coupon" placeholder="X2C74N3A" pattern="^[a-zA-Z0-9-]{8}$" pattern-error="Invalid coupon code"></universal-form-input>
<universal-form-submit label="Start Trial" thankYouText="Thank You!"></universal-form-submit>
<universal-form-target-stripe url="https://api.domain.com/register" fields="email name phone" publishable-key="pk_live_xxxxxxxxxxxxxxxxxx"></universal-form-target-stripe>
<universal-form-target-rest-api url="https://api.domain.com/trial" fields="email coupon"></universal-form-target-rest-
@tobiasstrebitzer
tobiasstrebitzer / universal-form.optin.html
Last active May 18, 2021 08:55
Universal Form Example
<universal-form mode="light">
<universal-form-input name="name" label="Name" type="text" placeholder="Jane" required></universal-form-input>
<universal-form-input name="email" label="Email" type="email" placeholder="[email protected]" required></universal-form-input>
<universal-form-phone name="phone" label="Phone" placeholder="+1 555 555 1234"></universal-form-phone>
<universal-form-submit label="Start Trial" thank-you-text="Thanks for subscibing!" redirect-url="https://www.magloft.com/"></universal-form-submit>
<universal-form-target-rest-api url="https://api.domain.com/optin" fields="name email phone"></universal-form-target-rest-api>
<universal-form-target-gtm event="submit-newsletter-form" fields="email name phone" conversion-value="12.50"></universal-form-target-gtm>
<universal-form-target-intercom app-id="xxxxxxxx" event="optin" properties="product=universal-form optin=demo" fields="phone"></universal-form-target-intercom>
</universal-form>
@tobiasstrebitzer
tobiasstrebitzer / prysm-beacon-chain.service
Last active July 19, 2020 03:01
Prsym Systemd Services
# /etc/systemd/system/prysm-beacon-chain.service
[Unit]
Description=Prysm Beacon Chain
After=syslog.target network.target
[Service]
Type=simple
User={USERNAME}
Group={GROUP}
@tobiasstrebitzer
tobiasstrebitzer / QModManager.MacInstall.sh
Created July 6, 2020 08:35
Install latest QModManager on Mac OSX
#!/bin/bash
# Install Wine & XQuartz
brew cask install xquartz
brew cask install wine-stable
# Navigate to Subnautica Directory
cd "$HOME/Library/Application Support/Steam/steamapps/common/Subnautica/Subnautica.app/Contents/Resources/Data/Managed/"
# Download and extract QModManager
@tobiasstrebitzer
tobiasstrebitzer / designer.html
Last active November 23, 2015 01:38
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
@tobiasstrebitzer
tobiasstrebitzer / bower.json
Created June 30, 2015 03:24
Polymer 1.0 Global Variables Behavior
{
"name": "polymer-globals-behavior",
"dependencies": {
"polymer": "Polymer/polymer#~1.0.5"
}
}
@tobiasstrebitzer
tobiasstrebitzer / osxdns.sh
Created September 27, 2012 08:20
Set up a local DNS server to catch all requests to a specific tld to your local machine (osx lion)
#! /bin/bash
# USAGE: sudo ./osxdns.sh tld
# Templates
namedconf='include "/etc/rndc.key";
controls {
inet 127.0.0.1 port 54 allow {any;}
keys { "rndc-key"; };
};
@tobiasstrebitzer
tobiasstrebitzer / workstation.scpt
Created January 31, 2011 15:33
This Applescript lets you select from your Transmit v4 SFTP Favourites and opens Transmit, Textmate and a (ssh- connecting) Terminal.
tell application "Finder"
set homeFolder to (path to home folder as text)
set cleanupAtStartupFolder to homeFolder & "Library:Caches:Cleanup At Startup:" as alias
if not (exists folder "Transmit" of cleanupAtStartupFolder) then
make new folder at cleanupAtStartupFolder with properties {name:"Transmit"}
end if
end tell
set transmitPath to homeFolder & "Library:Caches:Metadata:Transmit:" as alias