Skip to content

Instantly share code, notes, and snippets.

View mateodelnorte's full-sized avatar

Matt Walters mateodelnorte

View GitHub Profile
@zulhfreelancer
zulhfreelancer / redirect.md
Last active October 2, 2018 19:14
How to detect the device that user is using in InstaPage and redirect them to different URL after they fill-in the form?

How to detect the device that user is using in InstaPage and redirect them to different URL after they fill-in the form?

Example:

Settings > HTML/CSS > Header

<script src="//cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.3.6/mobile-detect.min.js"></script>
@paoloantinori
paoloantinori / keycloak.sh
Created January 26, 2016 15:59
Keycloak Admin API Rest Example
#!/bin/bash
export TKN=$(curl -X POST 'http://localhost:8080/auth/realms/master/protocol/openid-connect/token' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin" \
-d 'password=admin' \
-d 'grant_type=password' \
-d 'client_id=admin-cli' | jq -r '.access_token')
curl -X GET 'http://localhost:8080/auth/admin/realms' \