Skip to content

Instantly share code, notes, and snippets.

View nickfox-taterli's full-sized avatar
😰
想哭

Tater Li nickfox-taterli

😰
想哭
View GitHub Profile
@nickfox-taterli
nickfox-taterli / maixsense_075_tutorial.ipynb
Last active March 13, 2023 12:47
maixsense_075_tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nickfox-taterli
nickfox-taterli / InstallOS.sh
Created December 11, 2022 13:45
InstallOS
#!/bin/bash
## License: GPL
## It can reinstall Debian, Ubuntu, CentOS system with network.
## Default root password: MoeClub.org
## Blog: https://moeclub.org
## Written By MoeClub.org
export tmpVER=''
export tmpDIST=''
/* Includes ------------------------------------------------------------------*/
#include "ec616s.h"
#include "ec616s_io.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
@nickfox-taterli
nickfox-taterli / tls_proxy_smtp.c
Created December 6, 2022 12:32
tls_proxy_smtp.c
// SSL/TLS 中继 SMTP 流量,由于Gmail证书精准识别,因此只能出此下策.
#include "mbedtls/build_info.h"
#include "mbedtls/platform.h"
#include <stdlib.h>
#include <string.h>
#include "mbedtls/entropy.h"
#include "mbedtls/ctr_drbg.h"
@nickfox-taterli
nickfox-taterli / epoll_example.c
Created November 30, 2022 12:56
epoll examle
#include <stdio.h>
#include <sys/epoll.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
@nickfox-taterli
nickfox-taterli / dmesg.log
Created October 15, 2022 15:16
Kernel Log
DDR Version 1.26 20210628
In
soft reset
SRX
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Channel 1: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
@nickfox-taterli
nickfox-taterli / main.c
Last active September 19, 2022 05:59
FFT arm_math
float32_t pSrc[2048];
float32_t pDstFreq[1024];
float32_t pDstPhase[1024];
void MainCode(void *pvParameters)
{
uint16_t i;
for(i = 0;i < 1024;i++){
// 直流分量 1 + 50Hz且初始相位60度.
pSrc[i*2] = 1 + arm_cos_f32((2 * 3.1415926f * 50 * i) / 1024 + (3.1415926f * 60/180));
pSrc[i*2 + 1] = 0;
@nickfox-taterli
nickfox-taterli / hdarea.py
Created September 17, 2022 06:25
自动免费HDAREA
import time
import random
import qbittorrentapi
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
ids = list()
servers = ['89.47.160.92', '89.40.10.157', '37.187.1.230', '37.59.36.21', '198.100.145.102', '198.27.64.97',
'5.196.69.47', '5.196.88.219', '37.187.112.38', '5.135.152.13']
@nickfox-taterli
nickfox-taterli / matlabuart.m
Created September 16, 2022 10:43
Matlab UART New API Demo
% ********************************************************************************************************************
% ********************************************************************************************************************
close all
clear all
%删除所有已经打开的串口,这条很重要,防止之前运行没有关闭串口
delete(instrfindall);
%打开串口COM1,波特率115200,8位数据位,1位停止位,无奇偶校验,无流控制
s = serialport('COM4', 115200);
@nickfox-taterli
nickfox-taterli / mt29f2g01abagdwb.c
Created June 24, 2022 03:11
MT29F2G01ABAGDWB BSP @ STM32 HAL
#include "mt29f2g01abagdwb.h"
QSPI_HandleTypeDef QSPIHandle;
static uint8_t QSPI_ResetMemory(void);
static uint8_t QSPI_WriteEnable(void);
static uint8_t QSPI_AutoPollingMemReady(void);
static uint8_t QSPI_GetStatusRegister(void);
uint8_t BSP_QSPI_Init(void)