Some very cool Arma 3 SQF scripting samples Shoot a vehicle or soldier 50,000 feet into the sky. cursorTarget setVelocity [0,0,1000]; hint format["%1 Is flying to space!",name cursorTarget];cursorTarget setVelocity [0,0,1000]; hint format["%1 Is flying to space!",name cursorTarget]; Spawn an AAF support crate in random houses around the HQ. _houseList = getPos _cargo nearObjects ["House",500]; { …

This simple script will spawn a jet to patrol an AO and attack any enemy vehicle or helicopter it sees. // Spawn a CAS jet to patrol the AO.   _plane = createVehicle ["O_Plane_CAS_02_F", getMarkerPos("plane"), [], 0, "FLY"]; _pilotguy = [[26761.4,24593.4,0.000909805], EAST, ["O_Pilot_F"],[],[],[],[],[],232] call BIS_fnc_spawnGroup;   ((units _pilotguy) select 0) moveInDriver _plane; _wpcas = _pilotguy …

Glances is a very detailed script that will print out comprehensive information about your Linux workstation or server. To install the Glances script clone the git repository this way. [email protected]:~$ git clone https://github.com/nicolargo/glances.git Cloning into ‘glances’… remote: Counting objects: 13758, done. remote: Total 13758 (delta 0), reused 0 (delta 0), pack-reused 13758 Receiving objects: 100% …

The weapon sway in Arma 3 is out of control right now. With the 1.54 Nexus update, the weapon sway is like a drunken Irishman. But you can remove this. player setCustomAimCoef 0.1; player addMPEventhandler ["MPRespawn", {player setCustomAimCoef 0.1}];   player setUnitRecoilCoefficient 0.1; player addEventHandler ["Respawn", {player setUnitRecoilCoefficient 0.1}];   player enablestamina false player addEventHandler …

The unp script for Linux is a script that will detect what the archive is and call the appropriate program to handle it. This is a very useful script for the command line user. In the example below I am unpacking a zip file. [email protected]:~/Downloads$ unp northwind.sql_.zip Archive: northwind.sql_.zip inflating: [email protected]:~/Downloads$ unp northwind.sql_.zip Archive: northwind.sql_.zip …

This simple little script will print an updating clock in the terminal. #!/bin/sh watch -t -n 1 ‘date +%H:%M:%S | figlet’ This version will print a cow that tells you the time. #!/bin/sh watch -t -n 1 ‘date +%H:%M:%S | cowsay’ And finally, this prints the time using blocky characters. #!/bin/sh watch -t -n 1 …

#!/usr/bin/perl   use warnings;   use Net::Ping;   # code source: http://www.perlmonks.org/?node_id=943892 # More: http://stackoverflow.com/questions/3960595/how-can-i-ping-a-host-with-a-perl-one-liner-with-netping   #$| = 1; print "Please type a host to check..n"; $host = <>;   if (length($host) < 3) { print "You did not type a host!n"; exit(0); }   my @proto = ("tcp", "udp", "icmp", "stream", "syn");   foreach …

This Perl script will print some information about your networking set-up on your Linux machine. #!/usr/bin/perl   use warnings;   $iface = "eth0";   @data = `ifconfig`;   $net = $data[1];   $kernel = `uname -r`;   printf("\n*————————————-*\n");   printf("The IP of %s is:%s\n", $iface, $net); printf("The kernel version is: %s\n", $kernel);   printf("\n*————————————-*\n");#!/usr/bin/perl use …