Skip to content

Instantly share code, notes, and snippets.

View yfarjoun's full-sized avatar

Yossi Farjoun yfarjoun

View GitHub Profile
@clintval
clintval / snakegraph.sh
Last active October 20, 2023 04:28
Render Snakemake DAGs in your terminal
# Convert DOT graph data into a terminal-ready visualization
function idot {
dot \
-Tpng -Gdpi=300 \
-Efontsize=18 -Efontname=sans -Nfontname=sans \
-Gbgcolor=black -Gcolor=white -Ecolor=white -Efontcolor=white -Ncolor=white -Nfontcolor=white \
| convert -trim -bordercolor black -border 20 -transparent black -resize "60%" - - \
| imgcat # Or swap with your favorite terminal image viewer
}
@kibotu
kibotu / code.gs
Created July 16, 2018 15:04
Google Document Script for insert at cursor: current date and last updated date
/* opened. Use it to add custom menus to Google Docs that allow the user to run
* custom scripts. For more information, please consult the following two
* resources.
*
* Extending Google Docs developer guide:
* https://developers.google.com/apps-script/guides/docs
*
* Document service reference documentation:
* https://developers.google.com/apps-script/reference/document/
*/
@simonw
simonw / wget.md
Created December 9, 2016 06:38
Recursive wget ignoring robots
$ wget -e robots=off -r -np 'http://example.com/folder/'
  • -e robots=off causes it to ignore robots.txt for that domain
  • -r makes it recursive
  • -np = no parents, so it doesn't follow links up to the parent folder