Skip to content

Instantly share code, notes, and snippets.

View technoplato's full-sized avatar

Michael Lustig technoplato

View GitHub Profile
i:
Ayyy yo.
Wanna do a cool experiment?
Stephen Sharikov:
Perfect timing
What’s up? I’ve got a bit of time
i:
Glad to hear it
Okay
@technoplato
technoplato / 002.tabs.txt
Last active August 27, 2018 18:06
Radio Show You Can Read Episode 2 Extra Content
List of tabs I had open at the end of the video:
https://otter.ai/conversation/222KSWVHZ6GQNL4O/Z3JvdXA%253D?a=MjEyNDU%253D
https://www.youtube.com/upload
https://www.youtube.com/watch?v=VBL7e3NtPTI&feature=youtu.be
https://www.youtube.com/user/nobani88/videos
https://www.youtube.com/watch?v=4D7VB_t0uLE
https://www.youtube.com/watch?v=3Sz2-6RNkjY
https://www.youtube.com/watch?v=jey_CzIOfYE
https://www.youtube.com/watch?v=xRJ91lVQyRA
@technoplato
technoplato / TEMPLATE.md
Last active October 8, 2019 10:18
__TEMPLATE.md__
@technoplato
technoplato / RCTSRWebSocket.m
Created July 22, 2018 23:21
Fix for RCTSRWebSocket.m for React Native
//
// Copyright 2012 Square Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
@technoplato
technoplato / social.js
Created June 23, 2018 05:47
Social Following / Follower / Feed / Posts structure on Firebase in Node
const admin = require('firebase-admin');
const serviceAccount = require('/Users/lustig/Development/Javascript/FirebasePractice/service-account.json');
const axios = require('axios');
const myUid = '-LFcicCx0VxhBraCZbfP';
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: 'https://react-native-firebase-18440.firebaseio.com/'
});
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#adding-your-ssh-key-to-the-ssh-agent
[alias]
s = status
lo = log --oneline
b = branch
cano = commit --amend --no-edit
continue = rebase --continue
r = rebase --root -i
edit = rebase --edit-todo
c = commit -m
a = add .
@technoplato
technoplato / overwriteCacheHeaders.java
Created March 16, 2017 19:10
Overwrite cache headers in Java to hopefully "fix" Picasso caching issue with Firebase storage
public static Client buildOkHttpClient(boolean cacheEnable) {
Cache cache = null;
OkHttpClient client = new OkHttpClient();
if (cacheEnable) {
File cacheDirectory = new File(MainApplication.getInstance().getCacheDir().getAbsolutePath(), "HttpCache");
try {
cache = new Cache(cacheDirectory, CACHE_SIZE);
} catch (IOException e) {
e.printStackTrace();
}
package com.mlustig.bctcttest;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import com.brightcove.player.edge.Catalog;
import com.brightcove.player.edge.VideoListener;
import com.brightcove.player.event.Event;
import com.brightcove.player.event.EventEmitter;