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
// ----------------------------------------------------------------------- | |
// <copyright file="LinkifyTextView.cs" company="Conglomo"> | |
// Copyright 2019 Peter Chapman. All rights reserved. | |
// </copyright> | |
// ----------------------------------------------------------------------- | |
namespace Conglomo.AndroidSupport | |
{ | |
using Android.Content; | |
using Android.Runtime; |
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
/// <summary> | |
/// StringUtilities class | |
/// </summary> | |
public static class StringUtilities | |
{ | |
/// <summary> | |
/// Encodes a string for a CSV field. | |
/// </summary> | |
/// <param name="field">The field to encode.</param> | |
/// <param name="separator">The separator (defaults to a comma).</param> |
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
<% @Page Language="C#" %> | |
<% | |
Response.Write("'" + System.Web.HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].Split(',')[0] + "'"); | |
%> |
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 | |
cls | |
rem Spectre Compatibility Registry Check | |
rem By Peter Chapman <peter@conglomo.co.nz> | |
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat /v cadca5fe-87d3-4b96-b7fb-a231484277cc | |
if %ERRORLEVEL% EQU 0 goto :exists | |
color 4 | |
echo FAIL: Registry Key Not Present | |
goto :end | |
:exists |
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
N REBOOT.COM | |
A 100 | |
MOV AX, 40 | |
MOV DS, AX | |
MOV AX, 1234 | |
MOV [72], AX | |
JMP FFFF:0 | |
R CX | |
10 |
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
// file: play2wav.c | |
#include <stddef.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#include <math.h> | |
#ifndef M_PI | |
#define M_PI 3.14159265358 | |
#endif |
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 <tchar.h> | |
#include <windows.h> | |
int main() | |
{ | |
MessageBox(NULL, _T("Testing, 123!"), _T("Test"), MB_OK); | |
} |
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 <windows.h> | |
int main() | |
{ | |
MessageBox(NULL, (LPCWSTR)L"Testing, 123!", (LPCWSTR)L"Test", MB_OK); | |
} |
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 <objbase.h> | |
#include <stdio.h> | |
int main(int argc, char *argv[]) | |
{ | |
/* Declare variables */ | |
GUID guid; | |
HRESULT result; | |
/* Display a help message */ |
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 <rpc.h> | |
#include <stdio.h> | |
int main(int argc, char *argv[]) | |
{ | |
/* Declare variables */ | |
UUID uuid; | |
RPC_STATUS result; | |
/* Display a help message */ |