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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Caddy Websocket test</title> | |
</head> | |
<body> | |
<pre> | |
<span id="console" style="border: 1px solid black"></span> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Filtered Changesets | OpenStreetMap</title> | |
<link rel="stylesheet" href="node_modules/leaflet/dist/leaflet.css" /> | |
<script type="text/javascript" src="node_modules/leaflet/dist/leaflet.js"></script> | |
<script type="text/javascript" src="node_modules/moment/min/moment.min.js"></script> |
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
# Install git minimal | |
nix-env -i git-minimal | |
# Enable webkit in Konqueror | |
nix-env -i kwebkitpart | |
kbuildsycoca4 | |
# Change configuration | |
sudo -i nano /etc/nixos/configuration.nix |
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
https://github.com/siuying/legco-hansard-parser/ | |
Left the Chamber with the assistance of the Clerk and security personnel |
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
.../WixBinding/Project/Src/Project/WixProject.cs | 21 +++++++++++++++------ | |
1 file changed, 15 insertions(+), 6 deletions(-) | |
diff --git a/src/AddIns/BackendBindings/WixBinding/Project/Src/Project/WixProject.cs b/src/AddIns/BackendBindings/WixBinding/Project/Src/Project/WixProject.cs | |
index 64540d3..bad42f9 100644 | |
--- a/src/AddIns/BackendBindings/WixBinding/Project/Src/Project/WixProject.cs | |
+++ b/src/AddIns/BackendBindings/WixBinding/Project/Src/Project/WixProject.cs | |
@@ -40,12 +40,21 @@ namespace ICSharpCode.WixBinding | |
{ | |
SetProperty("OutputType", "Package"); |
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
BOOL IsAdmin() | |
{ | |
SID_IDENTIFIER_AUTHORITY NtAuthority = SECURITY_NT_AUTHORITY; | |
PSID AdministratorsGroup; | |
// Initialize SID. | |
if (!AllocateAndInitializeSid(&NtAuthority, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0, 0, &AdministratorsGroup)) | |
return false; | |
// Check whether the token is present in admin group. |
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
static bool IsDigit(char c) | |
{ | |
return c >= '0' && c <= '9'; | |
} | |
unsafe static int UnsafeStrCmpLogical(string s1, string s2) | |
{ | |
fixed (char* p1 = s1) | |
{ | |
fixed (char* p2 = s2) |