Skip to content

Instantly share code, notes, and snippets.

View tpaschalis's full-sized avatar

Paschalis Tsilias tpaschalis

View GitHub Profile
@tpaschalis
tpaschalis / crack.go
Created November 21, 2018 19:00
CS50 - Pset 2 - Crack DES hash in Golang - Use of concurrency to speed up naive algorithm, at least 5x gains in speed..
package main
import (
"fmt"
"os"
"bytes"
"unsafe"
"sync"
_"runtime"
)
@sleepyfox
sleepyfox / 2019-07-25-users-hate-change.md
Last active October 25, 2025 18:39
'Users hate change'

'Users hate change'

This week NN Group released a video by Jakob Nielsen in which he attempts to help designers deal with the problem of customers being resistant to their new site/product redesign. The argument goes thusly:

  1. Humans naturally resist change
  2. Your change is for the better
  3. Customers should just get used to it and stop complaining

There's slightly more to it than that, he caveats his argument with requiring you to have of course followed their best practices on product design, and allows for a period of customers being able to elect to continue to use the old site, although he says this is obviously only a temporary solution as you don't want to support both.

@tpaschalis
tpaschalis / script.sh
Created November 5, 2020 22:02
Triggering an AWS Lambda through a POST request
$ aws apigateway create-rest-api --name lambda-trigger-api
HEADER 2020-11-05T20:24:08+02:00 False <api-id> lambda-trigger-api
TYPES EDGE
$ aws apigateway get-rest-api --rest-api-id <api-id>
HEADER 2020-11-05T20:24:08+02:00 False <api-id> lambda-trigger-api
TYPES EDGE
$ aws apigateway get-resources --rest-api-id <api-id>
ITEMS <api-root-id> /
@bradfitz
bradfitz / sqlplay.go
Created June 23, 2021 17:23
sqlplay.go
package main
import (
"database/sql"
"flag"
"fmt"
"html"
"io"
"io/ioutil"
"log"