Skip to content

Instantly share code, notes, and snippets.

View thirtified's full-sized avatar

Julian Dreissig thirtified

  • Berlin, Germany
  • 00:20 (UTC +02:00)
View GitHub Profile
@thirtified
thirtified / pre-request-jwt.js
Created November 29, 2018 16:34 — forked from corbanb/pre-request-jwt.js
JWT tokenize - Postman Pre-Request Script
function base64url(source) {
// Encode in classical base64
encodedSource = CryptoJS.enc.Base64.stringify(source);
// Remove padding equal characters
encodedSource = encodedSource.replace(/=+$/, '');
// Replace characters according to base64url specifications
encodedSource = encodedSource.replace(/\+/g, '-');
encodedSource = encodedSource.replace(/\//g, '_');
@thirtified
thirtified / upload.rb
Last active December 19, 2015 21:38 — forked from ashtom/upload.rb
require 'rubygems'
require 'rest_client'
# Replace with your values
APP_ID = "APP_ID" # e.g 7eae8eb55e8b6d5d1cbe603ed40ebfda
APP_NAME = "EXECUTABLE_NAME" # e.g. myapp
BUNDLE_ID = "BUNDLE_IDENTIFIER" # e.g. com.company.myapp
BUNDLE_VERSION = "BUNDLE_VERSION" # e.g. 112
APP_VERSION = "APP_VERSION" # e.g. 1.1
@thirtified
thirtified / xcode-git-version.sh
Created July 16, 2012 09:14 — forked from jpwatts/xcode-git-version.sh
This Xcode 4 build phase script automatically sets the version and short version string of an application bundle based on information from the containing Git repository.
#!/bin/bash
# This script automatically sets the version and short version string of
# an Xcode project from the Git repository containing the project.
#
# - Uses version from latest git tag for CFBundleShortVersionString
# (e.g. 1.2.3 from "v1.2.3")
# - Uses combined string <commit number>.<short commit hash> for CFBundleVersion
# (e.g. 18.9d75e30)
#