Skip to content

Instantly share code, notes, and snippets.

View renxida's full-sized avatar
💭
Looking for a job

Xida Ren (Cedar) renxida

💭
Looking for a job
  • New York, NY
View GitHub Profile
@renxida
renxida / hw2problem1.ipynb
Last active October 9, 2019 16:37
venkat_hw2problem1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@renxida
renxida / MUL_decode_latency.ipynb
Created April 17, 2020 21:17
/measurements/MUL_decode_latency.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@renxida
renxida / delta_tester.py
Last active April 20, 2020 20:57
delta_testing.ipynb
{
"cells": [
{
"metadata": {},
"cell_type": "markdown",
"source": "# A Notebook to Demonstrate my Understanding of Delta Testing"
},
{
"metadata": {
"lines_to_next_cell": 1,
@renxida
renxida / delta_tester.ipynb
Created April 20, 2020 20:59
delta_tester.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
title weight description
Launch Default i3 Session
19
Install package `i3-gaps-session` to keep using i3 without uninstalling Regolith.

To do so on Ubuntu, run sudo apt install i3-gaps-session to add an option on login that starts vanilla i3-gaps without regolith.

@renxida
renxida / PostToNapkin.md
Last active August 25, 2022 17:11
This is a guid on how to use the napkin api in the commandline to post your thoughts to napkin.one

Guide to Posting to napkin.one using curl and their webhook

First, run send code to mail to get a code.

curl -H 'Content-Type: application/json' -d\
    '{"email" : "your email"}'\
    https://us-central1-deepthoughtworks.cloudfunctions.net/sendCodeToMail
{
"info": {
"_postman_id": "8236f729-b242-49b8-9b3d-9c113ae90be4",
"name": "Napkin",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "18027907"
},
"item": [
{
"name": "sendCodeToMail",
@renxida
renxida / napkin.py
Created July 9, 2022 06:57
Post from Terminal to napkin.one
#!/usr/bin/env python3
import requests
import json
import sys
# insert your own code and uid here
# see instructions at https://gist.github.com/renxida/9fc62a224339ce75db8c33ec6ebd8305
# on how to get them
uid = "aBcD1234"
code= "12345"
@renxida
renxida / no_monitor.txt
Created November 7, 2022 02:15
lsmod on Lillipup with and without USBC to HDMI adaptor & Big Monitor
Module Size Used by
snd_seq_dummy 16384 0
snd_seq 57344 5 snd_seq_dummy
snd_seq_device 16384 1 snd_seq
bridge 126976 0
stp 16384 1 bridge
llc 16384 2 bridge,stp
tun 45056 21
vhost_vsock 20480 14
vhost 36864 1 vhost_vsock
#%%
import shutil
import pathlib
import argparse
# use argparse to parse arguments
parser = argparse.ArgumentParser(description='Prepare a LaTeX document for Elicit')
# input folder
parser.add_argument('-i', '--input', help='input folder')
# output folder