Skip to content

Instantly share code, notes, and snippets.

@redecs
redecs / camera.py
Created May 22, 2023 18:56 — forked from dattranfiot/camera.py
Simple Video Stream to Web Browser Application Using CSICamera on Jetson Nano
import time
from flask import Response, Flask
from threading import Thread, Lock
global video_frame
video_frame = None
global thread_lock
thread_lock = Lock()
@redecs
redecs / Dockerfile
Created November 22, 2019 11:38
Docker entrypoint example for node.js
FROM node:${NODE_VERSION}-alpine
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
#COPY package.json yarn.lock ./
COPY package*.json ./
#RUN yarn install --pure-lockfile
@redecs
redecs / docker-compose.yml
Created April 24, 2018 07:59 — forked from seanhandley/docker-compose.yml
How To Set Up Docker For Mac with Native NFS
version: '2'
services:
api:
volumes:
- "nfsmount:#{CONTAINER_DIR}"
volumes:
nfsmount:
driver: local
driver_opts:

Keybase proof

I hereby claim:

  • I am redecs on github.
  • I am redecs (https://keybase.io/redecs) on keybase.
  • I have a public key whose fingerprint is AEF1 18CF BB4C 939D CD51 4905 1498 A21D 5F56 505F

To claim this, I am signing this object:

@redecs
redecs / x2go-xubuntu
Last active December 21, 2015 22:46
#!/bin/bash
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@redecs
redecs / gist:3736890
Created September 17, 2012 11:51
jQuery auto-height for frame - works even if the js is in the footer
$('frame.auto-height').on('load', function(e) {
this.style.height = (parseInt(this.contentWindow.document.body.offsetHeight) + 100) + 'px';
}).each(function() {
this.style.height = (parseInt(this.contentWindow.document.body.offsetHeight) + 100) + 'px';
return false;
});
}