Skip to content

Instantly share code, notes, and snippets.

View alarian's full-sized avatar

Jordan Wright alarian

  • Irving, TX
View GitHub Profile
/* Note: don't run this all at once. There are prompts to run some queries in another session, etc. */
WHILE @@trancount > 0
ROLLBACK
GO
USE master;
GO
IF DB_ID('lockingtest') IS NOT NULL
@alarian
alarian / UrlToHyperlink.EXCEL.yaml
Created May 10, 2022 23:05
Converts text urls in the selected range into hyperlinks.
@alarian
alarian / Hyperlinks.EXCEL.yaml
Last active May 10, 2022 23:04
Creates, updates, and clears hyperlinks in a range.
@alarian
alarian / rename.js
Created February 23, 2022 12:42 — forked from scriptex/rename.js
Rename all files in a folder with NodeJS
const { join } = require('path');
const { readdirSync, renameSync } = require('fs');
const [dir, search, replace] = process.argv.slice(2);
const match = RegExp(search, 'g');
const files = readdirSync(dir);
files
.filter(file => file.match(match))
.forEach(file => {
const filePath = join(dir, file);
@alarian
alarian / CustomRules.js
Created October 6, 2021 21:02 — forked from mzlogin/CustomRules.js
Fiddler Custom Rules With Some Addition Feature
import System;
import System.Windows.Forms;
import Fiddler;
// INTRODUCTION
// This is the FiddlerScript Rules file, which creates some of the menu commands and
// other features of Fiddler. You can edit this file to modify or add new commands.
//
// The original version of this file is named SampleRules.js and it is in the
// \Program Files\Fiddler\ folder. When Fiddler first starts, it creates a copy named
@alarian
alarian / CustomRules.js
Created October 6, 2021 21:01 — forked from y3rsh/CustomRules.js
Fiddler Custom Rules
import System;
import System.IO;
import System.Windows.Forms;
import Microsoft.VisualBasic;
import Fiddler;
// GLOBALIZATION NOTE:
// Be sure to save this file with UTF-8 Encoding if using any non-ASCII characters
// in strings, etc.
//
@alarian
alarian / Fiddler Add 'IP' column
Created October 6, 2021 21:01
Fiddler Telerik - add "client ip" column
In the top left menu under:
Rules ------> Customize Rules....
And add this line:
FiddlerObject.UI.lvSessions.AddBoundColumn("IP", 100, "x-hostip");
under
var today: Date = new Date();
So it will look like this:
@alarian
alarian / Tweaks.reg
Created September 30, 2021 12:41 — forked from trongtinh1212/Tweaks.reg
Registry Tweaks Windows 10
Windows Registry Editor Version 5.00
;USE AT YOUR OWN RISK!
;USE AT YOUR OWN RISK!
;USE AT YOUR OWN RISK!
;Improves system responsiveness and network speed.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile]
"SystemResponsiveness"=dword:00000001
@alarian
alarian / regular_expression_engine_comparison.md
Created September 26, 2021 10:35 — forked from CMCDragonkai/regular_expression_engine_comparison.md
Regular Expression Engine Comparison Chart

Regular Expression Engine Comparison Chart

Many different applications claim to support regular expressions. But what does that even mean?

Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.

The information here is just copied from: http://regular-expressions.mobi/refflavors.html

@alarian
alarian / FirefoxDevEdition48.js
Created September 22, 2021 23:38 — forked from flaki/FirefoxDevEdition48.js
Go to firefox.com/developer. Paste the script into the console. Profit! 😎
/*
(!) Please make sure you've read the disclamer below! (!)
If you want to see how can you transform the Firefox Developer Edition landing
page into a fancy animation just
- navigate to http://firefox.com/developer *
- open the developer tools (F12)
- copy and paste this code into the console
- hit enter, and enjoy the show!
- you can follow the commentary via the console log