This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'openssl' | |
require 'securerandom' | |
require 'base64' | |
class OldEncryption | |
ALGORITHM = 'aes-256-cbc' | |
def encrypt(data, password, salt) | |
cipher = ::OpenSSL::Cipher::Cipher.new(ALGORITHM) | |
cipher.encrypt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://docs.unity3d.com/2017.1/Documentation/Manual/webgl-templates.html example code is broken. Use: | |
function UnityProgress(gameInstance, progress) { | |
if (!gameInstance.Module) | |
return; | |
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 https://confluence.atlassian.com/bitbucket/reduce-repository-size-321848262.html#Reducerepositorysize-Removetherepositorylimitation | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
Mono.Net.Security.P |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Fastlane | |
class SupportedPlatforms | |
@@previous = Fastlane::SupportedPlatforms.all | |
class << self | |
attr_accessor :extra | |
end | |
@extra = [] | |
def self.all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AllTranslations = {}; | |
AllTranslations["en"] = | |
{ | |
"general": | |
{ | |
"label": | |
{ | |
"password":"password", | |
"login":"login", | |
"internet":"internet", |
NewerOlder