Skip to content

Instantly share code, notes, and snippets.

View mjuric's full-sized avatar

Mario Juric mjuric

View GitHub Profile
@jboner
jboner / latency.txt
Last active November 17, 2024 11:32
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD

First: git tag the package for release. (please also fill out the git "Release" page, making it an official release and giving you a spot to write notes. Writing release notes as we go makes understanding changes much easier down the road!)

Next, for eups:

  • log into lsst-dev as lsstsw : (without taking along your own ssh github keys!)
  • ssh -a [email protected]
  • source bin/setup.sh
  • rebuild -r sims_tag -r dm_tag lsst_sims lsst_apps (or appropriate DM git tag (12.0.rc1, etc.) and sims git tag (sims_2.2.5, etc): note that these resolve left to right, and any matching tag that is found will be used. Use the git format, not the eups format.). -- note the BUILD ID that comes from the rebuild process.
@ix9
ix9 / afp.conf
Created August 20, 2015 12:57
A working netatalk afp.conf file (it needs the uam list property set)
;
; Netatalk 3.x configuration file
;
[Global]
; Global server settings
log file = /var/log/afpd.log
;log level = default:debug afpdaemon:debug
uam list = uams_dhx.so uams_dhx2.so
@moeyensj
moeyensj / oorbTipsAndTricks.md
Last active July 6, 2020 19:43
Oorb Tips and Tricks

To convert MPCORB.DAT to a oorb format:

oorb --task=mpcorb --mpcorb=MPCORB.DAT --orb-out=MPCORB.orb

To propagate MPCORB.orb to a desired date:

oorb --task=propagation --orb-in=MPCORB.orb --epoch-mjd-utc=59580.173 --orb-out=MPCORB_START_59580.orb

To generate ephemeris from desired date onwards: