Skip to content

Instantly share code, notes, and snippets.

View iuricmp's full-sized avatar
:shipit:

Iuri iuricmp

:shipit:
View GitHub Profile
import { useState } from "react";
import logo from "./assets/images/logo-universal.png";
import "./App.css";
import { useGno } from "./api/use-gno";
function App() {
const [resultText, setResultText] = useState(
"Start GnoNative Kit on Wails to see result"
);
@iuricmp
iuricmp / keycloak-docker-builder.sh
Created March 3, 2022 23:15
Keyloak builder with docker
#/bin/zsh
VERSION=14.0.0 # set version here
cd /tmp
git clone git@github.com:keycloak/keycloak-containers.git
cd keycloak-containers/server
git checkout $VERSION
docker build -t "jboss/keycloak:${VERSION}" .
docker build -t "quay.io/keycloak/keycloak:${VERSION}" .
@iuricmp
iuricmp / postman-pre-request.js
Created May 3, 2021 13:54
Postman OAuth2 - Basic Authentication
const clientId = pm.variables.get('clientId');
const oauthUser = pm.variables.get('oauthUser'); // user name or email
const oauthPassword = pm.variables.get('oauthPassword'); // user password
const scope = pm.variables.get('scope'); // "profile"
const accessTokenURL = pm.variables.get('accessTokenURL'); // token url
const getTokenRequest = {
method: 'POST',
url: accessTokenURL,
@iuricmp
iuricmp / postman.oauth2.client.credentials.js
Last active May 3, 2021 13:55
Postman OAuth2 script - client_credentials
var clientId = pm.variables.get("clientId");
var clientSecret = pm.variables.get("clientSecret");
var scope = pm.variables.get("scope");
var accessTokenURL = pm.variables.get("accessTokenURL");
pm.sendRequest({
url: accessTokenURL,
method: "POST",
header: [
'Content-Type:application/x-www-form-urlencoded'
@iuricmp
iuricmp / copy_appropriate_google-service-info-plist.sh
Created February 19, 2020 14:14 — forked from tylermilner/copy_appropriate_google-service-info-plist.sh
A shell script to selectively copy your GoogleService-Info.plist into your app bundle based on the current build configuration.
# Name of the resource we're selectively copying
GOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist
# Get references to dev and prod versions of the GoogleService-Info.plist
# NOTE: These should only live on the file system and should NOT be part of the target (since we'll be adding them to the target manually)
GOOGLESERVICE_INFO_DEV=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Dev/${GOOGLESERVICE_INFO_PLIST}
GOOGLESERVICE_INFO_PROD=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Prod/${GOOGLESERVICE_INFO_PLIST}
# Make sure the dev version of GoogleService-Info.plist exists
echo "Looking for ${GOOGLESERVICE_INFO_PLIST} in ${GOOGLESERVICE_INFO_DEV}"

Keybase proof

I hereby claim:

  • I am iuricmp on github.
  • I am iuricmp (https://keybase.io/iuricmp) on keybase.
  • I have a public key ASDmebvBXZUgblpsHdqOsKlDhjalClFtvzs8YAmOVhDNiwo

To claim this, I am signing this object:

@iuricmp
iuricmp / git-squash
Created June 16, 2017 13:27 — forked from tuxfight3r/git-squash
git squash multiple commits with rebase
git rebase --interactive HEAD~2
# we are going to squash c into b
pick b76d157 b
pick a931ac7 c
# squash c into b
pick b76d157 b
s a931ac7 c
@iuricmp
iuricmp / docker
Last active January 12, 2021 23:21
Comandos básicos de docker
# Docker
```
sudo service docker stop
sudo service docker start
```
# Docker
docker build -t nginx/top . #tagging