More evil scripts for Arma 3 trolling.

This script will spawn a cloud of mines around the player, this is a lot of fun to deal with. _source = eyepos player; _distance = 35;   for "_i" from 1 to 1000 do { _veh = createVehicle ["APERSMineDispenser_Mine_Ammo_Scripted", _source, [], 0, "CAN_COLLIDE"]; _pos = _source vectorAdd (vectorNormalized [(random 2)-1,(random 2)-1,(random 2)-1] vectorMultiply _distance); … Read more

How to block scripts in Firefox with uBlock origin.

Blocking scripts in uBlock origin is very easy, if you know the path to an annoying script, it may be easily blocked. Open the dashboard in uBlock origin and use the code below to block the script. ! 2021-05-25 https://boards.4channel.org ||bid.glass/lib/bg.js$script,domain=boards.4channel.org! 2021-05-25 https://boards.4channel.org ||bid.glass/lib/bg.js$script,domain=boards.4channel.org This is another example, blocking the end screen and annotations in … Read more

Useful scripts for Arch Linux users.

This script will check for updates on an Arch Linux machine. This could be run as a daemon with CRON. #!/bin/bash export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DISPLAY=:0 tmpdb=/tmp/checkup-db dbpath=/var/lib/pacman mkdir /tmp/checkup-db && ln -s "${dbpath}/local" "${tmpdb}" fakeroot — yay -Syyb "${tmpdb}" –logfile /dev/null updates="$(yay -Qub "${tmpdb}" 2>/dev/null)" [[ -n "$updates" ]] && notify-send -t 299000 ‘New updates available’ … Read more

Very cool Linux scripts I have found on the Internet.

A collection of nice Linux scripts I have found on the Internet. Nice pipes terminal screensaver, this is a nice addition to your Linux terminal emulator. https://github.com/pipeseroni/pipes.sh. A collection of very useful MPV user scripts. https://github.com/mpv-player/mpv/wiki/User-Scripts. use Byzanz to capture your Linux desktop to a file for a certain duration. https://github.com/ryanoasis/public-bash-scripts/blob/master/screen-capturing/byzanz-screencapture-monitor1.sh. A nice packet capture … Read more

Arma 3 script samples and functions to make a great mission.

To play music while players enjoy your mission, use this simple but effective function. 6 fademusic 0.1;   [] call BIS_fnc_jukebox;6 fademusic 0.1; [] call BIS_fnc_jukebox; This plays ambient music, randomly selecting tracks to play. Put this in the initPlayerLocal.sqf file. Put this code in the init of a vehicle at the base to have … Read more

Code for Arma 3 to spawn you in a random jet with infinite ammo and refilling fuel.

This code will spawn you in a jet flying over the AO, this will pick a random jet and spawn you a long way up, so you will not crash before orienting yourself. Put this script in initPlayerLocal.sqf. private "_jet"; _jet = createVehicle [selectRandom ["O_Plane_Fighter_02_Stealth_F", "I_Plane_Fighter_04_F", "B_Plane_Fighter_01_Stealth_F", "O_Plane_CAS_02_dynamicLoadout_F"], getArray (configFile >> "CfgWorlds" >> worldName >> … Read more

Some more Arma 3 script samples.

Very useful Arma 3 scripting samples This scripting sample will remove the solar panels and doors from the Orange DLC tents and make them look like a good old fashioned MASH tent. med1 animateSource ["MedSign_Hide",1,true]; med1 animateSource ["Door_Hide",1,true]; med1 setObjectTextureGlobal [0,"\A3\Structures_F_Orange\Humanitarian\Camps\Data\MedicalTent_01_tropic_F_CO.paa"];med1 animateSource ["MedSign_Hide",1,true]; med1 animateSource ["Door_Hide",1,true]; med1 setObjectTextureGlobal [0,"\A3\Structures_F_Orange\Humanitarian\Camps\Data\MedicalTent_01_tropic_F_CO.paa"]; Add this code to your initServer.sqf … Read more

Some useful bash shell scripts for the Linux user.

This function will allow your computer to speak. function shellspeak() { mplayer "http://translate.google.com/translate_tts?tl=en&q=$(echo $@ | sed ‘s/\s/+/’)" > /dev/null 2>&1; }function shellspeak() { mplayer "http://translate.google.com/translate_tts?tl=en&q=$(echo $@ | sed ‘s/\s/+/’)" > /dev/null 2>&1; } A script that will change all files in a directory to lowercase filenames. function lowercase() # move filenames to lowercase. { for … Read more

A useful bash shell script that will only run a command as the root user.

This is a shell script that will only run if the user executes it as the root user. I got this tip here: http://www.cyberciti.biz/tips/shell-root-user-check-script.html. #!/bin/bash     CMDROOT="yum update"   if [[ $EUID -ne 0 ]]; then echo echo "You must be a root user to run this command." 2>&1 exit 1 else echo echo … Read more