Skip to content

Instantly share code, notes, and snippets.

View 0xJchen's full-sized avatar
🎯
Focusing

Jiachen Wang 0xJchen

🎯
Focusing
View GitHub Profile
@0xJchen
0xJchen / detect.py
Created January 17, 2021 14:03 — forked from buptczq/detect.py
QQ URL detect
import hashlib
import struct
import sqlite3
def md5hash(buf):
return hashlib.md5(buf.encode("utf-16")[2:]).digest()
def md5cmp(buf, postfix, a1, a2, a3, a4):
if len(buf) < postfix:
return False
absl-py==0.8.1
aiohttp==3.7.4.post0
aiohttp-cors==0.7.0
aioredis==1.3.1
aiosignal==1.2.0
astunparse==1.6.3
async-timeout==3.0.1
atari-py==0.2.9
attrs==19.3.0
backcall==0.2.0
import numpy as np
from .lib import pyflare as fl
from .fish_env_basic import FishEnvBasic
import torch
from ray.rllib.env.apis.task_settable_env import TaskSettableEnv
class KoiCruisingEnv(FishEnvBasic, TaskSettableEnv):
def __init__(self,
control_dt=0.2,
wp= np.array([0.0,1.0]),
(RolloutWorker pid=116297) visulization data save folder /home/game/wy/gym-fish/gym_fish/envs/data/
(RolloutWorker pid=116297) CUDA error at xxx.cpp:17 code=100(cudaErrorNoDevice) "cudaMalloc((void **)&data_gpu.nodeIdx, sizeof(int))"
Traceback (most recent call last):
File "ppo_custom.py", line 211, in <module>
trainer = ppo.PPOTrainer(config=ppo_config, env="myEnv")
File "/opt/conda/envs/gym-fish/lib/python3.6/site-packages/ray/rllib/agents/trainer_template.py", line 103, in __init__
remote_checkpoint_dir, sync_function_tpl)
File "/opt/conda/envs/gym-fish/lib/python3.6/site-packages/ray/rllib/agents/trainer.py", line 662, in __init__
sync_function_tpl)
File "/opt/conda/envs/gym-fish/lib/python3.6/site-packages/ray/tune/trainable.py", line 121, in __init__
root@ec2bf3896c8b:/home/game/pisac# ./xvfb-run-safe python -m pisac.run --root_dir=/tmp/pisac_cartpole_swingup --gin_file=pisac/config/pisac.gin --gin_bindings=train_pisac.train_eval.domain_name=\'cartpole\' --gin_bindings=train_pisac.train_eval.task_name=\'swingup\' --gin_bindings=train_pisac.train_eval.action_repeat=4 --gin_bindings=train_pisac.train_eval.initial_collect_steps=1000 --gin_bindings=train_pisac.train_eval.initial_feature_step=5000 gin_bindings=train_pisac.train_eval.drivers_in_graph=False
2022-01-08 11:59:02.458894: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
2022-01-08 11:59:03,907: MUJOCO_GL is not set, so an OpenGL backend will be chosen automatically.
2022-01-08 11:59:04,056: Successfully imported OpenGL backend: glfw
2022-01-08 11:59:04,194: MuJoCo library version is: 200
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/l
@0xJchen
0xJchen / log
Created February 5, 2022 14:13
- Device platform: arm64-v8a
- Installing: 23.0 (23000)
- Copying image to cache
- Unpacking boot image
Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]
HEADER_VER [3]
KERNEL_SZ [50481164]
RAMDISK_SZ [19855248]
OS_VERSION [11.0.0]
OS_PATCH_LEVEL [2021-11]
@0xJchen
0xJchen / OrderFlow.ipynb
Created January 31, 2023 21:59 — forked from sebjai/OrderFlow.ipynb
Optimal trading with order-flow and short-term alpha
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@0xJchen
0xJchen / git_newrepo
Created March 24, 2023 21:55 — forked from c0ldlimit/git_newrepo
Git: Push a new or existing repo to Github
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line
@0xJchen
0xJchen / bridge_hacks.md
Created July 15, 2023 20:57 — forked from cwhinfrey/bridge_hacks.md
Bridge Hack List
The output from `lsblk` shows that you have two large disks (`nvme0n1` and `nvme1n1`) that are 3.5T in size but do not have any partitions or filesystems. If you want to increase the size of your `/` filesystem, you can't do it directly because it's currently on a smaller disk (`nvme2n1`) which is completely used.
A better approach would be to create a new partition on one of the larger disks, create a filesystem on it, and then move your data from the smaller disk to the new filesystem on the larger disk. Here is an outline of the steps you would need to take.
**Disclaimer: This process can result in data loss if not done carefully. Always backup important data before attempting these steps.**
1. **Create a new partition on one of the larger disks**
Before you create a new partition, you need to check if there is free space available. If there is no free space, you may need to shrink or delete an existing partition.