This file contains 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
@echo off | |
title KMS Office 2019 | |
>nul 2>&1 "%SystemRoot%\system32\cacls.exe" "%SystemRoot%\system32\config\system" | |
if "%ErrorLevel%" NEQ "0" ( | |
echo 嘗試取得系統管理員權限 ... | |
goto UACPrompt | |
) else ( | |
goto getAdmin |
This file contains 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
@echo off | |
netsh winsock reset | |
netsh int ip reset | |
ipconfig /release | |
ipconfig /renew | |
ipconfig /flushdns |
This file contains 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
@echo off | |
set OPEN_SSL="C:\Program Files\OpenSSL-Win64\bin\openssl.exe" | |
set /P FILE=Input PFX Key File Name : | |
rem Extract Encrypt Private Key | |
%OPEN_SSL% pkcs12 -in %FILE% -nocerts -out encrypt.key | |
rem Extract Public Key | |
%OPEN_SSL% pkcs12 -in %FILE% -clcerts -nokeys -out certificate.crt |
This file contains 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
// ==UserScript== | |
// @name APK.TW 自動簽到 | |
// @namespace https://www.quilt.idv.tw/ | |
// @version 0.1 | |
// @description APK.TW 自動簽到 | |
// @author 棉被 | |
// @match https://apk.tw/* | |
// ==/UserScript== | |
let element = document.getElementById("my_amupper"); |
This file contains 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 <iostream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
// 建立水桶結構體,每個水桶有他的容量和初始水量 | |
typedef struct { | |
int capacity; | |
int start; |
This file contains 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 <iostream> | |
class StarPrintHelper { | |
private: | |
static bool shouldPrintStar(int current, int line, int direction, int j) { | |
for (int i = 1; i <= direction; ++i) { | |
if (i % 2 == 0) { | |
if (j == line * i - current - i + 2) { | |
return true; | |
} |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
namespace Stat | |
{ | |
public static class Program | |
{ | |
private const string FILE_NAME = "Data.txt"; | |
private static readonly IDictionary<string, int> stat = new Dictionary<string, int>(); |
This file contains 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
#!/bin/bash | |
# 請以 Root 使用者執行 (sudo su -) | |
apt-get update | |
apt-get dist-upgrade -y | |
apt-get install xrdp build-essential git autoconf libtool pkg-config libpulse-dev -y | |
adduser xrdp ssl-cert | |
systemctl restart xrdp | |
cd /root |
This file contains 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
using System.Runtime.InteropServices; | |
namespace ClockResolution | |
{ | |
public struct TimerResolution | |
{ | |
public double periodMin; | |
public double periodMax; | |
public double periodCurrent; | |
} |
This file contains 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
<?php | |
header("HTTP/1.1 200 OK"); | |
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); | |
header("Cache-Control: post-check=0, pre-check=0", false); | |
header("Pragma: no-cache"); | |
header("Connection: keep-alive"); | |
?> |
NewerOlder