Feel free to contact me at robert.balicki@gmail.com or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
| You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
| ## Core Principles | |
| 1. EXPLORATION OVER CONCLUSION | |
| - Never rush to conclusions | |
| - Keep exploring until a solution emerges naturally from the evidence | |
| - If uncertain, continue reasoning indefinitely | |
| - Question every assumption and inference |
| # Install K3S | |
| curl -sfL https://get.k3s.io | sh - | |
| # Copy k3s config | |
| mkdir $HOME/.kube | |
| sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config | |
| sudo chmod 644 $HOME/.kube/config | |
| # Check K3S | |
| kubectl get pods -n kube-system |
| //Change Tools/Partition/Scheme to Minimal SPIFFS (Large APPS with OTA) | |
| //IR sensor set at GPIO13 | |
| //Must Insert SD card | |
| #include "esp_camera.h" | |
| #include <WiFi.h> | |
| #include "esp_timer.h" | |
| #include "img_converters.h" | |
| #include "Arduino.h" | |
| #include "fb_gfx.h" |
Feel free to contact me at robert.balicki@gmail.com or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
| For Android: | |
| Manually change it in android/app/src/main/java/com/PROJECT_NAME/MainActivity.java: | |
| package MY.APP.ID; | |
| In android/app/src/main/java/com/PROJECT_NAME/MainApplication.java: | |
| package MY.APP.ID; | |
| In android/app/src/main/AndroidManifest.xml: | |
| package="MY.APP.ID" |
| /** | |
| * Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken | |
| * It was requested to be introduced at as part of the jsonwebtoken library, | |
| * since we feel it does not add too much value but it will add code to mantain | |
| * we won't include it. | |
| * | |
| * I create this gist just to help those who want to auto-refresh JWTs. | |
| */ | |
| const jwt = require('jsonwebtoken'); |
| import axios from 'axios'; | |
| // You can use any cookie library or whatever | |
| // library to access your client storage. | |
| import cookie from 'cookie-machine'; | |
| axios.interceptors.request.use(function(config) { | |
| const token = cookie.get(__TOKEN_KEY__); | |
| if ( token != null ) { | |
| config.headers.Authorization = `Bearer ${token}`; |
| # Make a directory | |
| mkdir ~/mosquitto | |
| cd ~/mosquitto | |
| # Get mosquitto for CentOS 6 and locally unpack it | |
| wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/oojah:/mqtt/RedHat_RHEL-6/x86_64/mosquitto-1.2-6.1.x86_64.rpm | |
| rpm2cpio mosquitto-*.rpm | cpio -idmv | |
| mosquitto-*.rpm | |
| # Set up ~/service on uberspace |
| var gulp = require('gulp'); | |
| var paths = require('../paths'); | |
| var jspm = require('jspm/api'); | |
| gulp.task('bundle', function (done) { | |
| jspm.bundle( | |
| [ | |
| '*', | |
| 'aurelia-skeleton-navigation/*', | |
| 'aurelia-bootstrapper', |
| var gulp = require('gulp') | |
| , concat = require('gulp-concat') | |
| , uglify = require('gulp-uglify') | |
| , watch = require('gulp-watch') | |
| , sass = require('gulp-ruby-sass') | |
| , autoprefixer = require('gulp-autoprefixer') | |
| , spritesmith = require("gulp.spritesmith") | |
| , minifyCSS = require('gulp-minify-css') | |
| , plumber = require('gulp-plumber') | |
| , jade = require('gulp-jade') |