Skip to content

Instantly share code, notes, and snippets.

@edjdavid
edjdavid / wsl-docker.md
Last active December 3, 2023 14:50
Docker on WSL without installing Desktop
  1. In Windows:

Make sure WSL version is >= 0.67.6

wsl --version

* Uninstall Docker Desktop if installed previously.

  1. In Ubuntu (or any WSL Distro):
@edjdavid
edjdavid / file.md
Created October 13, 2022 12:45
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}'
@edjdavid
edjdavid / top2vec.yml
Created November 3, 2020 11:33
Conda environment for top2vec
name: top2vec
channels:
- defaults
- conda-forge
dependencies:
- python ==3.8
# - tensorflow ==2.2.0 # tensorflow_text 2.2.0 doesn't work!
# tf dependecies
- numpy <1.19.0,>=1.16.0
- termcolor
@edjdavid
edjdavid / transparent-kb.ps1
Last active October 25, 2021 06:42
[Windows 11] Transparent Touch Keyboard
# No need for admin privileges. Working on Windows 10 2004
# Save as ps1 file, right click, then select Run with PowerShell
# https://stackoverflow.com/questions/25369285/how-can-i-get-all-window-handles-by-a-process-in-powershell
# https://www.reddit.com/r/PowerShell/comments/5etxgq/make_the_touch_keyboard_windows_810_transparent/
function Set-KBTransparent {
[CmdletBinding()]
param ()
@edjdavid
edjdavid / pp_motion_interp.md
Created August 13, 2020 12:39
PotPlayer Motion Interpolation
@edjdavid
edjdavid / tensorflow_aarch64.yml
Created May 25, 2020 01:43
Conda Env for Tensorflow 2.2.0 on aarch64
name: tf
channels:
- conda-forge
- edj.david
dependencies:
- python=3.7
- ipykernel
- numpy >=1.16,<2.0
- scipy =1.4
- gast =0.3.3
@edjdavid
edjdavid / environment.yml
Last active August 2, 2020 10:35
Conda environment for geospatial analysis in Python
name: gsa
channels:
- defaults
- conda-forge
dependencies:
- autopep8
- ipykernel
- pandas
- xlrd
- numpy
@edjdavid
edjdavid / README.md
Last active February 19, 2020 12:43
Dark Theme for Jupyter

Install jupyterthemes (https://github.com/dunovank/jupyter-themes)

conda install -c conda-forge jupyterthemes

Edit $(python -c 'import jupyterthemes as jt; print(jt.path[0]);')/layout/notebook.less

  • remove div#ipython_notebook { display: none; }
  • change span.autosave_status { font-size: small; } (i.e. remove display: none)
  • add div.output_area img, div.output_area svg {background-color: wheat}
@edjdavid
edjdavid / gist:581adb6ef73a6bbac2965d6ba33e73c9
Last active November 22, 2017 10:10
Installing graph-tool in a pure conda environment

Linux

Add conda-forge and salford_systems (for gcc5) to the conda channels

~/.condarc

channels:
  - defaults
  - conda-forge
  - salford_systems