Skip to content

Instantly share code, notes, and snippets.

🦀
My code doesn't agree with me

Shuwen Jethro Sun jethrosun

🦀
My code doesn't agree with me
Block or report user

Report or block jethrosun

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jethrosun
jethrosun / gist:8443a6e58f75d055ca10fca360a61319
Created Jul 15, 2019
index out of bounds error from a DPDK application
View gist:8443a6e58f75d055ca10fca360a61319
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 Dec 4, 2018
[CS 6740] Updated README.txt
View 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 Dec 4, 2018
[CS 6740 Team Paracha and Sun] Fixed requirements.txt.
View requirements.txt
configparser
zmq
argparse
bcrypt
cryptography
@jethrosun
jethrosun / client.py
Created Dec 4, 2018
[CS 6740 Team Paracha and Sun] Updated client.py to fix the Linux character encoding incompatibility problem.
View client.py
#!/usr/bin/env python
__author__ = "Team Talha and Shuwen"
import os
import sys
import socket
import getpass
import hashlib
import argparse
import configparser
View keybase.md

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 Apr 15, 2017
a brief description on deploy osprofiler
View Setting up OSprofiler in OpenStack
@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
View gist:6a373398a59ffc1f4ea21d87d3b282f8
[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 |
View error msg
[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 |
View errors on install proxychain
=> 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'
View config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cwrappers configure 20161125, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/pkg --build=x86_64-debian-linux --host=x86_64-debian-linux --mandir=/usr/pkg/man
## --------- ##
## Platform. ##
You can’t perform that action at this time.