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 dis | |
import mmap | |
import struct | |
from ctypes import * | |
from functools import wraps | |
from typing import Union | |
import numpy as np |
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
#include <STC/STC8G.h> | |
#include <intrins.h> | |
sbit IR_PIN_IN = P3 ^ 2; | |
//http://www.51hei.com/bbs/dpj-165191-1.html | |
typedef unsigned char uchar; | |
typedef unsigned int uint; | |
typedef unsigned int u16; |
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
DOMAIN=$1 | |
// 开启bbr | |
modprobe tcp_bbr | |
echo "tcp_bbr" | tee --append /etc/modules-load.d/modules.conf | |
echo "net.core.default_qdisc=fq" | tee --append /etc/sysctl.conf | |
echo "net.ipv4.tcp_congestion_control=bbr" | tee --append /etc/sysctl.conf | |
sysctl -p | |
// 安装程序 |
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
#include <stddef.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#define CODE_SIZE 200 | |
typedef union slot_t { |
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 | |
#install tmux git subversion wget uuid-dev liblzma-dev libgdbm-dev libncurses5-dev libbz2-dev libssl-dev libreadline-dev libsqlite3-dev libffi-dev | |
if [[ 1 -eq 2 ]]; then | |
echo "set-option -g default-shell /bin/zsh" > ~/.tmux.conf | |
mkdir ~/usr | |
mkdir ~/download |
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
#include "co.hpp" | |
#include <assert.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <map> | |
#include <mutex> | |
using namespace pm::common; |
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
#include <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include <assert.h> | |
#define STACK_MAX 100 | |
#define CODE_SIZE (2 * 1024 * 1024) |
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
package blockchain | |
import ( | |
"time" | |
"crypto/sha256" | |
"encoding/binary" | |
"bytes" | |
"fmt" | |
) |
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 sys | |
from flask import Flask, jsonify, request | |
from threading import Thread, Lock | |
from collections import defaultdict | |
import time | |
import urllib | |
import random | |
import logging | |
import json |
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
// | |
//#pragma once | |
#ifndef _GNU_SOURCE | |
#define _GNU_SOURCE | |
#endif | |
#include <stddef.h> | |
#include <string> | |
#include <sys/time.h> | |
#include <time.h> |
NewerOlder