Skip to content

Instantly share code, notes, and snippets.

@therealplato
therealplato / stack-auth-bounce.js
Created December 17, 2013 00:38
Bouncing a user back to their last place after authentication with Express 3
// Bouncing a user back to their last place after authentication with Express 3
// To accompany http://stackoverflow.com/a/12443844/1380669
// by therealplato
var express = require('express');
var app = express();
require('http').createServer(app).listen(3000
, function(err){
console.log(err || "Listening on 3000");
});
diff --git a/posts/soberoctober26/index.html b/posts/soberoctober26/index.html
index 1460c05..04225cf 100644
--- a/posts/soberoctober26/index.html
+++ b/posts/soberoctober26/index.html
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="@therealplato">
<meta name="description" content="words about things that i think about">
- <meta name="generator" content="Hugo 0.30-DEV" />
+ <meta name="generator" content="Hugo 0.57.0-DEV" />

support ticket hell 1/N

Hi there support!

  • I was originally trying to request a feature, which I'll do separately.
  • I mailed support@soundcloud.com as I have in the past
  • Autoreply told me to use this new support system.
  • As a software engineer I appreciate you putting time into support and I hope my observations and feedback help you improve it.
  • I don't want to play link tag. I know exactly what I am trying to tell you. I have spent a good 40 minutes documenting how painful it is now, to simply make the thing I emailed to support@soundcloud.com become a support ticket again
  • From user's POV this system is seriously inferior to opening/commenting tickets via support@soundcloud.com, it's like 10x more clicks and mental bandwidth to understand what is going on
  • 1000 character limit hit fast (11 lines) while crafting this feedback. Suggest 5 or 10k. Posting multiple tickets as a workaround, sry lol Nope this limit only applies to "step 1". See documented confusion below
@therealplato
therealplato / terraform-cert.diff
Created October 10, 2018 02:49
kops: WIP terraform support for --api-ssl-certificate
diff --git a/upup/pkg/fi/cloudup/awstasks/load_balancer.go b/upup/pkg/fi/cloudup/awstasks/load_balancer.go
index 257c2b066..01baebd99 100644
--- a/upup/pkg/fi/cloudup/awstasks/load_balancer.go
+++ b/upup/pkg/fi/cloudup/awstasks/load_balancer.go
@@ -657,6 +657,7 @@ type terraformLoadBalancerListener struct {
InstanceProtocol string `json:"instance_protocol"`
LBPort int64 `json:"lb_port"`
LBProtocol string `json:"lb_protocol"`
+ SSLCertificateID string `json:"ssl_certificate_id,omitempty"`
}
@therealplato
therealplato / baz.go
Last active September 25, 2017 01:36
urfave/cli delegating flag handling
//$GOPATH/src/github.com/therealplato/scratch/repro-urfave/baz.go
package baz
import (
"flag"
"fmt"
)
func Run() {
@therealplato
therealplato / main.go
Created July 14, 2017 22:37
event bus pattern in go
// An event BUS is a communication pattern between subsystems
// event SOURCING is a design pattern that I would define as:
// System state is stored as an append-only sequence of events,
// current system state is the result of applying all events in order.
// this demonstrates an event bus:
package main
import (
"fmt"
@therealplato
therealplato / gen.pb.go
Created July 3, 2017 03:16
repro: golint generated files problem
// Code generated by protoc-gen-go.
// source: contact-list-service.proto
// DO NOT EDIT!
/*
Package main is a generated protocol buffer package.
It is generated from these files:
asdf.proto
hasf.proto
@therealplato
therealplato / .hyper.js
Last active May 30, 2017 07:22
Non-working windows10+vim+hyper+git bash setup
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 18,
fontFamily: '"Inconsolata for Powerline Medium", "Comic Sans MS", monospace',
cursorColor: 'rgba(248,28,229,0.8)',
cursorShape: 'BLOCK',
padding: '12px 14px',
shell: 'C:\\Program Files\\Git\\git-cmd.exe',
@therealplato
therealplato / main.go
Created August 19, 2016 14:32
assert.IsType for nil pointers
package main
import (
"fmt"
)
type Foo struct{}
func ReturnFoo() *Foo {
return &Foo{}
// custom error handler
app.use(function (err, req, res, next) {
if (err.message
&& (~err.message.indexOf('not found')
|| (~err.message.indexOf('Cast to ObjectId failed')))) {
return next()
}
console.error(err.stack)
res.status(500).render('500')