Skip to content

Instantly share code, notes, and snippets.

View visortelle's full-sized avatar
🎯

Kiryl Valkovich visortelle

🎯
View GitHub Profile
@visortelle
visortelle / minimal_ghc_ghcjs_nix.sh
Created February 11, 2022 09:56 — forked from louispan/minimal_ghc_ghcjs_nix.sh
Install Cabal, GHC, or GHCJS with one Nix command
# install nix (5.5 mins)
curl https://nixos.org/nix/install | sh
# open a new shell to source nix
bash
# query available haskell compilers
nix-env -qaP -A nixpkgs.haskell.compiler [QUERY]
# install ghc (2.5 mins, cached binary)
@visortelle
visortelle / _chrome-ext-auth-identity.md
Created November 27, 2021 06:27 — forked from raineorshine/_chrome-ext-auth-identity.md
How to set up user authentication for a Chrome Extension using the Chrome Identity API

How to set up user authentication for a Chrome Extension using the Chrome Identity API

  1. Create a private key file, from which you can create the manifest key and Application ID, as detailed here: https://stackoverflow.com/questions/23873623/obtaining-chrome-extension-id-for-development
  2. Add the manifest key to "key" in manifest.json
  3. Create a new project in Google Developer Console https://console.developers.google.com/project
  4. Go to "APIs & auth > Credentials" and create new client id for a Chrome Application using the Application ID generated in step 3.
  5. Copy the Client ID to oauth2.client_id in the manifest.json

Deprecated?

@visortelle
visortelle / Notes_on_Pair_Programming.md
Created October 25, 2021 20:15
Recommendations, quotes, and links to become better at pair programming