Skip to content

Instantly share code, notes, and snippets.

View arjvik's full-sized avatar
👌

Arjun Vikram arjvik

👌
View GitHub Profile
@petebankhead
petebankhead / QuPath-Transform and transform objects.groovy
Created July 21, 2020 08:33
Script to transfer QuPath objects from one image to another, applying an AffineTransform to any ROIs
/**
* Script to transfer QuPath objects from one image to another, applying an AffineTransform to any ROIs.
*
* This is a based upon the script I posted on the epic forum thread https://forum.image.sc/t/interactive-image-alignment/23745/9?u=petebankhead
* It has been updated for QuPath v0.2.0 (and made quite a lot shorter along the way).
*
* @author Pete Bankhead
*/
// SET ME! Define transformation matrix
@rkalkani
rkalkani / get-public-ip.md
Last active November 20, 2025 20:13
Get public IP address used by your machine to connect to the internet

Get Public IP

DNS

Google

dig o-o.myaddr.l.google.com txt @ns1.google.com +short
# OR
nslookup -type=txt o-o.myaddr.l.google.com ns1.google.com
@Z-H-Sun
Z-H-Sun / README.md
Last active July 15, 2025 05:00
A brief intro of MIT satori cluster
#!/usr/bin/env bash
# Author: Aeghn
# A script for buffer switching between emacs buffers, firefox tabs and other windows.
# dependences: jq i3 qutebrowser emacs
# set -eo pipefail
# QUTEBROWSER_SESSION_FILE="/tmp/qutebrowser_buffers_zsbd"

How to setup a practically free CDN using Backblaze B2 and Cloudflare

⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,

@fnky
fnky / ANSI.md
Last active January 10, 2026 22:42
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@petebankhead
petebankhead / QuPath-Create rectangle annotation.groovy
Created March 9, 2018 15:52
Create a rectangle annotation with a specified size
/**
* Create a region annotation with a fixed size in QuPath, based on the current viewer location.
*
* @author Pete Bankhead
*/
import qupath.lib.objects.PathAnnotationObject
import qupath.lib.objects.classes.PathClassFactory
import qupath.lib.roi.RectangleROI
import qupath.lib.scripting.QPEx
@dikiaap
dikiaap / git-io-custom-url.md
Last active November 26, 2025 10:21
git.io custom URL

Update: As of 11 January 2022, git.io no longer accepts new URLs.

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
Scripts mostly taken from Pete, and also from the forums. For easy access and reference.
TOC
Alignment: Several scripts to assist in alignment as of M9. Store scripts make files using the Affine transformation while
TransferObjects uses the stored file in the Affine folder with the current image name to move objects into it.
The final result is that one set of files can be generated for the transforms, and those transforms can be accessed to move objects
back and forth between the images.
Change annotations into Cell objects.groovy - Converts annotations into PathCellObjects, which allows certian functions to work within
@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active January 10, 2026 12:08
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.