Skip to content

Instantly share code, notes, and snippets.

View marklove5102's full-sized avatar

dsfsdf marklove5102

  • asdfsd
  • fsadfsdf
View GitHub Profile
@marklove5102
marklove5102 / gcc compiler optimization for arm systems.md
Created January 12, 2024 05:41 — forked from fm4dd/gcc compiler optimization for arm systems.md
GCC compiler optimization for ARM-based systems

GCC compiler optimization for ARM-based systems

2017-03-03 fm4dd

The gcc compiler can optimize code by taking advantage of CPU specific features. Especially for ARM CPU's, this can have impact on application performance. ARM CPU's, even under the same architecture, could be implemented with different versions of floating point units (FPU). Utilizing full FPU potential improves performance of heavier operating systems such as full Linux distributions.

-mcpu, -march: Defining the CPU type and architecture

These flags can both be used to set the CPU type. Setting one or the other is sufficient.

FROM alpine
MAINTAINER TaterLi <admin@lijingquan.net>
RUN set -ex && \
apk add --no-cache udns && \
apk add --no-cache --virtual .build-deps \
git autoconf automake make build-base \
curl libev-dev c-ares-dev libtool linux-headers \
libsodium-dev mbedtls-dev pcre-dev tar udns-dev && \
cd /tmp/ && \
@marklove5102
marklove5102 / cnspeedtest.sh
Created January 12, 2024 05:40 — forked from nickfox-taterli/cnspeedtest.sh
测速到国内的速度
#!/usr/bin/env bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
PURPLE="\033[0;35m"
CYAN='\033[0;36m'
PLAIN='\033[0m'
#!/usr/bin/env bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
PURPLE="\033[0;35m"
CYAN='\033[0;36m'
PLAIN='\033[0m'
@marklove5102
marklove5102 / https_mbedtls_example_main.c
Created January 12, 2024 05:39 — forked from nickfox-taterli/https_mbedtls_example_main.c
ESP-01 + DHT11 小板监测站工具
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_log.h"
#include "esp_netif.h"
#include "esp_event.h"
#include "protocol_examples_common.h"
@marklove5102
marklove5102 / main.cpp
Created January 12, 2024 05:38 — forked from nickfox-taterli/main.cpp
TinyML HelloWorld
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
* All rights reserved.</center></h2>
#!/bin/bash
# descr:TaterLi自创,用于配置自己的隧道的快捷工具,服务器部分,根据客户端参数来写.
# 使用方法 ./InstallTun.sh 0 1.1.1.1
# 使用方法 ./InstallTun.sh [隧道ID] [IP地址]
cat >/etc/network/interfaces.d/tun$1 <<EOF
auto tun$1
iface tun$1 inet6 v4tunnel
address 2a0e:aa07:e024:$(printf %x $((2*$1+1)))::2
@marklove5102
marklove5102 / ser_10to1.v
Created January 12, 2024 05:28 — forked from nickfox-taterli/ser_10to1.v
Zynq HDMI Output
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2024/01/08 18:22:57
// Design Name:
// Module Name: ser_10to1
// Project Name:
// Target Devices: