Skip to content

Instantly share code, notes, and snippets.

View lebeker's full-sized avatar
🐢
doing... do...

leBekker lebeker

🐢
doing... do...
  • Company
  • Bali
View GitHub Profile
@lebeker
lebeker / VK album download
Created March 11, 2022 12:01
Allows to download all photos with dates added as a zip file
// open first photo in a album
// open DevTools console
// copy/paste axios, js-zip raw code into console, and execute
// (axios raw: https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.2/axios.min.js)
// (js-zip raw: https://raw.githubusercontent.com/Stuk/jszip/master/dist/jszip.min.js)
// copy/paste and execute code below
// after use downloadPhotos(<count_photos_in_a_album>)
//
// works as of 2022-03-12; maybe will wrap it up later into chrome-plugin pr vk-app
@lebeker
lebeker / gist:51a64f8cc5b84aeed178abf87c908896
Created January 31, 2022 13:53
dev.botframework.com save issue (MsaAppType "0")
For anyone reading this, the issue is that the platform is trying to set MsaAppType to "0" instead of null.
You can just recreate in Postman the same request your browser is making, just make sure to update the payload with the right value for MsaAppType
Steps:
Open network tab in the browser
Watch the request fail
Right-click -> copy request as cURL
Open Postman and click new request -> import -> raw text and paste the request
Edit the request body to remove the MsaAppType key
@lebeker
lebeker / README.md
Last active July 8, 2022 06:34 — forked from jamesramsay/README.md
Gmail: delete old emails

Gmail: delete old emails

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at https://script.google.com
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
  • LABEL_TO_DELETE: the label that should be have old messages deleted
@lebeker
lebeker / docker-cleanup-resources.md
Last active February 8, 2018 11:01 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm