Skip to content

Instantly share code, notes, and snippets.

View MacKentoch's full-sized avatar
👨‍💻

Erwan DATIN MacKentoch

👨‍💻
  • France
View GitHub Profile
class MaClass {
constructor(valeurInitial) {
this.maPropriete = valeurInitial;
}
maMethode() {
return this.maPropriete;
}
}
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)

🔎Analyse assets (decompile <-> re-compile apk)

Using apktool you can decode resources to nearly original form and rebuild them after making some eventual modifications.

Grab apktool

brew install apktool

When you don't understand where your disk space is disapearing check:

  • Library/developer folder
  • local snapshots for time machine (even if it is disabled!)

A single time machine local snapshot can take 5Go to 10Go disk space (for example after a huge MacOS or Xcode update).

It is often said that disibling timemachine should trigger a cleaning from the system. But this is not true, at least in my experience (on macOS High Sierra).

/////////////////
// BRIDGE
/////////////////
// Device.h
@import UIKit;
#import <React/RCTBridgeModule.h>
@interface Device : NSObject <RCTBridgeModule>
var fetch = require('node-fetch');
var CloudKit = require("./cloudkit.js")
CloudKit.configure({
services: {
fetch: fetch
},
containers: [{
containerIdentifier: 'yourContainerIdentifier',
apiToken: 'yourAPItoken',
#ifndef AppRate_h
#define AppRate_h
#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif
#import <StoreKit/StoreKit.h>
#import "RNAppStoreReview.h"
#import <Foundation/Foundation.h>
@implementation RNAppStoreReview
RCT_EXPORT_MODULE();
- (dispatch_queue_t) methodQueue
{
convert input-image.png -density 300 -compress zip output-image.png
@MacKentoch
MacKentoch / iterm2-solarized.md
Created July 26, 2017 20:29 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k