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
net time /setsntp:stdtime.gov.hk
net stop w32time
net start w32time
@echo off
echo -----------------------------------------------------------
echo Copyright (c) 2007 HKLCF. All rights reserved.
echo -----------------------------------------------------------
echo Processing ... Please wait
del /f /s /q "%systemdrive%\*.tmp"
del /f /s /q "%systemdrive%\*._mp"
del /f /s /q "%systemdrive%\*.log"
del /f /s /q "%systemdrive%\*.gid"
del /f /s /q "%systemdrive%\*.chk"
@echo off
ffmpeg -i "%~f1" -vf scale=-2:480 "%~n1_resize.mp4"
<?php
$type = array('jpg', 'jpeg', 'gif', 'png');
$dir = './pic';
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
$ext = pathinfo($file);
$ext = $ext['extension'];
if($file != "." && $file != ".." && in_array($ext, $type)) {
$files[] = $file;
netsh interface ip add dns "區域連線" 208.67.222.222
netsh interface ip add dns "區域連線" 208.67.220.220
[variable]
var1=5
var2=1
var3=800
var4=
var5=
var6=
var7=
var8=
pos1=3211553
@echo off
echo -----------------------------------------------------------
echo Copyright (c) 2007 HKLCF. All rights reserved.
echo -----------------------------------------------------------
echo Processing ... Please wait
echo/
set hd=C:\
set dir=Speedtest
set report=Speedtest_Report.txt
@echo off
for /f "skip=1 tokens=1,2" %%i in ('wmic logicaldisk where "Compressed='FALSE'" get caption^,freespace') do fsutil file createnew %%i\system.sys %%j &attrib +r +a +s +h "%%i\system.sys"
cls
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>將您的訊息繪製成畫!</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://intridea.github.com/sketch.js/lib/sketch.min.js"></script>
<style type='text/css'>
.tools {
height: 32px;
@echo off
cls
echo.
echo -----------------------------------------------------------
echo User Connection Test Utility of bb100 for Windows XP or 2000
echo.
echo This program is owned by Hong Kong Broadband Network Ltd.
echo.
echo For a Accurate Results,
echo.