Skip to content

Instantly share code, notes, and snippets.


Jerome Lacoste lacostej

View GitHub Profile
lacostej /
Created Jan 24, 2018
Force pruning of a bitbucket repo
# bitbucket reposize not the same as you see locally?
# run this once in a while to force GC on your bitbucket repo.
# run it BEFORE you reach your 2G limit of course.
# see
git pull
touch bitbucket_should_prune_automatically
git add bitbucket_should_prune_automatically
git commit -m "But we need to force it by doing weird stuff"
git push
git reset --hard HEAD^1
lacostej / gist:504d07c182de6507f865a38cde2d3a91
Created Jan 16, 2018
DotNet 4.6 TLS broken in Unity 2017.2/3.
View gist:504d07c182de6507f865a38cde2d3a91
DllNotFoundException: CoreFoundation
Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
Rethrow as IOException: The authentication or decryption has failed.
Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
Rethrow as IOException: The authentication or decryption has failed.
Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
lacostej / UnityProgress_2017.1.js
Created Jan 15, 2018
Unity WebGL progress bar template for Unity 2017.1
View UnityProgress_2017.1.js
// example code is broken. Use:
function UnityProgress(gameInstance, progress) {
if (!gameInstance.Module)
var r = UnityLoader.Progress.Styles[gameInstance.Module.splashScreenStyle],
n = gameInstance.Module.progressLogoUrl ? gameInstance.Module.resolveBuildUrl(gameInstance.Module.progressLogoUrl) : r.progressLogoUrl,
o = gameInstance.Module.progressEmptyUrl ? gameInstance.Module.resolveBuildUrl(gameInstance.Module.progressEmptyUrl) : r.progressEmptyUrl,
i = gameInstance.Module.progressFullUrl ? gameInstance.Module.resolveBuildUrl(gameInstance.Module.progressFullUrl) : r.progressFullUrl,
a = "position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);";
if (!gameInstance.logo) {
lacostej / inject_platforms.rb
Created Feb 1, 2017
Support moooar platforms
View inject_platforms.rb
module Fastlane
class SupportedPlatforms
@@previous = Fastlane::SupportedPlatforms.all
class << self
attr_accessor :extra
@extra = []
def self.all
lacostej / unity3d_perf_filter.user.js
Last active Dec 15, 2015
Unity3d Perf Filter improvement
View unity3d_perf_filter.user.js
// ==UserScript==
// @name Unity3d Perf Filter improvement
// @namespace
// @version 0.2
// @description make the filtering function in perf a little bit more useful
// @author Jerome Lacoste
// @match*
// @grant none
// ==/UserScript==
/* jshint -W097 */
lacostej / update_urls.rb
Last active Nov 16, 2015
iTunesConnect - Updating MarketingURL and Support URL using spaceship
View update_urls.rb
require 'spaceship'
user = ...
password = ...
Spaceship.login(user, password)
Spaceship::Tunes.login(user, password)
all_apps = Spaceship::Tunes::Application.all
lacostej / gen_screenshots.rb
Last active Oct 8, 2015
Deliver ScreenshotGenerator
View gen_screenshots.rb
require 'fileutils'
class ScreenshotGenerator
attr_accessor :dimensions
def initialize(dimensions)
@dimensions = dimensions
def generate_screenshots(path, prefix, locales, device_types, colors)
lacostej / 0001-PackageApplication-still-passes-resource-rules-while.patch
Last active Aug 29, 2015
Patch PackageApplication from a serie of patches
View 0001-PackageApplication-still-passes-resource-rules-while.patch
From 813dee621ea00f6c42af1c4a3c459a140fd78a3b Mon Sep 17 00:00:00 2001
From: Jerome Lacoste <>
Date: Thu, 13 Aug 2015 14:35:57 +0200
Subject: [PATCH] PackageApplication still passes resource-rules while it is
PackageApplication4Gym | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
View gist:17bb57e96a1698269ad4
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 / gist:96ba8cf0c1eb7b44b86a
Created May 21, 2015
patches jenkins.war with a new supplied remoting.jar
View gist:96ba8cf0c1eb7b44b86a
# 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