Skip to content

Instantly share code, notes, and snippets.

snowdream@R7000-C0CE:/tmp/mnt/MULTIBOOT/bin# entware-setup.sh
Info: This script will guide you through the Entware installation.
Info: Script modifies "entware" folder only on the chosen drive,
Info: no other data will be changed. Existing installation will be
Info: replaced with this one. Also some start scripts will be installed,
Info: the old ones will be saved on Entware partition with name
Info: like /tmp/mnt/sda1/jffs_scripts_backup.tgz
Info: Looking for available partitions...
[1] --> /tmp/mnt/MULTIBOOT
@snowdream
snowdream / .bashrc.sh
Last active August 14, 2019 16:33
阿里云Go Module代理仓库服务 https://mirrors.aliyun.com/goproxy/
# Enable the go modules feature
export GO111MODULE=on
# Set the GOPROXY environment variable
export GOPROXY=https://mirrors.aliyun.com/goproxy/
FROM centos:latest
LABEL maintainer="snowdream <[email protected]>"
ENV CPULIMIT_VERSION 0.2
ENV XMRIG_VERSION 5.3.0
RUN dnf groupinstall -y 'Development Tools' \
&& dnf install -y wget \
@snowdream
snowdream / golang-tls.md
Created May 18, 2023 12:59 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
@snowdream
snowdream / pkcs5.c
Last active June 22, 2024 00:38 — forked from dzmitryk/pkcs5.c
Simple command line tool to demonstrate using of PKCS#5 PBKDF2 HMAC SHA1 capabilities of OpenSSL library.Params: -i number of iterations; -s salt; -p password; -l hash length; -x flag which allows to specify salt as hex string;Compile using: $gcc pkcs5.c -L/usr/lib -lssl -lcrypto -o pkcs5
/*
MIT License
Copyright (c) 2013 Dzmitry Kazimirchyk
Copyright (c) 2024-present SnowdreamTech Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@snowdream
snowdream / gist:012f9b269d5a6f6779dc077dfadb81af
Last active September 19, 2024 13:43
list all valid combinations of GOOS and GOARCH