This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SPDX-License-Identifier: GPL-2.0-or-later */ | |
/* | |
* mimic skb_queue_head to facilitate the queue-style list manipulation. | |
*/ | |
struct queue_head { | |
/* must be first. */ | |
struct list_head list; | |
u32 qlen; | |
spinlock_t lock; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from collections import defaultdict | |
SIFS_2G = 10 | |
SIFS_5G = 16 | |
SLOT = 9 | |
LABELS = ['DIFS', 'BE', 'BK', 'VI', 'VO'] | |
AIFS = [2, 3, 7, 2, 2] | |
CW_min = [15, 15, 15, 7, 3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adapter driver jlink | |
set _CHIPNAME xxxxx | |
set _DAP_TAPID 0x6BA00477 | |
adapter speed 10000 | |
transport select jtag | |
bindto 0.0.0.0 | |
reset_config trst_and_srst | |
telnet_port 4444 | |
gdb_port 2331 | |
# create tap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##!/usr/bin/env python3 | |
import os | |
import sys | |
import argparse | |
import random | |
from pathlib import Path | |
from multiprocessing import Pool | |
import gzip | |
from scapy.all import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Check for help flag | |
if [ "$1" == "-h" ] || [ "$1" == "--help" ] | |
then | |
echo "Create a systemd service file" | |
echo "Usage: ./create-service.sh -s <service name> -c <command> -w <working directory> -E <run service at startup>" | |
exit 0 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os, sys | |
import argparse | |
try: | |
from tqdm import tqdm | |
except ModuleNotFoundError: | |
def tqdm(it): | |
return it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#\::{ | |
SendMessage 0x0112, 0xF140, 0, , "Program Manager" | |
Sleep 1000 | |
SendMessage 0x0112, 0xF170, 2, , "Program Manager" | |
} | |
#+p::run "shutdown.exe /r /fw /t 0" ; reboot to bios | |
#+r::run "explorer.exe ::{645FF040-5081-101B-9F08-00AA002F954E}" ; Recycle bin | |
#+s::run "explorer.exe shell:startup" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding: UTF-8 -*- | |
import os | |
import sys | |
import time | |
import logging | |
import socket | |
import urllib.request | |
import base64 | |
import hashlib | |
import tempfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
from tqdm import tqdm | |
files = [] | |
commitSHA1 = subprocess.check_output(['git', 'rev-list', '--all'], text=True) | |
for c in tqdm(commitSHA1.splitlines()): | |
files.extend(subprocess.check_output(['git', 'ls-tree', '-r', '--long', c], text=True).splitlines()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ver":"5.0", | |
"tag":"hipsuser", | |
"data":[ | |
{ | |
"id":54, | |
"power":1, | |
"name":"禁垃圾软件", | |
"procname":"*", | |
"treatment":3, |
NewerOlder