A Pen by Sebastian Rothbucher on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "91450f41b1eae9c6", | |
"type": "inject", | |
"z": "426169ba36026cef", | |
"name": "on", | |
"props": [ | |
{ | |
"p": "payload" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {ApolloServer} from '@apollo/server'; | |
import { ApolloServerPluginDrainHttpServer } from '@apollo/server/plugin/drainHttpServer'; | |
import {expressMiddleware} from '@apollo/server/express4'; | |
import {makeExecutableSchema} from '@graphql-tools/schema'; | |
import express from 'express'; | |
import cors from 'cors'; | |
import morgan from 'morgan'; | |
import fs from 'fs'; | |
import {createServer} from 'http'; | |
import { WebSocketServer } from 'ws'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
/opt/homebrew/bin/python3 /Users/s.rothbucher/tools/ocr/main.py | pbcopy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function assumeRoleAndExport { | |
local STS_RES=$(aws sts assume-role --role-arn $1 --role-session-name "whatever-session-$(uuidgen)") | |
export AWS_ACCESS_KEY_ID=$(echo $STS_RES | jq -r .Credentials.AccessKeyId) | |
export AWS_SECRET_ACCESS_KEY=$(echo $STS_RES | jq -r .Credentials.SecretAccessKey) | |
export AWS_SESSION_TOKEN=$(echo $STS_RES | jq -r .Credentials.SessionToken) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "426169ba36026cef", | |
"type": "tab", | |
"label": "Flow 1", | |
"disabled": false, | |
"info": "", | |
"env": [] | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="position: sticky; top: 0; background: white; ">Page <span id="page"></span> Timing: <span id="timing"></span></div> | |
<div id="canvases"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have the prod01 skates already - now can you get me more rolls for that? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ItemsResponse { | |
listid: ID! | |
items: [ListItem] | |
} | |
type ListItem { | |
listid: ID! | |
ts_uuid: ID! | |
title: String! | |
done: Boolean! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
@Autowired | |
private JwtAuthFilter jwtAuthFilter; | |
@Bean | |
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { | |
http | |
.addFilterBefore(jwtAuthFilter, UsernamePasswordAuthenticationFilter.class) | |
// ... | |
return http.build(); |
NewerOlder