Skip to content

Instantly share code, notes, and snippets.

Avatar
🕶️
Open Source

Aayush Kumar Sahu aayushmau5

🕶️
Open Source
View GitHub Profile
@aayushmau5
aayushmau5 / todolist_genserver.ex
Created Jun 20, 2022
TodoList using GenServer in elixir
View todolist_genserver.ex
defmodule TodoList do
defstruct auto_id: 1, entries: %{}
use GenServer
def start do
GenServer.start(TodoList, nil)
end
def add_entry(pid, entry) do
GenServer.cast(pid, {:put, entry})
View Mongosh-Docker.md

Mongosh in Docker

Connect

docker exec -it <container_name> mongosh -u <user_name> -p <password>

With -u an -p options being optional(obv).

Commands

@aayushmau5
aayushmau5 / Sophos-deno-login.ts
Created Feb 20, 2022
Deno code for Sophos login
View Sophos-deno-login.ts
enum AuthRequestType {
LOGIN,
LOGOUT,
}
function authRequest(
url: string,
username: string,
password: string,
authRequest: AuthRequestType
@aayushmau5
aayushmau5 / distro-hopping.md
Last active Feb 8, 2022
Things I do before/after distro hopping
View distro-hopping.md

Todo before /home cleanup

  • Commit projects
  • Backup movies/photos/other stuff
  • Update dotfiles(& commit)
  • Backup fonts

Softwares to install

  • Docker
@aayushmau5
aayushmau5 / GSoC-2021.md
Created Aug 21, 2021
Project report for GSoC 2021
View GSoC-2021.md

Project Report - GSoC 2021

Organization - Postman

Sub-Organization - AsyncAPI

Project - AsyncAPI Diff

Mentor - Vinit Shahdeo, Anubhav Vats