Skip to content

Instantly share code, notes, and snippets.

View aagontuk's full-sized avatar

Ashfaqur Rahaman aagontuk

View GitHub Profile
@aagontuk
aagontuk / slack_failed.md
Created March 21, 2022 18:20
Slack isn't running

Relevant erro from SNAPD_DEBUG=1 snap run slack

tartTransientUnit failed with "org.freedesktop.DBus.Error.Spawn.ChildExited": [Process org.freedesktop.systemd1 exited with status 1]

Possible reason: Need systemd --user but running this generates:

Trying to run as user instance, but $XDG_RUNTIME_DIR is not set

$XDG_RUNTIME_DIR is set to /run/user/$UID

@aagontuk
aagontuk / compiler.md
Last active August 9, 2022 14:46
Compiler resources
@aagontuk
aagontuk / ocaml.md
Last active October 22, 2021 01:39
OCaml programming language resources

INDEX

open Base;;

let x = 50;;
let y = 50.;;
let str = "hello world"
@aagontuk
aagontuk / resample.py
Created October 8, 2021 01:25
Resample Data
import pandas as pd
interval = '1min'
in_sheet = "sample.csv"
out_sheet = "output.csv"
# read the csv file
df = pd.read_csv(in_sheet)
print("Resampling to {0} data...".format(interval))
@aagontuk
aagontuk / xv6-riscv.md
Last active November 2, 2021 21:03
xv6-riscv notes

How system calls in xv6 works

  • user.h
  • syscalls.h
  • syscall.c
  • usys.pl

How trap works

Trap generates from system calls, device interrupts and illegal instructions.