Skip to content

Instantly share code, notes, and snippets.

View kidpollo's full-sized avatar
💁‍♂️
Potato farming

Paco Viramontes kidpollo

💁‍♂️
Potato farming
  • San Francisco, CA
View GitHub Profile
@sheldonhull
sheldonhull / README.md
Last active July 17, 2022 00:36
[using nix for tooling inside docker] Test case of using nix for replacing custom steps in a dockerfile for dev tooling #nix #codespaces #help

Using Nix CLI

FROM mcr.microsoft.com/vscode/devcontainers/universal:1-${VARIANT} as BASE

RUN sh <(curl -L https://nixos.org/nix/install) --no-daemon
RUN mkdir -p /home/codespace/.config/nixpkgs && echo '{ allowUnfree = true; }' >> /home/codespace/.config/nixpkgs/config.nix
RUN echo '. /home/codespace/.nix-profile/etc/profile.d/nix.sh' >> /home/codespace/.bashrc

# Install git
(ns coinstar
(:import [java.time LocalDate]))
(def working? (constantly false))
(defn go
"Provided a `who` and `when`, returns the state of
a coinstar `when` the `who` goes to it.
Example:
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export KAFKA_URL='kafka.service.consul:9092'
export ZOOKEEPER_URL='zookeeper.service.consul:2181'
export SCHEMA_REGISTRY_URL='http://schema-registry.localservice'
export FC_CONNECT_URL='http://workers-fc-connect.service.consul'
@sahilsk
sahilsk / kafka-cheat-sheet.md
Last active November 6, 2024 10:03 — forked from filipefigcorreia/kafka-cheat-sheet.md
Apache Kafka Cheat Sheet

Kafka Cheat Sheet

Display Topic Information

$ kafka-topics.sh --describe --zookeeper localhost:2181 --topic beacon
Topic:beacon	PartitionCount:6	ReplicationFactor:1	Configs:
	Topic: beacon	Partition: 0	Leader: 1	Replicas: 1	Isr: 1
	Topic: beacon	Partition: 1	Leader: 1	Replicas: 1	Isr: 1
@reborg
reborg / rich-already-answered-that.md
Last active September 25, 2024 17:06
A curated collection of answers that Rich gave throughout the history of Clojure

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 in the table of content jumps at the copy of the answer on this page.
  • The link on the answer itself points back at the original post.

Table of Content

@kidpollo
kidpollo / bootstrap.sh
Last active July 11, 2022 02:44
osx bootstrap
# Install iterm 2 https://www.iterm2.com/
# Install 1password
#install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/paks/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# packages
brew install git git-crypt gpg autojump kube-ps1 stern asdf rlwrap rg
@jasongilman
jasongilman / atom_clojure_setup.md
Last active May 11, 2024 02:25
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.

@noprompt
noprompt / saturn.clj
Last active March 9, 2016 00:01
Somewhere between multimethods and pattern matching lies Saturn.
(ns saturn)
;; ---------------------------------------------------------------------
;; Signature parsing
(defprotocol IParse
(-parse [x]))
(extend-protocol IParse
@maggit
maggit / gist:6124411b442c0a857c2f
Last active December 20, 2019 16:26
Awesome Tacos in Mexico City
Places to eat/drink and have a good time
1. El Borrego Viudo (24 hours tacos, Revolución 241 esq. Viaducto, Tacubaya) Speciality: Tacos de cabeza
2. El Huequito (Pennsylvania 73, Col. Nápoles) Speciality: Tacos de pastor
3. El Vilsito (Petén 248 (esq. Av. Universidad)) Speciality: Costilla con queso
4. Fonda 99.99 (Calle Moras 347, Benito Juárez) Speciality: Tacos de cochinita pibil
5. El Tizoncito (Tamaulipas 122, Col. Condesa.) Speciality: Tacos de pastor
6. Los Parados (Monterrey 333, Col. Roma Sur) Speciality: Tacos de arrachera, vegetarian friendly
7. Los Cocuyos (Bolívar 56, Col. Centro) Speciality: Tacos de suadero (Go here if you feel adventurous)
8. La Tia Yeya (Citlaltepetl No. 25 entre Campeche y Amsterdam Col. Condesa) Speciality: Breakfast chilaquiles, vegetarian friendly
(ns foobar.search
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [cljs.core.async :refer [<! chan put!] :as a]
[reagent.core :as reagent]
[reagent.ratom :refer [atom]]))
; Source: https://gist.github.com/Deraen/946ac9e6c6211c83f1e9
(defn debounce [in ms]
"Creates a channel which will change put a new value to the output channel