Skip to content

Instantly share code, notes, and snippets.

View AgentRev's full-sized avatar

Agent Revolution AgentRev

  • Canada
View GitHub Profile
@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 / 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 / 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 / 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 / soundCloudPlaylist.js
Last active July 29, 2018 05:51 — forked from Thomasvdam/soundCloudPlaylist.js
Copy SoundCloud playlist items from one to another, and add user tracks to playlist
const WAIT_OPEN_PLAYLIST_POPUP = 1000;
const WAIT_AFTER_ADD_PLAYLIST = 1500;
const PLAYLIST_NAME = 'Target';
const listItems = Array.from(document.querySelectorAll('.sc-button-group.sc-button-group-small:first-child'));
const addItemToPlaylist = (index) => {
const node = listItems[index];
@AgentRev
AgentRev / MadScientists.md
Last active August 1, 2019 14:03
Mad Scientist YouTubers
@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 / a3wasteland.ini
Last active March 19, 2017 17:55
A3W extDB3 ini - untested
[Default]
Version = 1
;; Used incase there is ever a breaking change, or to inform user in log about a new feature.
Strip Chars = /\|;{}<>
;; List of characters to strip out
Strip Chars Mode = 0
;; 0 = Strip Bad Chars, 1 = Strip + Log Bad Chars, 2 = Return Error & Log Bad Chars
;; Note: Logging on works when sending data to database.
@AgentRev
AgentRev / test.sh
Last active December 18, 2016 00:55
test
#!/bin/bash
for j in `seq 1 250`;
do
roxterm --tab -e "/bin/bash -c 'ping6 -w 15 -f 2001:6a8:28c0:2017::FF:00:FF'"
done