Skip to content

Instantly share code, notes, and snippets.

View mikamboo's full-sized avatar
🏠
Working from home

Michaël P.O. mikamboo

🏠
Working from home
View GitHub Profile
@mikamboo
mikamboo / Dockerfile
Created June 23, 2019 13:46
Libra dockerized for dev
FROM ubuntu:18.04
LABEL version="1.0"
LABEL maintainer="Michael P.O <[email protected]>"
LABEL description="A Libra <libra.org> dev docker image."
WORKDIR /libra
RUN apt-get update && \
apt-get install -y git curl sudo && \
@mikamboo
mikamboo / blog-post.md
Last active June 2, 2019 18:26
FirRt gist blog post
title date cover
A propos de lorem Ipsum
2019-06-02 12:51:00 -0700

Qu'est-ce que le Lorem Ipsum ?

Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500..

@mikamboo
mikamboo / main.dart
Last active August 8, 2019 17:24
Cached Fibonacci implementations
Map<int, int> cache = new Map();
int fibo(int n){
if(cache.containsKey(n))
{
return cache[n];
}
int result;
@mikamboo
mikamboo / .env
Created October 21, 2017 11:33 — forked from joshdholtz/.env
Integrate fastlane into your Ionic/Cordova build process
FASTLANE_TEAM_ID = <your team id>
FASTLANE_USER = <your user email>
PRODUCE_APP_IDENTIFIER = com.fastlanescreencast.FastlaneScreencast
CERT_APP_IDENTIFIER = com.fastlanescreencast.FastlaneScreencast
SIGH_APP_IDENTIFIER = com.fastlanescreencast.FastlaneScreencast
ANDROID_KEYSTORE_KEYSTORE_NAME = FastlaneScreencast.keystore
ANDROID_KEYSTORE_ALIAS_NAME = fastlanescreencast
ANDROID_KEYSTORE_PASSWORD = supersecret
@mikamboo
mikamboo / firebase_create.js
Created March 5, 2017 15:28 — forked from anantn/firebase_create.js
Firebase: Creating data if it doesn't exist. This snippet creates a user only if it doesn't already exist.
function go() {
var userId = prompt('Username?', 'Guest');
var userData = { name: userId };
tryCreateUser(userId, userData);
}
var USERS_LOCATION = 'https://SampleChat.firebaseIO-demo.com/users';
function userCreated(userId, success) {
if (!success) {
@mikamboo
mikamboo / app-1.spec.ts
Last active March 5, 2017 01:24 — forked from wkwiatek/app-1.spec.ts
Angular 2 test snippets for Angular final version. Codebase for https://developers.livechatinc.com/blog/category/programming/angular-2/
// App
import { Component } from '@angular/core';
@Component({
selector: 'app',
template: '<span>{{ sayHello() }}</span>',
})
export class App {
public name: string = 'John';
@mikamboo
mikamboo / supervisor.conf
Created January 7, 2017 00:13 — forked from tsabat/supervisor.conf
Sample supervisor config file
; Sample supervisor config file.
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
;chmod=0700 ; sockef file mode (default 0700)
;chown=nobody:nogroup ; socket file uid:gid owner
;username=user ; (default is no username (open server))
;password=123 ; (default is no password (open server))
;[inet_http_server] ; inet (TCP) server disabled by default
@mikamboo
mikamboo / travis-ci-deploy.md
Last active December 17, 2016 22:56 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

@mikamboo
mikamboo / raspberry-pi-kiosk.md
Last active May 4, 2024 18:17
Create Raspberry Pi Kiosk on Raspbian