Skip to content

Instantly share code, notes, and snippets.

View codingchili's full-sized avatar
🌱
Gardening, not Architecture.

Robin Duda codingchili

🌱
Gardening, not Architecture.
  • Linköping, Sweden
View GitHub Profile
@codingchili
codingchili / console_paste.js
Created April 21, 2022 13:49
Netacad2PDF (requires a _lot_ of memory)
function extract_chapter_links() {
return [...document.querySelectorAll('a.navlink')]
.map(link => {
return {
name: link.querySelector('.navlink_name').innerText,
label: link.querySelector('.navlink_label').innerText,
href: link.href
}
}).filter(link => !link.href.includes('#'));
}
@codingchili
codingchili / threads_report.txt
Created October 17, 2021 08:53
Thread dump CloseableHttpAsyncClientBase calling client#close in response handler.
"pool-2-thread-1" #16 prio=5 os_prio=0 cpu=109.38ms elapsed=10.68s tid=0x00000233e5e4e800 nid=0x3f6c in Object.wait() [0x0000009a61ffe000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(java.base@11.0.1/Native Method)
- waiting on <0x0000000710556c70> (a java.lang.Thread)
at java.lang.Thread.join(java.base@11.0.1/Thread.java:1305)
- waiting to re-lock in wait() <0x0000000710556c70> (a java.lang.Thread)
at java.lang.Thread.join(java.base@11.0.1/Thread.java:1379)
at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.close(CloseableHttpAsyncClientBase.java:104)
at org.elasticsearch.client.RestClient.close(RestClient.java:531)
at org.elasticsearch.client.RestHighLevelClient$$Lambda$111/0x0000000800202440.accept(Unknown Source)
@codingchili
codingchili / custom-element-lit.js
Created October 5, 2020 11:47
custom element demo with lit-html
import {render, html} from 'lit-html.js';
import {Styles} from 'styles.js';
import '/component/rabbit-button.js'
import '/component/rabbit-input.js'
import '/component/search-grid.js'
/**
* Search field is a custom element that includes a
* button and a text field. The component consumes
* a search string and produces a list of search hits.
@codingchili
codingchili / custom-element.js
Created October 5, 2020 11:37
Example of a custom element using only platform standards.
import {Styles} from 'styles.js';
import '/component/rabbit-button.js'
import '/component/rabbit-input.js'
/**
* Search field is a custom element that includes a
* button and a text field. The component consumes
* a search string and produces a list of search hits.
*
* The search hits are fed into the slotted component.
@codingchili
codingchili / penetration-testing-note
Created April 9, 2020 09:45
Penetration testing disclaimer
Subject: Vulnerability Assessment and Penetration Testing Authorization
Date: [insert todays date]
The purpose of this memo is to grant authorization to specific members of the information security team to conduct vulnerability assessments and penetration tests against this organization's assets. To that end, this file attests to the following:
1) Robin Duda, codingchili@github.com have permission to test the organization's website to find vulnerabilities. This permission is granted from [insert start date] until [insert end date].
2) [Insert name of approver] has the authority to grant this permission for testing the organization's Information Technology assets.
[Insert additional permissions and/or restrictions if any.]