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.Diagnostics; | |
using System.Threading.Tasks; | |
namespace NetworkAdaptersUtility | |
{ | |
class Program | |
{ | |
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.ServiceProcess; | |
using System.Diagnostics; | |
namespace RestartService | |
{ | |
class Program | |
{ | |
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
<cfscript> | |
public string function combinePaths(required array paths) { | |
var fullPath = ""; | |
for(var p=1; p <= ArrayLen(paths); p++) { | |
fullPath &= paths[p]; | |
if(Right(paths[p],1) == "\") continue; // Continue to Next iteration if \ is already there | |
if(len((trim(GetFileFromPath(paths[p]) == 0)))) break; // Exit Loop on File Found // File should be last element in array | |
fullPath &= "\"; | |
} | |
return fullPath; |
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 tLogger | |
{ | |
public class Log | |
{ | |
private static Int32 maxFileSize = 10240000; // 10 MB |
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
component { | |
this.name = 'MyApp' & hash(getCurrentTemplatePath()); | |
this.applicationTimeout = createTimeSpan(1,0,0,0); | |
this.sessionTimeout = createTimeSpan(1,0,0,0); | |
this.sessionManagement = true; | |
this.setClientCookies = false; | |
public boolean function onApplicationStart() { | |
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
<cfscript> | |
writeDump( getCurrentFboRates() ); | |
LOCAL.aircraftTypeId = 1440; | |
LOCAL.startRange = 1; | |
LOCAL.endRange = 99; | |
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
<?php | |
DEFINE('_MINECRAFT_SERVER_DIRECTORY_','C:\Minecraft Server Files'); |
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.IO; | |
using System.Net; | |
using Newtonsoft.Json; | |
namespace CloudFlareApiClient | |
{ | |
class Program | |
{ |
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
import os | |
import datetime | |
import re | |
import socket | |
import struct | |
import uuid | |
def normalize_ipv4(ip): | |
try: |
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
<script type="text/javascript" language="javascript"> | |
var img = document.getElementById("myImage"); | |
img.addEventListener("click", function(event) { | |
var canvas = document.createElement('canvas'); | |
canvas.width = img.width; | |
canvas.height = img.height; | |
canvas.getContext('2d').drawImage(img, 0, 0, img.width, img.height); | |
var p = canvas.getContext('2d').getImageData(event.offsetX, event.offsetY, 1, 1).data; | |
var hex = "#" + ("000000" + rgbToHex(p[0], p[1], p[2])).slice(-6); |
OlderNewer