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
List<string> aList = null; | |
foreach(var str in aList) {...} | |
//How I really wish this compiled: | |
var enumerator = aList == null ? null : aList.GetEnumerator(); | |
try { | |
while (enumerator != null && enumerator.MoveNext()) { | |
var element = (ElementType)enumerator.Current; |
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
<asp:Wizard runat="server" ID="GAWizard"> | |
<WizardSteps> | |
<asp:WizardStep runat="server" ID="Step1"> | |
Cut a hole in the box | |
</asp:WizardStep> | |
</WizardSteps> | |
</asp:Wizard> |
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
f = do require 'thing' |
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
{ | |
"files": [ | |
{"src": "Contents/example.dll"} | |
], | |
"metadata": { | |
"id": "e.1xample", | |
"authors": [ "Kevin Jones" ], | |
"owners": [ "Kevin Jones" ], | |
"requireLicenseAcceptance": false, | |
"tags": [ "example" ], |
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.IO; | |
namespace Baconator | |
{ | |
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
tell application "Microsoft Word" | |
activate | |
set currentZoom to percentage of zoom of view of active window | |
set newZoom to (round (currentZoom + 50) / 50) * 50 | |
log newZoom | |
if newZoom <= 500 then | |
set percentage of zoom of view of active window to newZoom | |
end if | |
end tell |
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
//Add these two imports at the top of 'CustomRules.js' | |
import System; | |
import System.Reflection; | |
//Create or add this to the 'OnBoot' function: | |
static function OnBoot() : void { | |
var ciphersField = FiddlerApplication.Assembly.GetType("Fiddler.HTTPSClientHello").GetField("dictTLSCipherSuites", BindingFlags.NonPublic | BindingFlags.Static); | |
var ciphers = ciphersField.GetValue(null); | |
ciphers.set_Item(0xCCA8, "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256"); |
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 Fiddler; | |
using HtmlAgilityPack; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
public class LinkAutoTamper : IAutoTamper2 | |
{ | |
public void AutoTamperRequestAfter(Session oSession) | |
{ |
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"; | |
document.addEventListener('DOMContentLoaded', () => { | |
const frame = document.getElementById('target-frame'); | |
if (frame && frame.src) { | |
const source = frame.src; | |
frame.parentElement.removeChild(frame); | |
window.location.href = source; | |
} | |
}); |
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
/* | |
1. In Fiddler, use "Ctrl+R" to open up the rules file. | |
2. Ctrl+F for "OnBoot" and uncomment it if it is (it is by default) | |
3. Replace the body of it with the one below and add the "ValidateCallback" function below OnBoot. | |
*/ | |
static function OnBoot() { | |
FiddlerApplication.add_OnValidateServerCertificate(ValidateCallback); | |
} |