Skip to content

Instantly share code, notes, and snippets.

@jganzabal
jganzabal / Nvidia Titan XP + MacBook Pro + Akitio Node + Tensorflow + Keras.md
Last active November 2, 2022 11:43
How to setup Nvidia Titan XP for deep learning on a MacBook Pro with Akitio Node + Tensorflow + Keras
@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active September 22, 2024 01:52
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@pepicrft
pepicrft / steps.md
Last active August 30, 2016 23:24
Setup the Android SDK/NDK in OSX
  1. Install the SDK using brew
brew install android-sdk
brew install android-ndk
  1. Set the environment vars
export BREW_HOME="$(brew --prefix)"
export ANDROID_HOME="${BREW_HOME}/opt/android-sdk"
export PATH="$PATH:${ANDROID_HOME}/tools"
@ept
ept / gist:4475995
Last active November 4, 2022 08:38
Syntax highlighting code for PowerPoint (Mac OS)

How to add syntax-highlighted code to PowerPoint slides (Mac OS)

  1. pygmentize -f rtf FILE | pbcopy
  2. Paste into TextEdit (in rich text mode: Format → Make Rich Text before pasting), and copy to clipboard again.
  3. In PowerPoint, Edit → Paste Special… → Styled Text.

(Pasting RTF directly into PowerPoint doesn't work correctly, at least with PowerPoint 2008 — it extends colour spans longer than it should, and sometimes removes line breaks. Going via TextEdit seems to solve the problem.)