Skip to content

Instantly share code, notes, and snippets.


  • Hong Kong
Block or report user

Report or block linquize

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View caddy_websocket.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Caddy Websocket test</title>
<span id="console" style="border: 1px solid black"></span>
linquize / index.html
Last active Nov 4, 2018
OpenStreetMap Filtered Changesets
View index.html
<!DOCTYPE html>
<html lang="en">
<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>
View gist:c25f0c8ae3c92965ae03
# Install git minimal
nix-env -i git-minimal
# Enable webkit in Konqueror
nix-env -i kwebkitpart
# Change configuration
sudo -i nano /etc/nixos/configuration.nix
View gist:5730243
Left the Chamber with the assistance of the Clerk and security personnel
linquize / WixProject.cs
Created Nov 15, 2012
SharpDevelop WixProject
View WixProject.cs
.../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");
View uac-mfc.cpp
BOOL IsAdmin()
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.
View StrCmpLogical.cs
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)
You can’t perform that action at this time.