Skip to content

Instantly share code, notes, and snippets.

@aimtiaz11
aimtiaz11 / readme.md
Last active March 7, 2024 04:58 — forked from thomasdarimont/readme.md
Example for decoding a JWT Payload with your Shell (bash, zsh...)

Decoding a JWT Payload with your Shell (bash, zsh...)

Add this to your .profile, .bashrc, .zshrc...

decode_base64_url() {
  local len=$((${#1} % 4))
  local result="$1"
  if [ $len -eq 2 ]; then result="$1"'=='
  elif [ $len -eq 3 ]; then result="$1"'=' 
 fi
@aimtiaz11
aimtiaz11 / GenerateRequestTestDriver.java
Created February 16, 2018 03:17 — forked from rayedchan/GenerateRequestTestDriver.java
Generate requests using Oracle Identity Manager API
package com.blogspot.oraclestack.testdriver;
import com.blogspot.oraclestack.services.OracleIdentityManagerClient;
import com.blogspot.oraclestack.utilities.GenerateRequestUtilities;
import java.util.HashMap;
import oracle.iam.platform.OIMClient;
import oracle.iam.vo.OperationResult;
/**
* Test Driver for GenerateRequestUtilities class
@aimtiaz11
aimtiaz11 / rest-api-php.md
Created October 9, 2017 06:08
REST API Resources

REST, RESTful, REST-like API Resources

Paper

Blog posts

@aimtiaz11
aimtiaz11 / slack_delete.py
Created September 20, 2017 09:59 — forked from jackcarter/slack_delete.py
Delete Slack files older than 30 days. Rewrite of https://gist.github.com/jamescmartinez/909401b19c0f779fc9c1
import requests
import time
import json
token = ''
#Delete files older than this:
ts_to = int(time.time()) - 30 * 24 * 60 * 60
def list_files():
@aimtiaz11
aimtiaz11 / CodeMirror-github.sass
Last active April 20, 2017 10:13 — forked from k2052/CodeMirror-github.sass
Github Like Codemirror theme
.CodeMirror.cm-s-github
.CodeMirror-activeline-background
background: rgba(255, 255, 255, 0.031)
.CodeMirror-gutters
background: #f0f0f0x
border-right: 1px solid #4D4D4D
box-shadow: 0 10px 20px black
.CodeMirror-linenumber