Skip to content

Instantly share code, notes, and snippets.

View raws's full-sized avatar
🥯
dabbling in pumpernickel

Ross Paffett raws

🥯
dabbling in pumpernickel
View GitHub Profile
  1. Load Incommunicado mission on server and disable AI.
  2. Have two players join and pick slots, then start the mission.
  3. Do players crash as soon as they try to enter the game world after the briefing screen?
  4. Have players try to re-join server and enter mission while it's still running (JIP). Are they able to enter the game world?
  5. Load Incommunicado mission on server, but keep AI enabled.
  6. Have two players join and pick slots, then start the mission.
  7. Are the players able to enter the game world?
@raws
raws / gist:6415806
Created September 2, 2013 18:27
COOP 05 Incommunicado crash log
=======================================================
-------------------------------------------------------
Exception code: C0000005 ACCESS_VIOLATION at 00F4ABC8
graphics: D3D11
resolution: 2041x1132x32
Addons:
A3_Air_F_Beta_Heli_Transport_02 in a3\air_f_beta\heli_transport_02\
A3_Animals_F_Dog in a3\animals_f_beta\dog\
A3_Structures_F_Naval_Buoys in a3\structures_f\naval\buoys\
A3_Structures_F_Dominants_WIP in a3\structures_f\dominants\wip\
@raws
raws / 01-shk_startingPositionRandomizer.diff
Last active December 22, 2015 03:08
Patch for SHK_startingPositionRandomizer that puts clients in charge of moving the local player in ArmA 3.
diff --git a/shk_startingPositionRandomizer.sqf b/shk_startingPositionRandomizer.sqf
index 9a78306..d0c25a3 100644
--- a/shk_startingPositionRandomizer.sqf
+++ b/shk_startingPositionRandomizer.sqf
@@ -65,19 +65,18 @@
0.2 Switch to Arma 3, changed start marker to A3 equivalent. Now object height is also taken into account.
*/
-if isserver then {
- // [object, position of old point of reference, position of new point of reference]
<?php
$file_names = array('GOPR1772.jpg', 'GOPR1955.jpg', 'IMG_2393.jpg',
'IMG_2393_big.jpg', 'national-seismic-trace.png', 'foo_BIG.jpg');
$filtered_file_names = array_filter($file_names, function($value) {
return stripos(strtolower($value), '_big.') === FALSE;
});
var_dump($filtered_file_names);
?>
@raws
raws / 01-command.sh
Last active December 19, 2015 09:39
Output from fetch-movie-metadata.rb
ruby fetch-movie-metadata.rb '/Volumes/movies/A Fistful of Dollars (1964)'
@raws
raws / picroma_registration_alerter.rb
Last active December 19, 2015 08:49
Ruby script that throws up a Notification Center alert when Picroma user registrations open up so I can buy and download Cube World
#!/usr/bin/env ruby
require 'http'
require 'logger'
require 'terminal-notifier'
logger = Logger.new(STDOUT)
loop do
body = Http.get('https://picroma.com/account/create')
@raws
raws / treksubs.html
Last active December 19, 2015 07:48 — forked from anonymous/treksubs
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Star Trek Subs</title>
<style type="text/css" media="screen">
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@raws
raws / gist:5605719
Created May 18, 2013 20:41
OpenCV at its simplest
< sam> opencv is amazing
< greg> g-d i need to get started playing with it
< greg> esp. with a kinect sitting in my closet
< greg> has anyone made nice cookbooks yet for getting all the damn deps installed, last time i tried it was slightly painful
< sam> brew tap science; brew install opencv
< sam> c++ -o yourprogram yourprogram.cpp $(pkg-config --libs opencv)
< greg> yiss
< sam> pretty e-z
require 'socket'
require 'timeout'
class MCQuery
MAGIC_PREFIX = "\xFE\xFD"
PACKET_TYPE_CHALLENGE = "\x09"
PACKET_TYPE_QUERY = "\x00"
ID = "\x00\x00\x00\x00"
DEFAULTS = {
host: "localhost",
@raws
raws / appify
Created May 11, 2013 23:06 — forked from mathiasbynens/appify
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh