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
@SheldonWangRJT
SheldonWangRJT / Convert .mov or .MP4 to .gif.md
Last active July 10, 2026 19:01
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@staltz
staltz / introrx.md
Last active August 2, 2026 17:36
The introduction to Reactive Programming you've been missing