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 <stdio.h> | |
#include <memory> | |
#include <string.h> | |
#include <vector> | |
using namespace std; | |
struct Data | |
{ | |
char data[1000]; |
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
######################################################################## | |
######################################################################## | |
## This is a sample configuration file for the ftpsync mirror script. ## | |
## Only options most users may need are included. For documentation ## | |
## and all available options see ftpsync.conf(5). ## | |
######################################################################## | |
######################################################################## | |
# MIRRORNAME=`hostname -f` | |
TO="/home/debian-mirror/data" |
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
"c:\Program Files\qemu\qemu-system-arm" ^ | |
-M vexpress-a9 ^ | |
-smp 4 ^ | |
-m 256 ^ | |
-kernel zImage ^ | |
-dtb vexpress-v2p-ca9.dtb ^ | |
-drive file=eco335.v4.rootfs.ext4,if=sd,format=raw ^ | |
-append "console=ttyAMA0,115200 rootwait root=/dev/mmcblk0" ^ | |
-nic user,hostfwd=tcp::5022-:22 ^ | |
-nic tap,ifname=LAN-Verbindung ^ |
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
#!/bin/sh | |
set -x | |
if [ -n "$1" ];then | |
ip link set ${1} down | |
ip link set ${SWITCH} down | |
ip link delete dev ${SWITCH} | |
ip link delete dev ${1} | |
ip address add ${HOST_IP} dev ${ETHERNET_PORT} |
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
#!/bin/sh | |
set -x | |
if [ -n "$1" ];then | |
ip link add ${SWITCH} type bridge | |
sleep 1s | |
ip tuntap add $1 mode tap user `whoami` | |
sleep 0.5s | |
ip link set dev ${SWITCH} up |
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
#!/bin/bash | |
set -x | |
if [ $EUID -ne 0 ]; then | |
echo "Error: This script ( ${0} ) must be run with root privileges" | |
exit 1 | |
fi | |
PATH=$PATH:/sbin:/usr/sbin |
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 | |
## Copyright (C) 2017, Oleksandr Kucherenko | |
## Last revisit: 2017-09-29 | |
# For help: | |
# ./versionip.sh --help | |
# For developer / references: | |
# https://ryanstutorials.net/bash-scripting-tutorial/bash-functions.php | |
# http://tldp.org/LDP/abs/html/comparison-ops.html |
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
template<typename ... Values> class tuple; | |
template<> class tuple<> {}; | |
template<typename Head, typename ... Tail> | |
class tuple<Head, Tail...> : private tuple<Tail...> | |
{ | |
private: | |
typedef tuple<Tail...> inherited; | |
public: | |
tuple() {} |
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
// | |
// Created by lx on 27.07.20. | |
// | |
#ifndef LEDDRIVER_DEVICE_H | |
#define LEDDRIVER_DEVICE_H | |
#include <iostream> | |
using namespace std; |
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
#!/bin/bash | |
openocd -f interface/stlink-v2-1.cfg -f board/stm32f7discovery.cfg \ | |
-c "init" \ | |
-c "reset init" \ | |
-c "flash probe 0" \ | |
-c "flash info 0" \ | |
-c "flash write_image erase $UBOOT_PATH/spl/u-boot-spl.bin 0x08000000" \ | |
-c "flash write_image erase $UBOOT_PATH/u-boot.bin 0x08008000" \ | |
-c "reset run" \ |
NewerOlder