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
@raws
raws / BuildMenu.cs
Created December 24, 2013 23:05
Starfarer's Unity build pipeline
using UnityEditor;
using UnityEngine;
namespace Blolol.Starfarer.Editor {
public class BuildMenu : MonoBehaviour {
[MenuItem("Starfarer/Build/Build for All Platforms")]
public static void BuildForAll() {
BuildForLinux();
BuildForMac();
BuildForWindows();
#!/bin/bash
access_token='...'
repo='...'
timestamp="$(date "+%s")"
github_api_request() {
local endpoint="https://api.github.com$1"
local file_name="$2"
curl -s \
@raws
raws / MacBook Air
Last active December 27, 2015 06:19
$ TESTOPTS="-h" rake
/Users/ross/.rbenv/versions/2.0.0-p247/bin/ruby -I"lib:test" -I"/Users/ross/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib" "/Users/ross/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader.rb" "test/unit/basic_stat_request_packet_test.rb" "test/unit/basic_stat_request_test.rb" "test/unit/basic_stat_response_packet_test.rb" "test/unit/handshake_request_packet_test.rb" "test/unit/handshake_request_test.rb" "test/unit/handshake_response_packet_test.rb" "test/unit/int_stringz_test.rb" -h
Test::Unit automatic runner.
Usage: /Users/ross/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader.rb [options] [-- untouched arguments]
-r, --runner=RUNNER Use the given RUNNER.
(c[onsole], e[macs], x[ml])
--collector=COLLECTOR Use the given COLLECTOR.
(de[scendant], di[r], l[oad], o[bject]_space)
-n, --
@raws
raws / MacBook Air
Last active December 27, 2015 06:19
Difference in [Mini]Test::Unit runner output between two machines
$ rake
/Users/ross/.rbenv/versions/2.0.0-p247/bin/ruby -I"lib:test" -I"/Users/ross/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib" "/Users/ross/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader.rb" "test/unit/basic_stat_request_packet_test.rb" "test/unit/basic_stat_request_test.rb" "test/unit/basic_stat_response_packet_test.rb" "test/unit/handshake_request_packet_test.rb" "test/unit/handshake_request_test.rb" "test/unit/handshake_response_packet_test.rb" "test/unit/int_stringz_test.rb"
Loaded suite /Users/ross/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader
Started
.........
Finished in 0.0271 seconds.
9 tests, 21 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
2013-10-25 17:21:24 -0400 [INFO] 2013-10-25 17:21:24 [STDERR] java.net.SocketTimeoutException: Read timed out uuid="5320c4d0-1fe9-0131-ae01-0d397dd87b3a" direction="in"
2013-10-25 17:21:24 -0400 [INFO] 2013-10-25 17:21:24 [STDERR] at java.net.SocketInputStream.socketRead0(Native Method) uuid="5320ca90-1fe9-0131-ae01-0d397dd87b3a" direction="in"
2013-10-25 17:21:24 -0400 [INFO] 2013-10-25 17:21:24 [STDERR] at java.net.SocketInputStream.read(SocketInputStream.java:150) uuid="5320cee0-1fe9-0131-ae01-0d397dd87b3a" direction="in"
2013-10-25 17:21:24 -0400 [INFO] 2013-10-25 17:21:24 [STDERR] at java.net.SocketInputStream.read(SocketInputStream.java:121) uuid="5320e920-1fe9-0131-ae01-0d397dd87b3a" direction="in"
2013-10-25 17:21:24 -0400 [INFO] 2013-10-25 17:21:24 [STDERR] at java.net.SocketInputStream.read(SocketInputStream.java:203) uuid="5320ec50-1fe9-0131-ae01-0d397dd87b3a" direction="in"
2013-10-25 17:21:24 -0400 [INFO] 2013-10-25 17:21:24 [STDERR] at java.io.DataInputStream.readUnsignedByte(DataInputStrea
  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)'