Skip to content

Instantly share code, notes, and snippets.

View mdu42's full-sized avatar

mdu42

View GitHub Profile
@khadirbaaoua
khadirbaaoua / Podfile
Created May 18, 2020 11:31
Patch to okta-react-native's iOS pod (OktaOidc) so that logout can be functional when logging out from an Okta instance that uses a delegation from another Okta instance
# ....
# declare the usual stuff: platform, target, pods ...
# ....
post_install do |installer|
# DISCLAIMER : THIS IS A WORKAROUND TO FIX AN OKTA LOGOUT ISSUE WHEN OKTA IS USING
# A DELEGATION TO ANOTHER OKTA INSTANCE
file_name = "./Pods/OktaOidc/Okta/OktaOidc/OIDAuthorizationService+EndSession.m"
puts "### /!\\ OKTA LOGOUT DIRTY FIX /!\\ ###"
puts "replacing matchesRedirectonURL function in #{file_name}"
text = File.read(file_name)
@jeckel
jeckel / APIDays2018-Presentations.md
Last active December 12, 2018 14:39
APIDays 2018 Presentations and Resources

Twitter LinkedIn

APIDays Logo

APIDays 2018 - Presentations and Resources

Here is a collection of links to presentations and other resources shared during the last #APIDays2018 in Paris.

If you find some mistakes, or have any links to add to this list, feel free to add some comments, or contact me on Twitter or LinkedIn

@gabeweaver
gabeweaver / react-cognito-auth-js.js
Last active December 18, 2024 13:33
React + Cognito User Pools + Cognito Identity JS Example
/*
This example was built using standard create-react-app out of the box with no modifications or ejections
to the underlying scripts.
In this example, i'm using Google as a social provider configured within the Cognito User Pool.
Each step also represents a file, so you can see how I've chosen to organize stuff...you can do it however
you'd like so long as you follow the basic flow (which may or may not be the official way....but its what I found that works.
The docs are pretty horrible)
@0xjac
0xjac / private_fork.md
Last active October 25, 2025 17:58
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@evanwill
evanwill / gitBash_windows.md
Last active September 14, 2025 10:43
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so