Skip to content

Instantly share code, notes, and snippets.

Avatar

Agent Revolution AgentRev

  • Québec, Canada
View GitHub Profile
@AgentRev
AgentRev / firewall_cleanup.ps1
Created Dec 22, 2020
Removes orphaned entries from the Windows Firewall.
View firewall_cleanup.ps1
#
# 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 Apr 1, 2020
Bridge-building script for Arma 3; https://imgur.com/a/eGhhF
View buildBridge.sqf
/* 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 Sep 15, 2019
R3F v3.0 A3W early conversion attempt
View surveiller_conditions_actions_menu.sqf
/**
* 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 Jul 29, 2018 — forked from Thomasvdam/soundCloudPlaylist.js
Copy SoundCloud playlist items from one to another, and add user tracks to playlist
View soundCloudPlaylist.js
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 Aug 1, 2019
Mad Scientist YouTubers
View MadScientists.md
@AgentRev
AgentRev / fn_createCrewUAV.sqf
Last active Oct 19, 2020
Create UAV crew for specific side
View fn_createCrewUAV.sqf
// @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 Mar 19, 2017
A3W extDB3 ini - untested
View a3wasteland.ini
[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.
View test.sh
#!/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
@AgentRev
AgentRev / fuck_win10_reboot.bat
Last active Mar 17, 2020
Shut the fuck up you stupid fucking Windows Update reboot shitfuck - run as admin
View fuck_win10_reboot.bat
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"
View a3wasteland_db_v2.05.sql
-- MySQL Script generated by MySQL Workbench
-- 06/26/16 19:07:56
-- Model: A3Wasteland DB Version: 2.05
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------