Skip to content

Instantly share code, notes, and snippets.

Avatar

Eric Florenzano ericflo

View GitHub Profile
View SetupFixedDeltaTime.cs
public class MyController : MonoBehaviour
{
private void OnEnable() {
SetupFixedDeltaTime();
}
private void SetupFixedDeltaTime() {
var xrSettings = XRGeneralSettings.Instance;
if (xrSettings == null) {
Debug.Log($"XRGeneralSettings is null.");
View reactor_reactor.log
INFO [reactor] 1
INFO [reactor] 2
INFO [reactor] 3
INFO [reactor] 4
INFO [reactor] 5
INFO [reactor] 6
INFO [reactor] Linked wasi successfully
INFO [reactor] 7
ERROR [reactor] Could not run main: Could not find Engine_Export_OnStart on wasm instance: Wasm3(Wasm3Error(0x7ff7549b9468))
@ericflo
ericflo / like.js
Created Dec 18, 2018
Twitter Archive
View like.js
This file has been truncated, but you can view the full file.
window.YTD.like.part0 = [ {
"like" : {
"tweetId" : "1075165345768452096"
}
}, {
"like" : {
"tweetId" : "1075033898143371266"
}
}, {
View MocapFrame.cs
using UnityEngine;
using System.IO;
using System.Collections.Generic;
public class Frame
{
public static int VERSION = 1;
public double Timestamp;
@ericflo
ericflo / proxy.go
Last active Aug 7, 2020
Golang TCP Proxy
View proxy.go
package proxy
import (
"io"
"net"
"sync"
log "github.com/Sirupsen/logrus"
)
View 01.configure
2015-05-20 19:57:53 -0700
./configure
--disable-debug
--disable-dependency-tracking
--prefix=/usr/local/Cellar/phash/0.9.6_1
--enable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
View 01.configure
2015-05-20 19:56:18 -0700
./configure
--disable-debug
--disable-dependency-tracking
--prefix=/usr/local/Cellar/phash/0.9.6_1
--enable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
View 01.configure
2015-04-13 16:58:39 -0700
./configure
--disable-debug
--disable-dependency-tracking
--prefix=/usr/local/Cellar/phash/0.9.6_1
--enable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
@ericflo
ericflo / token.go
Created Mar 13, 2015
Golang mock generator?
View token.go
package models
type TokenAPI interface {
GetTokenById(id string) (*Token, error)
CreateToken(userId string) (token *Token, err error)
}
@ericflo
ericflo / gist:90a852b58a6f7fa8fe8b
Created Nov 4, 2014
Let's say you want to deploy a PostgreSQL database
View gist:90a852b58a6f7fa8fe8b
Let's say you want to deploy a PostgreSQL database
Is it better to?
1) Use Ansible to install and configure PostgreSQL via an Ansible Playbook role
2) Use Ansible, Terraform, or CloudFormation's AWS RDS provisioner to set up a
PostgreSQL RDS instance
3) Use Terraform or Ansible to provision an instance and run shell commands to
install a PostgreSQL docker image
4) Use Packer to set up a machine image that has PostgreSQL installed, and
deploy that using Ansible, Terraform, or CloudFormation
You can’t perform that action at this time.