Discover gists
cd coding-directory
npm init -y
npm install --save-dev --save-exact eslint eslint-config-airbnb-base eslint-plugin-import
- Create
.eslintrc
file with following content:
{
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
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
Install-Module -name WindowsAutoPilotIntune | |
Connect-MSGraph | |
$apppolicies = Get-AutoPilotProfile | |
$apppolicies | ConvertTo-AutoPilotConfigurationJSON | Out-File "C:\AutopilotConfigurationFile.json" -Encoding ascii | |
# save exported json to C:\windows\Provisioning\Autopilot |
windows
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 | |
while read LINE; do | |
# 请在do与done之间写下需要执行的语句,为了避免错误,文件对象请使用绝对路径。 | |
# 以下是一些例子,主要为一些主流的备份工具 | |
rclone copy ${LINE} [remote:remote_dir] | |
# rclone支持多种网盘及对象存储,详见:https://github.com/rclone/rclone | |
bypy upload ${LINE} [remote_dir] | |
# bypy支持百度网盘的上传下载,详见:https://github.com/houtianze/bypy | |
fake115uploader -m ${LINE} [remote_dir] |
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
@tool | |
class_name EditorIconTexture | |
extends AtlasTexture | |
var icon :String: | |
set(val): | |
icon = val | |
_update_icon.call_deferred() | |
func _init(): |
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
backend per_ip_rates | |
stick-table type ip size 1m expire 10m store http_req_rate(10s) |
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
version: '4.5' | |
services: | |
# GITLAB | |
gitlab-web: | |
image: 'gitlab/gitlab-ce:latest' | |
restart: always | |
container_name: gitlab-web | |
hostname: '192.168.0.14' | |
environment: |
NewerOlder