Skip to content

Instantly share code, notes, and snippets.

Avatar

Kaushik Shanadi ks2211

  • Washington, DC
View GitHub Profile
@ks2211
ks2211 / ent-gosqlmock.go
Created July 7, 2022 20:08
ent-gosqlmock
View ent-gosqlmock.go
import (
"database/sql"
"github.com/DATA-DOG/go-sqlmock"
"context"
"database/sql"
"fmt"
entsql "entgo.io/ent/dialect/sql"
"yourproject.com/project/ent"
@ks2211
ks2211 / Phoenix esbuild with Tailwind and Fontawesome
Last active January 12, 2023 17:13
Phoenix with esbuild, fortawesome, and tailwindcss
View Phoenix esbuild with Tailwind and Fontawesome
Phoenix esbuild with Tailwind+Fontawesome
@ks2211
ks2211 / fix_ubuntu_sources.sh
Created May 19, 2020 15:30
Fix ubuntu /etc/apt/sources.list - replace <ubuntu-codename> with os codename (e.g 19.04 = bionic)
View fix_ubuntu_sources.sh
sudo -i
cat > /etc/apt/sources.list << EOF
deb http://archive.ubuntu.com/ubuntu <ubuntu-codename> main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu <ubuntu-codename> main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu <ubuntu-codename>-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu <ubuntu-codename>-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu <ubuntu-codename>-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu <ubuntu-codename>-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu <ubuntu-codename>-security main restricted universe multiverse
View keybase.md

Keybase proof

I hereby claim:

  • I am ks2211 on github.
  • I am ks2211 (https://keybase.io/ks2211) on keybase.
  • I have a public key ASAZF-EaggrOeXAoLxQ61DflSkUpxUoEFWEbO0KfkkO6sgo

To claim this, I am signing this object: