pecl channel-update pecl.php.net
pecl clear-cache
pecl install xdebug
This file contains hidden or 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
| adapter: | |
| #ss代理, 在国内购买一台云服务器,安装好ShadowSocks代理服务器,iPhone版安装Wingy APP (SMART LIMITED的深蓝紫色免费版)。使用的本文的自定义配置YAML | |
| - id: proxyAdapter | |
| type: ss | |
| #修改ss_host为服务器地址 | |
| host: ss_host | |
| #修改ss_port为端口号 | |
| port: ss_port | |
| #修改ss_password为密码 | |
| password: ss_password |
This file contains hidden or 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
| 127.0.0.1 api.ad.xiaomi.com | |
| 127.0.0.1 sdkconfig.ad.xiaomi.com | |
| 127.0.0.1 ad.mi.com | |
| 127.0.0.1 ad.xiaomi.com | |
| 127.0.0.1 ad1.xiaomi.com | |
| 127.0.0.1 adv.sec.miui.com | |
| 127.0.0.1 test.ad.xiaomi.com | |
| 127.0.0.1 new.api.ad.xiaomi.com |
This file contains hidden or 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
| import io | |
| from flask import Flask, send_file | |
| app = Flask(__name__) | |
| @app.route('/logo.jpg') | |
| def logo(): | |
| """Serves the logo image.""" | |
| with open("logo.jpg", 'rb') as bites: |
This file contains hidden or 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
| #region Win10IoT Audit Code | |
| $CimSession = New-CimSession -ComputerName Win10IoT -Credential Administrator -Authentication Negotiate | |
| Get-CimInstance -ClassName Win32_OperatingSystem -CimSession $CimSession | |
| Get-CimInstance -ClassName Win32_Service -Filter 'Name = "InputService"' -CimSession $CimSession | Format-List * | |
| # Run the service audit function in CimSweep | |
| $ServicePermissions = Get-CSVulnerableServicePermission -CimSession $CimSession | |
| $ServicePermissions | Where-Object { $_.GroupName -eq 'NT AUTHORITY\Authenticated Users' } | |
| # The fact that Authenticated Users can change the service configuration means that |
http://embedded-lab.com/blog/stm32-gpio-ports-insights/
http://hertaville.com/stm32f0-gpio-tutorial-part-1.html
The libmaple libraries, on which STM32duino is based, provides access to registers by the syntax:
GPIOA->regs->REG
This file contains hidden or 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
| @-moz-document domain("baidu.com") { | |
| body { | |
| display: none; | |
| } | |
| html { | |
| margin: 30px; | |
| } | |
| html::after { |
This file contains hidden or 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 <stdlib.h> | |
| #include <string.h> | |
| #include "ring_buf.h" | |
| /* Ring bufffer / Circular buffer / Circular Queue implementation | |
| * The queue grows from the head and shrinks from the tail | |
| */ |
This file contains hidden or 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
| import skimage; | |
| from skimage import data | |
| from skimage.filters import threshold_otsu | |
| from skimage.segmentation import clear_border | |
| from skimage.measure import label | |
| from skimage.morphology import closing, square | |
| from skimage.measure import regionprops | |
| from skimage.color import label2rgb | |
| import cv2 | |
| import numpy as np |