Skip to content

Instantly share code, notes, and snippets.

Maximilian Tagher MaxGabriel

Block or report user

Report or block MaxGabriel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:6bb94023688b05e12ec02ddccae28166
- aeson
- aeson-casing
- aeson-iproute
- aeson-pretty
- aeson-typescript
- amazonka
- amazonka-core
- amazonka-s3
- amazonka-sqs
- async
@MaxGabriel
MaxGabriel / parser.ts
Created Sep 24, 2018
Date parsing code
View parser.ts
import * as P from 'parsimmon'
import Day from '~/utils/Day'
import Month from '~/utils/Month'
const shortMonths = {
jan: 1,
feb: 2,
mar: 3,
apr: 4,
may: 5,
View gist:d0d524bff89ea8439e24aa356c0b7332
❄️ ✔︎ ~/D/M/h/mercury-web-backend> cabal build 15:31:54
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
Resolving dependencies...
Configuring mercury-web-backend-0.0.0...
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Preprocessing library for mercury-web-backend-0.0.0..
Building library for mercury-web-backend-0.0.0..
[ 1 of 141] Compiling AWS.Types ( src/AWS/Types.hs, dist/build/AWS/Types.o )
stgEqType: unequal
@MaxGabriel
MaxGabriel / gist:80b31479813fe0f8521e0bbfa4faa597
Created Jun 27, 2018
Top 100,000 passwords 10 or more characters long
View gist:80b31479813fe0f8521e0bbfa4faa597
[
"qwertyuiop",
"1234567890",
"q1w2e3r4t5",
"1q2w3e4r5t",
"4815162342",
"0987654321",
"12345qwert",
"123456789a",
"1234554321",
@MaxGabriel
MaxGabriel / th.hs
Created Feb 27, 2018
Without helper functions
View th.hs
derivePostgresEnum :: String -> String -> Q [Dec]
derivePostgresEnum s postgresType = do
ss <- [|SqlOther (pack postgresType)|]
tpv <- [|PersistText . pack . show|]
fpv <- [|\dt v ->
case fromPersistValue v of
Left e -> Left e
Right s' ->
case reads $ unpack s' of
(x, _):_ -> Right x
View gist:daf16c7c086074990f6d1595b848474f
maximiliantagher@Maximilians-MBP ~/D/M/mercury-web> git diff yarn.lock
diff --git a/yarn.lock b/yarn.lock
index 441ccf1..b1df352 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -188,13 +188,14 @@
version "6.0.90"
resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.90.tgz#0ed74833fa1b73dcdb9409dcb1c97ec0a8b13b02"
-"@types/qrcode-generator@^0.0.16":
@MaxGabriel
MaxGabriel / gist:2a7116641ef32653618136473a699636
Created Jan 24, 2018
cabal install HsOpenSSL redirected to handle
View gist:2a7116641ef32653618136473a699636
cabal: Entering directory '/var/folders/v7/5k06hq7d3wbb4cvk8smv6kl00000gn/T/cabal-tmp-26452/HsOpenSSL-0.11.4.11'
[1 of 1] Compiling Main ( /var/folders/v7/5k06hq7d3wbb4cvk8smv6kl00000gn/T/cabal-tmp-26452/HsOpenSSL-0.11.4.11/dist/setup/setup.hs, /var/folders/v7/5k06hq7d3wbb4cvk8smv6kl00000gn/T/cabal-tmp-26452/HsOpenSSL-0.11.4.11/dist/setup/Main.o )
Linking /var/folders/v7/5k06hq7d3wbb4cvk8smv6kl00000gn/T/cabal-tmp-26452/HsOpenSSL-0.11.4.11/dist/setup/setup ...
Configuring HsOpenSSL-0.11.4.11...
Flags chosen: macports-openssl=False, homebrew-openssl=False, fast-bignum=True
Dependency base ==4.10.0.0: using base-4.10.0.0
Dependency bytestring ==0.10.8.2: using bytestring-0.10.8.2
Dependency integer-gmp ==1.0.1.0: using integer-gmp-1.0.1.0
Dependency network ==2.6.3.2: using network-2.6.3.2
Dependency time ==1.8.0.2: using time-1.8.0.2
View gist:7889879980cd6525038ceeea80c76f87
maximiliantagher@Maximilians-MacBook-Pro ~> cabal install HsOpenSSL --verbose
/usr/local/bin/alex --version
/usr/bin/gcc -dumpversion
looking for tool haddock near compiler in /usr/local/bin
found haddock in /usr/local/bin/haddock
/usr/local/bin/haddock --version
/usr/local/bin/happy --version
looking for tool hpc near compiler in /usr/local/bin
found hpc in /usr/local/bin/hpc
/usr/local/bin/hpc version
@MaxGabriel
MaxGabriel / gist:2e8e20ab31edfa18a3f09e2fcd295b3c
Created Jan 24, 2018
HsOpenSSL install issue --cabal-verbose output only
View gist:2e8e20ab31edfa18a3f09e2fcd295b3c
maximiliantagher@Maximilians-MacBook-Pro ~/D/M/h/mercury-web-backend> stack build --cabal-verbose
HsOpenSSL-0.11.4.11: configure
Progress: 1/2
-- While building custom Setup.hs for package HsOpenSSL-0.11.4.11 using:
/private/var/folders/v7/5k06hq7d3wbb4cvk8smv6kl00000gn/T/stack23703/HsOpenSSL-0.11.4.11/.stack-work/dist/x86_64-osx/Cabal-1.24.2.0/setup/setup --verbose --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 configure --with-ghc=/Users/maximiliantagher/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc --with-ghc-pkg=/Users/maximiliantagher/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/maximiliantagher/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/pkgdb --libdir=/Users/maximiliantagher/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/lib --bindir=/Users/maximiliantagher/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/bin --datadir=/Users/maximiliantagher/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/share --libexecdir=/Users/maximiliantagher/.sta
View gist:121b74e727e713869f9d739dd27da26b
maximiliantagher@Maximilians-MacBook-Pro ~/D/M/h/mercury-web-backend> stack build --verbose --cabal-verbose
Version 1.6.0.20171202, Git revision 50090e67c16980bba31349f386d5b018cbcaec31 (5421 commits) x86_64 hpack-0.20.0
2018-01-24 08:02:16.092437: [debug] Checking for project config at: /Users/maximiliantagher/Documents/Mercury/hs/mercury-web-backend/stack.yaml
@(Stack/Config.hs:842:9)
2018-01-24 08:02:16.096729: [debug] Loading project config file stack.yaml
@(Stack/Config.hs:868:13)
2018-01-24 08:02:16.098805: [debug] Decoding build plan from: /Users/maximiliantagher/.stack/build-plan/lts-9.14.yaml
@(Stack/Snapshot.hs:150:5)
2018-01-24 08:02:16.098903: [debug] Trying to decode /Users/maximiliantagher/.stack/build-plan-cache/lts-9.14.cache
@(Data/Store/VersionTagged.hs:66:5)
You can’t perform that action at this time.