Skip to content

Instantly share code, notes, and snippets.

Avatar

Kamil Domański kdomanski

View GitHub Profile
View azure.md

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.
View gist:aa6ba8fa53356ef4b0dffc7b2b3df78e
/etc/udev/rules.d/
/etc/apt/sources.list.d/
ufw rules
fstab
/var/spool/cron/crontabs/ (in dotfiles)
View known_hosts
github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
View stop_goroutines.go
package main
import (
"fmt"
"sync"
"time"
)
func main() {
done := make(chan struct{})
View rwmutex_priority.go
package main
import (
"fmt"
"sync"
"time"
)
func main() {
var mut sync.RWMutex