Skip to content

Instantly share code, notes, and snippets.

View jackyliu16's full-sized avatar
😅
Damned, control freak

OneDragon424 jackyliu16

😅
Damned, control freak
View GitHub Profile
@jackyliu16
jackyliu16 / 天数服务器使用记录.md
Last active February 6, 2025 15:54
天数服务器使用记录

6/2/2025

最近正在申请学位和找工作,没有时间参与活动,但是因为没法访问家里的电脑还暂时占用天数的服务器

26/01/25

简单测试了一下对于程序进行简单修改以适配国产算力平台,但是情况是没有办法正常运行。最后发现其实对应的作业有提供专门针对于国产算力的分支。

同时,在 VSC 上切换了一下目录,不知道为啥就导致了 整个实例崩溃,杨工看了下发现似乎是对应的用户被整个注销掉了,不知道什么情况。

{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }: utils.lib.eachSystem [ "x86_64-linux" ] (system: let
pkgs = import nixpkgs {
➜ dotfiles git:(master) ✗ nix-shell -p virtscreen| curl -F "c=@-" "https://fars.ee/" 2>&1
these 2 derivations will be built:
/nix/store/mnyd2vjpbd2d5mw3414rfa0ak0a0zcfv-python3.11-quamash-0.6.1.drv
/nix/store/78rm9w0iip5b1807jhinazypgmj85csn-virtscreen-0.3.1.drv
building '/nix/store/mnyd2vjpbd2d5mw3414rfa0ak0a0zcfv-python3.11-quamash-0.6.1.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
@jackyliu16
jackyliu16 / gist:936fd99e0478cdc913d0a5365fe3aeeb
Created November 22, 2023 17:00
test slides from slidesdown
---
# Metadata about the presentation:
title: Presentation Title
author: Your Name
date: 2023-01-20
keywords: some useful keywords
# Presentation settings:
# URL to favicon
favicon: /favicon.svg
@jackyliu16
jackyliu16 / sendUDP
Created August 16, 2023 07:30
send udp from pcap file with interval
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <pcap.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
"""
This file takes the column closest to the right and performs a set analysis on it
"""
from typing import List, Set
def getRightCol(lines: List[str]) -> List[str]:
"""
get the rightest column of a kind of tables
@jackyliu16
jackyliu16 / flake.nix
Last active October 26, 2024 17:49
A flake of nix for rCore
{
description = "A devShell for rCore";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-qemu7.url = "https://github.com/NixOS/nixpkgs/archive/7cf5ccf1cdb2ba5f08f0ac29fc3d04b0b59a07e4.tar.gz";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
};