通过第一篇《使用树莓派3B打造超强路由之一:初装》的努力,树莓派3B已经可以作为一台超低能耗、随身携带的开发用服务器来使用了。但这对于目标——打造超强路由而言,才刚刚开始。接下来,我们需要将其打磨成一台基本的无线路由器。
WARNING 本文所有指令均仅供参考,切勿无脑复制粘贴!
| #Requires -version 2.0 | |
| ## Stupid PowerShell Tricks | |
| ################################################################################################### | |
| add-type @" | |
| using System; | |
| using System.Runtime.InteropServices; | |
| public class Tricks { | |
| [DllImport("user32.dll")] | |
| private static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow); | |
| Format: Log Type - Time(microsec) - Message - Optional Info | |
| Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic | |
| S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00096 | |
| S - IMAGE_VARIANT_STRING=DAABANAZA | |
| S - OEM_IMAGE_VERSION_STRING=CRM | |
| S - Boot Config, 0x00000021 | |
| S - Core 0 Frequency, 0 MHz | |
| B - 261 - PBL, Start | |
| B - 1339 - bootable_media_detect_entry, Start | |
| B - 1679 - bootable_media_detect_success, Start |
通过第一篇《使用树莓派3B打造超强路由之一:初装》的努力,树莓派3B已经可以作为一台超低能耗、随身携带的开发用服务器来使用了。但这对于目标——打造超强路由而言,才刚刚开始。接下来,我们需要将其打磨成一台基本的无线路由器。
WARNING 本文所有指令均仅供参考,切勿无脑复制粘贴!
| package com.jelies.spring3tomcat7.config.quartz; | |
| import org.quartz.spi.TriggerFiredBundle; | |
| import org.springframework.beans.factory.config.AutowireCapableBeanFactory; | |
| import org.springframework.context.ApplicationContext; | |
| import org.springframework.context.ApplicationContextAware; | |
| import org.springframework.scheduling.quartz.SpringBeanJobFactory; | |
| /** | |
| * This JobFactory autowires automatically the created quartz bean with spring @Autowired dependencies. |