Skip to content

Instantly share code, notes, and snippets.

View hklcf's full-sized avatar
🏠
Working from home

HKLCF hklcf

🏠
Working from home
View GitHub Profile
@echo off
color 0A
echo -----------------------------------------------------------
echo Copyright (c) 2007 HKLCF. All rights reserved.
echo -----------------------------------------------------------
echo Processing ... Please wait
echo/
echo -----------------------------------------------------------> Netowrk_Test_Report.txt
echo Copyright (c) 2007 HKLCF. All rights reserved.>> Netowrk_Test_Report.txt
echo ----------------------------------------------------------->> Netowrk_Test_Report.txt
fsutil file Createnew a.txt 104857600
Sub SendEmails()
Dim olApp As Outlook.Application
Dim olMail As MailItem
Dim i As Integer
Dim myEmailAttach As String
Set olApp = New Outlook.Application
i = 1
myEmailAddress = ThisWorkbook.Sheets(1).Range("B1").Offset(i, 0)
net stop wuauserv
del %systemroot%\SoftwareDistribution\DataStore\*.* /f /s /q
net start wuauserv
@echo off
cls
set hdd=C:\
cd %hdd%
set name=bootlog.txt
echo ####################>>%name%
date /T>>%name%
time /T>>%name%
exit
// ==UserScript==
// @name Ctrl+Enter for HKGalden
// @version 0.1
// @description add Ctrl+Enter function for HKGalden
// @include http://www.hkgalden.com/*
// @include https://www.hkgalden.com/*
// @match http://www.hkgalden.com/*
// @match https://www.hkgalden.com/*
// @author 超膠
// ==/UserScript==
<?php
/**
* Get Google Page Speed Screenshot
*
* Uses Google's Page Speed API to generate a screenshot of a website.
* Returns the image as a base64 jpeg image tag
*
* Usage Example:
* echo getGooglePageSpeedScreenshot("http://ghost.org", 'class="thumbnail"');
*