Skip to content

Instantly share code, notes, and snippets.

@solderzzc
solderzzc / file.md
Created September 30, 2025 17:26 — forked from edjdavid/file.md
Stream Windows webcam/desktop via RTSP

Can be used for streaming data (webcam or screen capture) from the Windows to WSL

Install

  1. Simple RTSP Server
  2. ffmpeg

Get the internal IP of WSL

Run from a WSL terminal

ip route list default | awk '{print $3}'
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Matt Heath <matt@mattheath.com>
;
; Script Function:
; Remaps keys when using an Apple Keyboard with a Windows PC
;
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats
# Working example for my blog post at:
# http://danijar.com/introduction-to-recurrent-networks-in-tensorflow/
import functools
import sets
import tensorflow as tf
from tensorflow.models.rnn import rnn_cell
from tensorflow.models.rnn import rnn
def lazy_property(function):
@solderzzc
solderzzc / basic-node-shell.js
Created March 31, 2016 03:36 — forked from btoews/basic-node-shell.js
node remote shell
//Minimalistic remote shell over tcp using nodejs
//This doesn't work. I think it should...
//Additionally, this isn't nearly as cool
//as the next file because it gives you no
//ability to modify/inspect shell input/output
var spawn = require('child_process').spawn;
var net = require('net');
Turn Server Installation Documentation
change the package according to your server
apt-get update
apt-get install rfc5766-turn-server
cd /etc/
vi turnserver.conf
Paste the following:
@solderzzc
solderzzc / designer.html
Created December 22, 2014 22:49
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;