Skip to content

Instantly share code, notes, and snippets.

View streeto's full-sized avatar

André Luiz de Amorim streeto

  • UFSC
  • Florianópolis
View GitHub Profile
@Jonny-exe
Jonny-exe / syncthing-setup-exclusively-with-CLI.md
Last active April 5, 2025 12:50
syncthing setup exclusively with CLI

After long searching I did not find a good description of how to set up Syncthing that works exclusively via CLI without using a Web browser on the devices.

This is useful for example on a headless Raspberry Pi without proxying web-traffic through SSH or with port-forwarding limitations. In this example we will want to share the default folder from Machine A with Machine B

Machine A Machine B
@dsberry
dsberry / rotate_wcs.py
Created November 29, 2012 19:29
Script to rotate the WCS associated with a FITS file using pyast
#!/bin/env python
# Rotates a simple 2D FITS image. If <xcen> and <ycen> are specified,
# the output image is the same size as the input image. Otherwise,
# the output image is the smallest that will hold all the rotated input
# data.
# Usage:
# rotate_wcs.py <infile> <outfile> <rotation> [<xcen> <ycen>]
#