Skip to content

Instantly share code, notes, and snippets.

View vincenthz's full-sized avatar
👻
making things better

Vincent Hanquez vincenthz

👻
making things better
View GitHub Profile
@kyledrake
kyledrake / ferengi-plan.txt
Last active April 6, 2024 00:30
How to throttle the FCC to dial up modem speeds on your website using Nginx
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {
@tfausak
tfausak / haskell-package-versions.hs
Last active December 24, 2016 04:02
Gets the package index from Hackage and outputs a bunch of information about their version numbers.
{- stack
--resolver lts-7
--install-ghc
runghc
--package containers
--package filepath
--package http-client
--package http-client-tls
--package tar
--package time
@DanBurton
DanBurton / stack.yaml
Created January 22, 2018 22:34
A simple stack.yaml for ghc-8.4.1-alpha2
setup-info:
ghc:
linux32-nopie:
8.4.0.20180118:
url: https://downloads.haskell.org/~ghc/8.4.1-alpha2/ghc-8.4.0.20180118-i386-deb8-linux.tar.xz
sha256: be1a3b5de9f671199533d22f2810d9b62c6392b32b39833cd384a094566703c6
windows32:
8.4.0.20180118:
url: https://downloads.haskell.org/~ghc/8.4.1-alpha2/ghc-8.4.0.20180118-i386-unknown-mingw32.tar.xz
sha256: 3f4b9291ad35d89ca7b3561312a4329545aedceb5c4c8c5c4cf01550037376a1
@DanBurton
DanBurton / Main.hs
Created February 7, 2018 22:21
Generating stack's setup-info for ghc-8.4-alpha3
#!/usr/bin/env stack
{- stack
script
--resolver lts-10.2
--package bytestring
--package http-conduit
-}
-- usage: ./Main.hs
-- modify the baseUrl and ghcDateVersion to taste