This file contains hidden or 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
| class ApiCache { | |
| static CACHE_KEY_PREFIX = '__API_CACHE__'; | |
| constructor(axios) { | |
| this.axios = axios.create(); | |
| this.axios.interceptors.request.use(this.requestInterceptor.bind(this)); | |
| } | |
| // djb2 hash function | |
| hash(str) { |
This file contains hidden or 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.IO; | |
| using System.Security.Cryptography; | |
| namespace RsaFileCrypto | |
| { | |
| public class RsaFileHelper | |
| { | |
| // Signs a file using a private key (XML format), using a byte array | |
| public void SignFile(string inputFile, string signatureFile, string privateKeyXml) | |
| { |
This file contains hidden or 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.Timers; | |
| namespace MainPackage | |
| { | |
| class MainClass | |
| { | |
| private static Timer timer; | |
| static void Main(string[] args) |
This file contains hidden or 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; | |
| namespace Elapsed | |
| { | |
| public class ElapsedTimeService | |
| { | |
| public class ElapsedTime | |
| { | |
| public DateTime? Last { get; set; } |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
| <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> | |
| <assemblyIdentity | |
| version="1.0.0.0" | |
| processorArchitecture="X86" | |
| name="main" | |
| type="win32" | |
| /> | |
| <description>Elevated Privelege UAC Demo</description> | |
| <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> |
This file contains hidden or 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.IO; | |
| namespace Logger | |
| { | |
| public class TextLoggerService | |
| { | |
| private readonly string filePath; | |
| public TextLoggerService() |
This file contains hidden or 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.Management; | |
| /* | |
| https://learn.microsoft.com/windows/win32/wmisdk/wmi-glossary/ | |
| https://learn.microsoft.com/windows/win32/wmisdk/wmi-reference/ | |
| */ | |
| namespace WMI | |
| { | |
| public class WmiQueryService |
This file contains hidden or 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.IO; | |
| public class CustomTextLogger<T> | |
| { | |
| private readonly string filePath; | |
| public CustomTextLogger() | |
| { | |
| string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); |
This file contains hidden or 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
| "use strict"; | |
| var fs = require('fs'); | |
| var http = require('http'); | |
| var https = require('https'); | |
| var express = require('express'); | |
| var app = express(); | |
| app.get('/', function (req, res) { | |
| void req; | |
| res.send("Date: ".concat(new Date())); | |
| }); |
This file contains hidden or 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 © 2013 Mario (BU) Flores Rey CC BY-NC-SA 4.0 DEED | |
| License: https://creativecommons.org/licenses/by-nc-sa/4.0/ | |
| Tested on GO v1.2.2 | |
| */ | |
| package main | |
| import ( | |
| "fmt" |
NewerOlder