Skip to content

Instantly share code, notes, and snippets.

View michael-martinez's full-sized avatar
🎯
Focusing

Michaël Martinez michael-martinez

🎯
Focusing
View GitHub Profile
@michael-martinez
michael-martinez / TestEnvBase.cs
Created March 6, 2016 18:41
[Unity3D] Generic GUI test environment for debugging.
#region GUI
// Assign a valid Text object added to the test Scene
public Text logger = null;
// Field 1 :
private bool m_DISPLAY_11 = true;
private string m_TEXTFIELD_11A = "1";
private string m_TEXTFIELD_11B = "2";
@michael-martinez
michael-martinez / MementoAndroid.txt
Last active November 15, 2016 00:21
Memento Android
Android Debugger :
%LOCALAPPDATA%\Android\android-sdk\platform-tools\adb.exe devices
%LOCALAPPDATA%\Android\android-sdk\platform-tools\adb.exe -c
%LOCALAPPDATA%\Android\android-sdk\platform-tools\adb.exe -s Filter
%LOCALAPPDATA%\Android\android-sdk\platform-tools\adb.exe -s Filter -d > logcat.txt
type logcat.txt | findstr "pattern"
Unity 3D log messages filtering :
adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG | findstr /V UnityEngine | findstr /V Filename
Administration :
/etc/hosts
/etc/groups
/etc/redhat-release
echo "alias ll='ls -l'" >> ~/.bashrc
nmon
service ntp restart
rpm -qa |grep gcc
rpm -ql gcc
rpm -pql *.rpm
@michael-martinez
michael-martinez / MementoJ2E.txt
Last active August 9, 2016 14:50
Memento for Java EE.
Java EE: web services using MVC architecture.
Controller: Application Server (TomCat) + Java code/ EnterpriseJavaBeans
View: JSP pages (compiled as HTML, CSS, XML ... documents)
Model: Server side
Sample View :
<%-- Include Core library --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
GDB :
quit
run
break / watch / clear / delete
step / next / continue
print / backtrace / list
Visual Studio :
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace Organization.Namespace
{
/// <summary>
/// #SCRIPTNAME# class summary
/// </summary>
// Documentation
doxygen -g
doxygen Doxyfile
/**
* This is a documentation template.
*
* @param[in] i_px_v1
* comment
* @param[in] i_ui_v2
@michael-martinez
michael-martinez / AccountKitBaseViewController.swift
Created January 9, 2018 13:22
Facebook Account Kit API Wrapper Class
//
// AccountKitBaseViewController.swift
//
// Created by Michael Martinez on 29/12/2017.
// Copyright © 2017 Michael Martinez. All rights reserved.
//
import Foundation
import AccountKit
@michael-martinez
michael-martinez / gitCheatsheet.txt
Last active March 10, 2021 15:29
gitCheatsheet
To pull before push without merging:
git reset --soft HEAD~ && git stash && git pull && git stash pop
Troubleshoot pbxproj file (Optional):
sed -i '' '/<<<<</d' *.xcodeproj/project.pbxproj
sed -i '' '/=====/d' *.xcodeproj/project.pbxproj
sed -i '' '/>>>>>/d' *.xcodeproj/project.pbxproj
To pick granular setup commits:
git cherry-pick <hash>
@michael-martinez
michael-martinez / logs_travis.txt
Last active February 17, 2018 22:45
Error Travis CI
2018-02-17 21:54:45.363 xcodebuild[9540:25758] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/var/folders/bb/n7t3rs157850byt_jfdcq9k80000gn/T/com.apple.dt.XCTest/IDETestRunSession-923158DE-39B9-4541-A4B9-96011B65D93B/ApplicationNameTests-A5A0B3DC-9966-4B98-81B0-F2CB230F2ECA/Session-ApplicationNameTests-2018-02-17_215445-vBeZBF.log
2018-02-17 21:54:45.435 xcodebuild[9540:25751] [MT] IDETestOperationsObserverDebug: (A30841CE-7786-4605-AEF3-33E6B81DE16E) Beginning test session ApplicationNameTests-A30841CE-7786-4605-AEF3-33E6B81DE16E at 2018-02-17 21:54:45.434 with Xcode 9B55 on target <DVTiPhoneSimulator: 0x7f9f68192000> {
SimDevice: iPad Air (FFDCEC43-BE2D-46EA-98AA-5643F6882D39, iOS 10.0, Booted)
} (10.0 (14A345))
2018-02-17 21:54:45.456 xcodebuild[9540:26807] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/var/folders/bb/n7t3rs157850byt_jfdcq9k80000gn/T/com.apple.dt.XCTest/IDETestRunSession-923158DE-39B9-4541-A4B9-96011B65D93B/ApplicationNameUITe