Skip to content

Instantly share code, notes, and snippets.

View sebastianrothbucher's full-sized avatar

Sebastian Rothbucher sebastianrothbucher

View GitHub Profile
@sebastianrothbucher
sebastianrothbucher / test-policy.json
Created April 9, 2024 09:32
IoTcore simple policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iot:Publish",
"iot:Receive",
"iot:PublishRetain"
],
@sebastianrothbucher
sebastianrothbucher / index.html
Created March 31, 2024 18:59
pdf.js cont scroll
<div style="position: sticky; top: 0; background: white; ">Page <span id="page"></span> Timing: <span id="timing"></span></div>
<div id="canvases"></div>
@sebastianrothbucher
sebastianrothbucher / README.md
Created March 16, 2019 16:27
Vuejs guide as ebook (epub / Kindle)

This is how you can conver the vuejs guide to a .ePub / Kindle (.mobi) file to read in an eReader (or eReader app):

  • Make sure you have Pandoc available (on a Mac, it can be installed by brew install pandoc via Homebrew)
  • Checkout or download master from the Vue docs repo [https://github.com/vuejs/vuejs.org]
  • go to src/v2/guide
  • run the following commands in a shell (builds one markdown in order of order attr in each file):
echo '' > toc
for i in *.md
do 
I have the prod01 skates already - now can you get me more rolls for that?
@sebastianrothbucher
sebastianrothbucher / 01-schema.graphqls
Created November 12, 2023 11:09
Appsync dynamodb JS
type ItemsResponse {
listid: ID!
items: [ListItem]
}
type ListItem {
listid: ID!
ts_uuid: ID!
title: String!
done: Boolean!
@sebastianrothbucher
sebastianrothbucher / Application.java
Last active November 11, 2023 18:41
JAMstack with Keycloak and Boot
// ...
@Autowired
private JwtAuthFilter jwtAuthFilter;
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.addFilterBefore(jwtAuthFilter, UsernamePasswordAuthenticationFilter.class)
// ...
return http.build();
@sebastianrothbucher
sebastianrothbucher / fix.sh
Created November 8, 2023 07:47
Fix delta-rs
find . -name '00000*.json' | xargs gsed -i 's/"partitionBy":\[\]/"partitionBy":"\[\]"/g'
@sebastianrothbucher
sebastianrothbucher / fetch-override.js
Last active November 11, 2023 16:40
Track fetch API for more stable tests
const __legacyFetch = window.fetch;
let __openFetchPromises = 0;
let __waitForFetchPromise = Promise.resolve();
let __waitForFetchResolve = null;
// need a function to instrument promise-ified methods from fetch down
function __instrumentPromise(legacyThis, legacyFct, legacyFctName) {
return function() {
if (__openFetchPromises === 0) {
__waitForFetchPromise = new Promise(resolve => __waitForFetchResolve = resolve);
<div class="cardframe">
<div class="card front">
<div class="corner"></div>
<div class="cornertwo"></div>
</div>
<div class="card back" style="transform: scaleX(-1)">
<div class="corner"></div>
<div class="cornertwo"></div>
</div>
<div id="fly" class="card">