Skip to content

Instantly share code, notes, and snippets.

View iancooper's full-sized avatar

Ian Cooper iancooper

View GitHub Profile
@iancooper
iancooper / dotnetlayout.md
Created September 11, 2023 14:45 — forked from davidfowl/dotnetlayout.md
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@iancooper
iancooper / kafkacat.adoc
Created January 10, 2023 19:19 — forked from rmoff/kafkacat.adoc
Show last three messages from a Kafka topic with kafkacat
kafkacat -b localhost:9092 \
         -t _kafka-connect-group-01-status \
         -C \
         -o-3 \
         -c3 \
         -f 'Topic %t / Partition %p / Offset: %o / Timestamp: %T\nHeaders: %h\nKey (%K bytes): %k\nPayload (%S bytes): %s\n--\n'
{
"version": "0.2.0",
"configurations": [
{
"name": "Jest Tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/jest-cli/bin/jest.js",
"stopOnEntry": false,
"args": ["--runInBand"],
@iancooper
iancooper / .md
Created April 30, 2021 20:51 — forked from jacoelho/.md
spf13-vim + vim-go
  1. Install spf13-vim
sh <(curl https://j.mp/spf13-vim3 -L)
  1. Install Go bundle
echo "export PATH=\$PATH:\$(go env GOPATH)/bin" >> ~/.bashrc
@iancooper
iancooper / gist:86857ac1dec60f24b28367033f69b6cf
Created January 17, 2018 13:50 — forked from jessedearing/gist:2351836
Create self-signed SSL certificate for Nginx
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key