Skip to content

Instantly share code, notes, and snippets.

View btbytes's full-sized avatar

Pradeep Gowda btbytes

View GitHub Profile
@btbytes
btbytes / twittermute.txt
Created January 24, 2020 21:53 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@btbytes
btbytes / probability-library.md
Last active January 14, 2026 09:43
Probability Library Recommendations

Dr Harry Crane asked for recommendations for a "Probability Library".

These are some of the recommendations:

Harry Crane:

  1. Technical: An Introduction to Probability Theory and Its Applications, Vol. 1, 3rd Edition
  2. Classic: Foundations of the Theory of Probability: Second English Edition (Dover Books on Mathematics) by Kolmogorov
  3. Real World: Antifragile. NNTaleb recommended Statistical Consequences of Fat Tails (book in the works) instead over Antifragile.
  4. Application: Beyond Counting : Exploiting Casino Games from Blackjack to Video Poker by James Grosjean.
@btbytes
btbytes / reference-markdown-metadata-from-jinja-template.py
Created August 29, 2019 22:10 — forked from glombard/reference-markdown-metadata-from-jinja-template.py
How to use Markdown as a filter in a Jinja2 template, and then extract the Markdown Meta property directly from the template. Assuming you want to use the Meta-data value before rendering the converted Markdown content (e.g. in the html head), the trick is to render the markdown first, save it to a variable (html_content in this example) using a…
from pprint import pprint
import jinja2
import markdown
HTML_TEMPLATE = """{% macro get_html() %}
{{ content | markdown }}
{% endmacro %}
{% set html_content = get_html() %}
Title from Markdown meta-data: {{ get_title() }}
@btbytes
btbytes / clojure.md
Created February 26, 2019 13:11
Clojure
  • use lein try plugin to quickly install libraries.
  • use slamhound plugin to fix imports.
  • use ~/.lein/profiles to setup plugins etc. you can even define different profiles.
@btbytes
btbytes / cl-pitfalls
Created January 4, 2019 12:04
CL pitfalls
From comp.lang.lisp Thu Oct 26 16:06:28 1995
Newsgroups: comp.lang.lisp
Path: edcogsci!jeff
From: jeff@cogsci.ed.ac.uk (Jeff Dalton)
Subject: Revised Pitfall list
Message-ID: <DH17Jy.GrH@cogsci.ed.ac.uk>
Organization: Centre for Cognitive Science, Edinburgh, UK
Date: Thu, 26 Oct 1995 01:16:43 GMT
Lines: 466
@btbytes
btbytes / openssl-1.1.txt
Created December 27, 2018 02:29
openssl 1.1 on homebrew
brew install openssl@1.1
==> Downloading https://homebrew.bintray.com/bottles/openssl@1.1-1.1.1a.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl@1.1-1.1.1a.sierra.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl@1.1/certs
and run
@btbytes
btbytes / README.md
Last active December 20, 2018 20:39
Virtualbox alternatives for the Vagrant users

Virtualbox alternatives for the Vagrant users

Virtualbox is not your only option if you want to use Vagrant. Vagrant has decent plugins for qemu (vagrant-libvirt) and lxd (vagrant-lxd).

Make sure you get your KVM, Qemu and libvirt setup right and run:

$ brew install libvirt
$ brew services start libvirt # to restart service at login
@btbytes
btbytes / dotnet-in-prod.md
Last active May 27, 2020 13:22
Dotnet in prod

Via https://news.ycombinator.com/item?id=18675776:

Using .NET Core on production here.

but delivering solutions on time and with minimum maintenance requirements afterward is just easier in python or JAVA

I would agree if you would replace Python/Java with Node, but with these languages I don't see it.

on time and with minimum maintenance requirements afterward

@btbytes
btbytes / rich-already-answered-that.md
Created October 7, 2018 23:42 — forked from reborg/rich-already-answered-that.md
Clojure Design Decisions

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link below in the summary jumps at the answer on this page.
  • The link on the question itself points back at the original post.

Summary

@btbytes
btbytes / wclwn.md
Created October 2, 2018 10:50 — forked from zacharycarter/wclwn.md
Binding to C Libraries with Nim