Skip to content

Instantly share code, notes, and snippets.

View kdomanski's full-sized avatar

Kamil Domański kdomanski

  • Hamburg, Germany
View GitHub Profile
@kdomanski
kdomanski / gist:63601f20190f966aff9d065247be7278
Last active May 9, 2023 11:20
EasyList with fixed Aliexpress search results
This file has been truncated, but you can view the full file.
[Adblock Plus 2.0]
! Checksum: B6aWk2NJNUxHWEPDiAzxkw
! Version: 202305091040
! Title: EasyList
! Last modified: 09 May 2023 10:40 UTC
! Expires: 1 days (update frequency)
! Homepage: https://easylist.to/
! Licence: https://easylist.to/pages/licence.html
!
! Please report any unblocked adverts or problems
const {createYamlProperty} = this.app.plugins.plugins["metaedit"].api;
const {createButton} = app.plugins.plugins["buttons"];

const buttonMaker = (pn, fpath) => {
    const btn = this.container.createEl('button', {"text": "Done!"});
    const file = this.app.vault.getAbstractFileByPath(fpath)
    btn.addEventListener('click', async (evt) => {    

 evt.preventDefault();
@kdomanski
kdomanski / create-kube-user.sh
Last active November 7, 2021 05:10 — forked from henning/create-kube-user.sh
create k8s user, certificate, permissions and client config
#!/bin/bash
CLUSTERNAME=mycluster.mydomain
NAMESPACE=default
USERNAME=myclusteruser
GROUPNAME=mygroup
openssl genrsa -out ${USERNAME}.key 2048
CSR_FILE=$USERNAME.csr
@kdomanski
kdomanski / azure.md
Created May 15, 2020 10:23
Azure issues

Azure issues

  • Azure is generally slow, both in terms of the API and the machines themselves.
    • The cheaper machines with one CPU actually provide a very small percentage of an actual CPU's computing time.
    • It takes minutes to create a VM and all of its resources.
      • Same with deleting it.
      • Deletion of connected resource must be conducted in specific order, or the resources must be disconnected first. e.g. cannot delete a NIC while it is assigned to a VM.
    • VMs seem to be created one by one, even if the calls to create them were made in parallel.
  • No sensible API lifecycle management. They just cut off a new version with a timestamp in module path, resulting in many, many versions to choose from.
  • This results in so much code that the Go lead developer comes over and scolds them: Azure/azure-sdk-for-go#1969
package main
import (
"fmt"
"sync"
"time"
)
func main() {
done := make(chan struct{})
package main
import (
"fmt"
"sync"
"time"
)
func main() {
var mut sync.RWMutex