Skip to content

Instantly share code, notes, and snippets.

View lacostej's full-sized avatar

Jerome Lacoste lacostej

View GitHub Profile
@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 / 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"
@lacostej
lacostej / FileSystemUtil.cs
Created March 29, 2012 09:15
Unity3d / Editor build with pre/post process operations, including code generation using antlr string template
public static IEnumerable<string> GetFiles(string path) {
Queue<string> queue = new Queue<string>();
queue.Enqueue(path);
while (queue.Count > 0) {
path = queue.Dequeue();
foreach (string subDir in Directory.GetDirectories(path)) {
queue.Enqueue(subDir);
}
string[] files = null;
files = Directory.GetFiles(path);
@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 / 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 / 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 / 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 */
@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 / inject_platforms.rb
Created February 1, 2017 18:27
Support moooar platforms
module Fastlane
class SupportedPlatforms
@@previous = Fastlane::SupportedPlatforms.all
class << self
attr_accessor :extra
end
@extra = []
def self.all
@lacostej
lacostej / android_set_manifest.sh
Created March 29, 2012 08:51
A script to post process the AndroidManifest.xml using apktool
# taken from http://forum.unity3d.com/threads/84953-Android-Permissions-and-the-Manifest.xml
#
if [ $# -ne 3 ]; then
echo "ERROR Missing argument"
echo "Usage: $0 file.apk newmanifest.xml target.apk"
exit -1
fi
APK=$1
MANIFEST=$2