Skip to content

Instantly share code, notes, and snippets.

View RocketPuppy's full-sized avatar

Daniel Wilson-Thomas RocketPuppy

View GitHub Profile
@RocketPuppy
RocketPuppy / auto-updater.rb
Created October 3, 2022 15:50
Script to auto-update ruby dependencies
#!/usr/bin/env ruby
# You can copy this file and make it executable in your ruby repository.
# Running it will determine which of your top-level gems need updating and will then update them one-by-one.
# It will commit each update separately and push to origin on whatever your current branch is.
require 'bundler'
require 'bundler/cli'
require 'tempfile'
require 'time'
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import { configureStore, createAction, createReducer } from "@reduxjs/toolkit";
import { Provider, connect } from "react-redux";
import * as O from "optics-ts";
import * as R from "redux-consumer-toolkit";
interface State {
counter: number;
boot.kernelPackages = pkgs.linuxPackages_5_7;
networking.interfaces.eno1 = {
ipv4 = { addresses = [{ address = "192.168.63.4"; prefixLength = 24; }]; };
};
services.openssh.enable = true;
services.openssh.permitRootLogin = "yes";
users.users.node = {
@RocketPuppy
RocketPuppy / gemset.nix
Created February 3, 2020 14:14
board game gemset.nix
{
cairo = {
dependencies = ["native-package-installer" "pkg-config"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0yvv2lcbsybzbw1nrmfivmln23da4rndrs3av6ymjh0x3ww5h7p8";
type = "gem";
};
@RocketPuppy
RocketPuppy / logs.txt
Created October 7, 2018 17:55
Kafka Connect Logs
This file has been truncated, but you can view the full file.
Oct 07 16:40:40 kafka-0 systemd[1]: Started Apache Connect Distributed.
Oct 07 16:40:44 kafka-0 apache-kafka-connect-start[5184]: [KAFKA-CONNECT] [2018-10-07 16:40:44,422] INFO Kafka Connect distributed worker initializing ... (org.apache.kafka.connect.cli.ConnectDistributed)
Oct 07 16:40:44 kafka-0 apache-kafka-connect-start[5184]: [KAFKA-CONNECT] [2018-10-07 16:40:44,454] INFO WorkerInfo values:
Oct 07 16:40:44 kafka-0 apache-kafka-connect-start[5184]: jvm.args = -Xms128M, -Xmx512M, -XX:+UseG1GC, -XX:MaxGCPauseMillis=20, -XX:InitiatingHeapOccupancyPercent=35, -XX:+ExplicitGCInvokesConcurrent, -Djava.awt.headless=true, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Dkafka.logs.dir=/tmp/apache-kafka-logs, -Dlog4j.configuration=file:/nix/store/5rwwb8avbk3pnp44njz68cs748lz0lwy-log4j.properties
Oct 07 16:40:44 kafka-0 apache-kafka-connect-start[5184]: jvm.spec = Oracle Corporation, OpenJDK 64-Bit Server VM, 1.8.0_181,
@RocketPuppy
RocketPuppy / README
Last active October 7, 2018 18:20
Kafka Connect Setup
# Create and deploy the test cluster, may take a while
nixops create -d kafka-test cluster.nix
nixops deploy -d kafka-test --force-reboot
# Check up on kafka-connect
nixops ssh -d kafka-test kafka-0
> journalctl -u apache-kafka-connect.service
> systemctl start apache-kafka-connect.service
# Tear it down

Keybase proof

I hereby claim:

To claim this, I am signing this object:

Uncle Bob, you recently wrote a post titled Types And Tests. It generated quite a lot of buzz. It was also, in my opinion, a bit naive regarding the current state of affairs in type systems. This made it difficult for me to understand exactly what your points were and I would like to understand those better. To help clarify those I'm going to provide counter examples to your claims and propose other questions that both might help me better understand what you mean. Hopefully someone else finds this useful as well. I'll be using Ruby and Haskell for most code snippets as they are representative of the two sides and I'm most familiar with them right now.

Uncle Bob, you recently wrote a post titled Types And Tests. It generated quite a lot of buzz. It was also, in my opinion, a bit naive regarding the current state of affairs in type systems. This made it difficult for me to understand exactly what your points were and I would like to understand those better. To help clarify those I'm going to provide counter examples to your claims and propose other questions that both might help me better understand what you mean. Hopefully someone else finds this useful as well. I'll be using Ruby and Haskell for most code snippets as they are representative of the two sides and I'm most familiar with them right now.