Skip to content

Instantly share code, notes, and snippets.

View lacostej's full-sized avatar

Jerome Lacoste lacostej

View GitHub Profile
package org.jenkinsci.plugins.unity3d;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.recipes.LocalData;
import static junit.framework.Assert.assertNotNull;
public class IntegrationTests {
@lacostej
lacostej / 1411390919231.app.js
Created September 24, 2014 05:02
Beautified GameAnalytics.com Angular JS client side (v 1411390919231). From https://go.gameanalytics.com/static/ga-app/scripts/1411390919231.app.js
This file has been truncated, but you can view the full file.
"use strict";
angular.module("ga.app", ["ngCookies", "ngRoute", "ngAnimate", "ngSanitize", "ngTouch", "swipe", "ui.router", "pasvaz.bindonce", "ga.app.routes.admin", "ga.app.routes.studio", "ga.app.routes.game", "ga.app.routes.user", "ga.app.routes.public", "ga.app.routes.error", "ga.app.partials.toolHeader", "ga.app.springboard", "ga.app.footer", "ga.services.user", "ga.services.tracking", "ga.services.pardot", "ga.services.announcement", "ga.pages.templates", "ga.pages.content", "ga.app.headerContent", "ga.components.rollbar", "ga.utils.tracking", "ga.cache-buster", "ga.api.statuspage", "ga.ui.tour", "ga.ui.notify", "ga.ui.modal", "ga.config", "ga.services.user"]).config(function($locationProvider, $stateProvider, $urlRouterProvider, $provide, $httpProvider) {
var SILENT_USER_RESOLVE = function($q, gaServicesUser) {
return gaServicesUser.resolveUser().catch(function() {
return $q.when(null)
})
};
$provide.decorator("$exceptionHandler", function
@lacostej
lacostej / gist:6ec27617190a154dfd3d
Created October 23, 2014 20:39
Zyxell p2812 connection drop log
1 Jan 1 01:01:19 info WAN Physical Link Down
2 Jan 1 05:50:10 info DHCP send discover packet
3 Jan 1 05:50:10 info DHCP receive offer packet
4 Jan 1 05:50:10 info DHCP send request packet
5 Jan 1 05:50:11 info DHCP receive ACK option
6 Jan 1 05:50:13 info WAN Physical Link Up. Upstream 5536 kbps Downstream 22320 kbps, DSL Type is VDSL
7 Jan 1 05:50:27 info System Bootup Successfully
8 Oct 23 03:04:20 info 0:Tx Inform, evt=0x24, rty=0
9 Oct 23 03:04:21 info 0:Rx InformResponse
10 Oct 23 03:04:21 info 0:Tx EmptyPost
@lacostej
lacostej / gist:9573a94b7d1e6406ad43
Created October 23, 2014 20:41
xcode extremely slow start /var/log/system.log
Someone attempted to start application App:"Xcode" asn:0x0-1b62b61 pid:57656 refs=6 @ 0x7fa5d9f6df40 but it still has _kLSApplicationLockedInStoppedStateKey=true, so it is is staying stopped. : LASApplication.cp #2468 SetApplicationInStoppedState() q=LSSession 100027/0x186bb queue
@lacostej
lacostej / gist:96ba8cf0c1eb7b44b86a
Created May 21, 2015 20:28
patches jenkins.war with a new supplied remoting.jar
# patches jenkins.war with a new supplied remoting.jar
if [ $# -ne 2 ]; then
echo "ERROR arguments missing"
echo "USAGE: $0 jenkins.war newremoting.jar"
exit -1
fi
jenkins=$1
remoting=$2
target=jenkins-new.war
@lacostej
lacostej / gist:17bb57e96a1698269ad4
Created June 30, 2015 11:06
Unity PageData pattern
namespace WWTK.Server {
namespace Util {
// Immutable struct to represent a WWW GET/POST page result
public struct PageData {
private int m_StatusCode;
private string m_Text;
private Dictionary<string, string> m_Headers;
public int StatusCode { get { return m_StatusCode; } }
public string Text { get { return m_Text; } }
@lacostej
lacostej / 0001-PackageApplication-still-passes-resource-rules-while.patch
Last active August 29, 2015 14:27
Patch PackageApplication from a serie of patches
From 813dee621ea00f6c42af1c4a3c459a140fd78a3b Mon Sep 17 00:00:00 2001
From: Jerome Lacoste <jerome.lacoste@gmail.com>
Date: Thu, 13 Aug 2015 14:35:57 +0200
Subject: [PATCH] PackageApplication still passes resource-rules while it is
deprecated.
See https://developer.apple.com/library/mac/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG206
---
PackageApplication4Gym | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
@lacostej
lacostej / gen_screenshots.rb
Last active October 8, 2015 16:06
Deliver ScreenshotGenerator
require 'fileutils'
class ScreenshotGenerator
attr_accessor :dimensions
def initialize(dimensions)
@dimensions = dimensions
end
def generate_screenshots(path, prefix, locales, device_types, colors)
@lacostej
lacostej / update_urls.rb
Last active November 16, 2015 16:01
iTunesConnect - Updating MarketingURL and Support URL using spaceship
require 'spaceship'
user = ...
password = ...
Spaceship.login(user, password)
Spaceship::Tunes.login(user, password)
all_apps = Spaceship::Tunes::Application.all
@lacostej
lacostej / unity3d_perf_filter.user.js
Last active December 15, 2015 07:39
Unity3d Perf Filter improvement
// ==UserScript==
// @name Unity3d Perf Filter improvement
// @namespace http://wewanttoknow.com/
// @version 0.2
// @description make the filtering function in perf a little bit more useful
// @author Jerome Lacoste
// @match https://developer.cloud.unity3d.com/gameperf/*
// @grant none
// ==/UserScript==
/* jshint -W097 */