Skip to content

Instantly share code, notes, and snippets.

View lacostej's full-sized avatar

Jerome Lacoste lacostej

View GitHub Profile
@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: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: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 / 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
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 / config.xml
Created August 20, 2013 22:03
Jenkins casperjs xunit incompatibility. Config.xml for test case job
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
@lacostej
lacostej / install_unity3d.sh
Created July 10, 2013 01:03
A script to install Unity3d automatically from the command line given a dmg file. The resulting file is stored under /Applications/Unity$VERSION
dmg=$1
# A script to install Unity3d automatically from the command line given a dmg file.
# The resulting file is stored under /Applications/Unity$VERSION
# check assumptions
unityhome=/Applications/Unity
if [[ -d "$unityhome" ]]; then
echo "ERROR: $unityhome already present"
@lacostej
lacostej / livebox_script.js
Last active December 10, 2015 03:38
A simple proof of concept to dump Livebox2 WAN status
var AllTranslations = {};
AllTranslations["en"] =
{
"general":
{
"label":
{
"password":"password",
"login":"login",
"internet":"internet",
@lacostej
lacostej / fix_lexmark.sh
Created December 25, 2012 18:21
Fix lexmark-printer-utility-1.0-2.i386.deb
dir=tmp
rm -r $dir
mkdir $dir
dpkg -x lexmark-printer-utility-1.0-2.i386.deb $dir
dpkg-deb -e lexmark-printer-utility-1.0-2.i386.deb $dir/DEBIAN
file=$dir/usr/local/lexmark/printer_utility/etc/lxpsu.desktop
sed -e 's/\$JARVIS_VENDOR_SHORT_NAME%%/lexmark/g' $file > $file.1
mv $file.1 $file
@lacostej
lacostej / application_loader.scpt
Created October 10, 2012 20:16
Script Application loader to send a bundle (draft)
#!/usr/bin/osascript
# a applescript app to use Application Loader to send the specified bundle to the first eligible
# application in state waiting for upload to use carefully :)
# contains a few delays because of VNC incurred delays
on run argv
set filepath to item 1 of argv
activate application "Application Loader"
tell application "System Events"