Skip to content

Instantly share code, notes, and snippets.

View hydrz's full-sized avatar
🌌
Focusing

夜访萤火虫 hydrz

🌌
Focusing
View GitHub Profile
@hydrz
hydrz / .editorconfig
Created October 14, 2021 11:26
vscode editor standard
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@hydrz
hydrz / style.js
Last active October 19, 2021 15:43
钉钉设计标准 uni-app scss
/* == 钉钉设计标准 == */
module.exports = {
/* 颜色 color */
// 文字基本颜色
common_level1_base_color: '#171a1d', // 主要文字色 标题、正文等文字用色。
common_level2_base_color: 'rgba(23, 26, 29, .6)', // 次要文字色 辅助文案、描述等文字用色。
common_level3_base_color: 'rgba(23, 26, 29, .4)', // 描述文字色 描述、脚注等文字用色。
common_level4_base_color: 'rgba(25, 31, 37, .24)', // 禁用与占位文字色。
common_link_color: '#317ed0', // 链接文字色。
@hydrz
hydrz / code
Last active August 17, 2021 15:08
vscode for multipass or ssh-remote and the command line
#! /usr/bin/env sh
# requirements
# psexec https://docs.microsoft.com/en-us/sysinternals/downloads/pstools
# openssh server https://github.com/PowerShell/Win32-OpenSSH
INSTANCE=primary
WINDOWS_USERNAME=administrator
WINDOWS_IP=$(route -n | grep "eth0" | grep 'UG[ \t]' | awk '{print $2}')
@hydrz
hydrz / denyhosts_removeip.sh
Created May 29, 2021 04:21
denyhosts_removeip
#!/bin/bash
# Author:licess
# Website:https://www.vpser.net & https://lnmp.org
HOST=$1
if [ -z "${HOST}" ]; then
echo "Usage:$0 IP"
exit 1
fi
echo "Remove IP:${HOST} from denyhosts..."
@hydrz
hydrz / gist:abfc2b7b4c2ad4ac733c4836c37dbdf9
Last active February 1, 2023 19:45
tplink TL-R470GP-AC 获取root密码
# 默认端口 33400
# binwalk -e TL-R470GP-AC_V2.0_1.0.8_Build_20200703_Rel.60778.bin 提取文件内容
# 搜索 getNewPasswd 查看密码加密方式
# 使用LAN口的MAC地址
macAddr=7844FD5F42E2
key=$(echo -n "$macAddr" | md5sum)
key=$(echo ${key:0:16})
echo ${key}
@hydrz
hydrz / launch.json
Created December 4, 2020 14:57
vscode go attach process
// 先安装 augustocdias.tasks-shell-input 插件
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
@hydrz
hydrz / element-theme-aliyun.json
Created December 2, 2020 11:41
element-theme-aliyun
{
"global": {
"$--color-primary": "#FF6A00",
"$--color-warning": "#F2AC38",
"$--color-danger": "#D93026",
"$--color-info": "#3BC0FF",
"$--color-text-primary": "#111111",
"$--color-text-secondary": "#555555",
"$--border-color-base": "#DEDEDE",
"$--color-black": "#111111",
@hydrz
hydrz / .clang-format
Last active October 23, 2020 20:46
Personal style for clang automatic reformatting.
# Personal style for automatic reformatting.
# https://google.github.io/styleguide/cppguide.html
# See Clang docs: http://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: Google
# Allow double brackets such as std::vector<std::vector<int>>.
Standard: Cpp11
# Indent 4 spaces at a time.
IndentWidth: 4
@hydrz
hydrz / amap.text
Last active September 21, 2023 03:49
瓦片图说明
高德卫星 AmapSatellite
http://wprd04.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&style=6
高德地图 AmapTile
http://wprd04.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&style=7
高德路网含标注 AmapRoadMark
http://wprd04.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&scl=1&style=8
高德路网不含标注 AmapRoad
@hydrz
hydrz / alpine.sh
Last active December 6, 2019 08:33
常用国内源镜像
#!/bin/sh
mv /etc/apk/repositories /etc/apk/repositories.backup
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# apk add --no-cache