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)
})
};
@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(-)
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:lacostej/jenkins.git
[branch "master"]
remote = origin
@lacostej
lacostej / gist:1575395
Created January 7, 2012 17:31
Jenkins failure
Jan 7 18:26:54 WWTKs-Jenkins org.jenkins-ci[78]: hudson.util.IOException2: Unable to read /Users/Shared/Jenkins/Home/jobs/infra_jenkins_unity3d/builds/2012-01-05_11-35-30/build.xml
Jan 7 18:26:54 WWTKs-Jenkins org.jenkins-ci[78]: at hudson.XmlFile.unmarshal(XmlFile.java:160)
Jan 7 18:26:54 WWTKs-Jenkins org.jenkins-ci[78]: at hudson.model.Run.reload(Run.java:283)
Jan 7 18:26:54 WWTKs-Jenkins org.jenkins-ci[78]: at hudson.model.Run.<init>(Run.java:272)
Jan 7 18:26:54 WWTKs-Jenkins org.jenkins-ci[78]: at hudson.model.AbstractBuild.<init>(AbstractBuild.java:163)
Jan 7 18:26:54 WWTKs-Jenkins org.jenkins-ci[78]: at hudson.maven.AbstractMavenBuild.<init>(AbstractMavenBuild.java:54)
Jan 7 18:26:54 WWTKs-Jenkins org.jenkins-ci[78]: at hudson.maven.MavenModuleSetBuild.<init>(MavenModuleSetBuild.java:137)
Jan 7 18:26:54 WWTKs-Jenkins org.jenkins-ci[78]: at sun.reflect.GeneratedConstructorAccessor14.newInstance(Unknown Source)
Jan 7 18:26:54 WWTKs-Jenkins org.jenkins-ci[78]: at sun.reflect.DelegatingCon
@lacostej
lacostej / unity3d-1-threaddump_1.txt
Created March 3, 2012 07:58
jenkins unity3d plugin threaddumps
Mar 2, 2012 7:19:47 PM hudson.triggers.SCMTrigger$Runner run
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.4-b02-402 mixed mode):
"pool-5-thread-1386" prio=5 tid=7fec9a092000 nid=0x114947000 waiting on condition [114946000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <7be06a8f0> (a java.util.concurrent.SynchronousQueue$TransferStack)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:196)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:424)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:323)