Skip to content

Instantly share code, notes, and snippets.

View briankariuki's full-sized avatar

Brian Kariuki briankariuki

View GitHub Profile
@briankariuki
briankariuki / unfollow.js.md
Created November 30, 2024 13:02 — forked from JamieMason/unfollow.js.md
Unfollow everyone on twitter.com

Unfollow everyone on twitter.com

  1. Go to https://twitter.com/YOUR_USER_NAME/following
  2. Open the Developer Console. (COMMAND+ALT+I on Mac)
  3. Paste this into the Developer Console and run it
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
// https://gist.github.com/JamieMason/7580315
//
@ahey
ahey / confirm_with_token.ex
Created October 11, 2023 05:07
Using ash and ash_authentication, configure a user resource for auth via GraphQL
defmodule YourApp.User.Actions.ConfirmWithToken do
use Ash.Resource.ManualCreate
def create(changeset, _opts, _context) do
strategy = AshAuthentication.Info.strategy!(YourApp.User, :confirm)
AshAuthentication.Strategy.action(
strategy,
:confirm,
%{"confirm" => changeset.arguments[:token]}
@tlemens
tlemens / README.md
Last active June 9, 2024 13:39
time_ago_in_words and distance_of_time_in_words for Phoenix/Elixir
@staltz
staltz / introrx.md
Last active January 6, 2026 07:25
The introduction to Reactive Programming you've been missing