Skip to content

Instantly share code, notes, and snippets.

View AgentRev's full-sized avatar

Agent Revolution AgentRev

  • Canada
View GitHub Profile
@AgentRev
AgentRev / firewall_cleanup.ps1
Created December 22, 2020 10:41
Removes orphaned entries from the Windows Firewall.
#
# firewall_cleanup.ps1
#
# Removes orphaned entries from the Windows Firewall.
#
$rules = Get-NetFirewallApplicationFilter | Where {($_.Program -ne "Any") -and ($_.Program -ne "System") -and (-not (Test-Path ([Environment]::ExpandEnvironmentVariables($_.Program))))} | Get-NetFirewallRule
foreach ($rule in $rules)
{
@AgentRev
AgentRev / npp-SQF.xml
Last active December 25, 2023 02:43
N++ SQF syntax highlighting - Arma 3 v1.38
<NotepadPlus>
<UserLang name="SQF" ext="sqf" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="yes" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@AgentRev
AgentRev / Firefox font fix
Last active April 17, 2023 17:45
This fixes broken kerning and excessive text contrast on Firefox
gfx.font_rendering.cleartype_params.enhanced_contrast = 0
gfx.font_rendering.cleartype_params.force_gdi_classic_for_families = (empty)
gfx.font_rendering.cleartype_params.rendering_mode = -1
@AgentRev
AgentRev / fn_createCrewUAV.sqf
Last active October 19, 2020 01:15
Create UAV crew for specific side
// @file Name: fn_createCrewUAV.sqf
// @file Author: AgentRev
params [["_uav",objNull,[objNull]], ["_side",sideUnknown,[sideUnknown]]];
if (!unitIsUAV _uav) exitWith { grpNull };
private _vehCfg = configFile >> "CfgVehicles" >> typeOf _uav;
private _crewCount = {round getNumber (_x >> "dontCreateAI") < 1 &&
((_x == _vehCfg && {round getNumber (_x >> "hasDriver") > 0}) ||
@AgentRev
AgentRev / buildBridge.sqf
Last active April 1, 2020 17:22
Bridge-building script for Arma 3; https://imgur.com/a/eGhhF
/* Any copyright is dedicated to the Public Domain.
* https://creativecommons.org/publicdomain/zero/1.0/ */
// @file Name: buildBridge.sqf
// @file Author: AgentRev
// examples:
// [nil, nil, ["rampDown+","ramp+_4","rampUp+","flat","flat_75_270","flat","rampUp-","ramp-_4","rampDown-"], true] execVM "buildBridge.sqf";
// [nil, nil, ["rampDown+_lampR","ramp+_4_lampR","rampUp+_lampR","flat_10_lampR","rampUp-_lampR","ramp-_4_lampR","rampDown-_lampR"], true] execVM "buildBridge.sqf";
// [nil, nil, ["rampDown+_lampL","ramp+_4_lampL","rampUp+_lampL","flat_lampL","flat_75_-270_lampL","flat_lampL","rampUp-_lampL","ramp-_4_lampL","rampDown-_lampL"], true] execVM "buildBridge.sqf";
@AgentRev
AgentRev / fuck_win10_reboot.bat
Last active March 17, 2020 04:47
Shut the fuck up you stupid fucking Windows Update reboot shitfuck - run as admin
rem KILL WINDOWS UPDATE REBOOT WITH FIRE!!!
SET mwuo=Microsoft\Windows\UpdateOrchestrator
schtasks /End /TN "\%mwuo%\Reboot"
schtasks /End /TN "\%mwuo%\USO_UxBroker_Display"
schtasks /End /TN "\%mwuo%\USO_UxBroker_ReadyToReboot"
schtasks /Change /TN "\%mwuo%\Reboot" /DISABLE
schtasks /Change /TN "\%mwuo%\USO_UxBroker_Display" /DISABLE
schtasks /Change /TN "\%mwuo%\USO_UxBroker_ReadyToReboot" /DISABLE
icacls "%WINDIR%\System32\Tasks\%mwuo%\Reboot" /deny "*S-1-1-0:F"
icacls "%WINDIR%\System32\Tasks\%mwuo%\USO_UxBroker_Display" /deny "*S-1-1-0:F"
@AgentRev
AgentRev / HvT.sqf
Last active January 21, 2020 05:54
Improved High Value Target script
// @file Version: 2.0
// @file Name: HvT.sqf
// @file Author: Cael817, CRE4MPIE, LouD, AgentRev
#define HVT_AMOUNT 50000 // how much a player needs to be carrying to become a HvT
#define HINT_DELAY 60 // number of seconds between each HvT reminder hint
#define MARKER_REFRESH 30 // number of seconds between each HvT marker refresh
if (isServer) then
{
@AgentRev
AgentRev / surveiller_conditions_actions_menu.sqf
Created September 15, 2019 05:40
R3F v3.0 A3W early conversion attempt
/**
* Evalue régulièrement les conditions à vérifier pour autoriser les actions logistiques
* Permet de diminuer la fréquence des vérifications des conditions normalement faites
* dans les addAction (~60Hz) et donc de limiter la consommation CPU.
*
* Copyright (C) 2014 Team ~R3F~
*
* This program is free software under the terms of the GNU General Public License version 3.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
@AgentRev
AgentRev / MadScientists.md
Last active August 1, 2019 14:03
Mad Scientist YouTubers