Skip to content

Instantly share code, notes, and snippets.

View wzc0x0's full-sized avatar
:octocat:
learning

wzc0x0

:octocat:
learning
View GitHub Profile
@wzc0x0
wzc0x0 / requestOrder.js
Created July 15, 2019 15:40
ajax order by request time
const url = "https://randomuser.me/api/?results="
let count = 0
let results = []
let cbCount = 0
while (count < 5) {
count++
asyncF(count)
}
@wzc0x0
wzc0x0 / style.css
Created March 18, 2019 03:02
滚动条css样式
/* 滚动条 */
::-webkit-scrollbar-thumb:horizontal { /*水平滚动条的样式*/
width: 5px;
background-color: #CCCCCC;
-webkit-border-radius: 6px;
}
::-webkit-scrollbar-track-piece {
background-color: #fff; /*滚动条的背景颜色*/
-webkit-border-radius: 0; /*滚动条的圆角宽度*/
}
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
[HKEY_CLASSES_ROOT\*\shell\runas]
@="获取超级管理员的所有权限"
"Icon"="C:\\Windows\\System32\\imageres.dll,-78"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@wzc0x0
wzc0x0 / update_gfwlis.sh
Created October 29, 2018 02:57
update_gfwlis
#!/bin/bash
# update_gfwlist.sh
# Author : VincentSit
# Copyright (c) http://xuexuefeng.com
#
# Example usage
#
# ./whatever-you-name-this.sh
#
# Task Scheduling (Optional)
@wzc0x0
wzc0x0 / dialog.vue
Last active October 14, 2018 14:09
dialog.html
<template>
<div>
<div class="page">
<button @click="isShow = true">点击</button>
</div>
<transition name="fade">
<div class="dialog" v-if="isShow" @click="isShow = false">
<div class="dialog-overlay"></div>
<div class="dialog-content">
<div class="box"></div>

0. 资源

1. 总述

上一篇总结了uhttpd的工作方式, openwrt中利用他作为web服务器, 实现客户端web页面配置功能. 对于request处理方式, 采用的是cgi, 而所使用的cgi程序就是luci, 工作框架如下图所示: