Skip to content

Instantly share code, notes, and snippets.

View jethrosun's full-sized avatar
🦀
My code doesn't agree with me

Shuwen Jethro Sun jethrosun

🦀
My code doesn't agree with me
View GitHub Profile
@jethrosun
jethrosun / cs3650 recitation: coding.md
Last active January 25, 2024 17:31
Guide for code editoring and scripting

1. TODOs before the recitation

Install the following tools

# In side the VM: GUI terminal or ssh terminal
$ sudo apt install -y git

Set up ssh connection to your VM

# Inside the VM:
$ ip addr
@jethrosun
jethrosun / gist:8443a6e58f75d055ca10fca360a61319
Created July 15, 2019 15:46
index out of bounds error from a DPDK application
thread 'sched-3' panicked at 'index out of bounds: the len is 128 but the index is 18446744073709551615', /rustc/8ebd67e4ee394cad9441a801f2022724ae7e07db/src/libcore/slice/mod.rs:2681:10
stack backtrace:
0: 0x555555670086 - backtrace::backtrace::libunwind::trace::h8ed5d9ae1d8037d0
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.29/src/backtrace/libunwind.rs:88
1: 0x555555670086 - backtrace::backtrace::trace_unsynchronized::h2c3e43c5cb83cbee
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.29/src/backtrace/mod.rs:66
2: 0x555555670086 - std::sys_common::backtrace::_print::h621b9f6822ef2d33
at src/libstd/sys_common/backtrace.rs:47
3: 0x555555670086 - std::sys_common::backtrace::print::h6edc8d6ecd0550e9
at src/libstd/sys_common/backtrace.rs:36
@jethrosun
jethrosun / README.txt
Created December 4, 2018 21:49
[CS 6740] Updated README.txt
Program description
===================
This program provides a secure chat application with multiple clients and a single server.
Detailed system design is available in the document final-project-paracha-sun.pdf.
Requirements
============
Python 3 was used for developing this program, specific modules required are listed in requirements.txt
@jethrosun
jethrosun / requirements.txt
Created December 4, 2018 21:48
[CS 6740 Team Paracha and Sun] Fixed requirements.txt.
configparser
zmq
argparse
bcrypt
cryptography
@jethrosun
jethrosun / client.py
Created December 4, 2018 21:46
[CS 6740 Team Paracha and Sun] Updated client.py to fix the Linux character encoding incompatibility problem.
#!/usr/bin/env python
__author__ = "Team Talha and Shuwen"
import os
import sys
import socket
import getpass
import hashlib
import argparse
import configparser

Keybase proof

I hereby claim:

  • I am jethrosun on github.
  • I am jethros (https://keybase.io/jethros) on keybase.
  • I have a public key ASBV92OoZa2_wiHU8-Z-lz24I_tKXhtSI1s10YwzPwY8Jwo

To claim this, I am signing this object:

@jethrosun
jethrosun / Setting up OSprofiler in OpenStack
Last active April 15, 2017 21:10
a brief description on deploy osprofiler
@Author: Jethro, Rajul
After follow the link
https://docs.openstack.org/developer/zaqar/OSprofiler.html
Will need to run:
$ cp /etc/mongod.conf /etc/mongdb.conf
(I changed the bind_ip as the local ip but maybe 127.0.0.1 or localhost works too)
Then restart systemd service for mongdb and cinder
[root@cluster centos(keystone_admin)]# cinder --profile 123 create --name peter 1
+--------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2017-04-15T19:48:41.000000 |
| description | None |
[root@cluster centos(keystone_demo)]# cinder --profile 123 create --name jethro 1
+------------------------------+--------------------------------------+
| Property | Value |
+------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2017-04-15T19:01:35.000000 |
| description | None |
=> Automatic manual page handling
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/as-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/c++-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/cc-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/cpp-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/f77-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/imake-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/ld-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/libtool-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/shlibtool-wrapper'