Skip to content

Instantly share code, notes, and snippets.

@phortuin
phortuin / signing-git-commits.md
Last active May 2, 2025 08:00
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg
@ezwiefel
ezwiefel / AML Environment as Conda kernel.ipynb
Last active May 6, 2024 12:02
Azure Machine Learning environment as Conda kernel in Jupyter / Jupyterlab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
# coding: utf8
# Training additional entity types using spaCy
from __future__ import unicode_literals, print_function
import pickle
import plac
import random
from pathlib import Path
import spacy
@half2me
half2me / server.py
Last active November 4, 2024 03:39
GST RTSP Server
import logging
import gi
from gst.caps import CapsRegistry
from gst.pipe_loader import PipelineLoader
from gst.pipeline import Pipeline
gi.require_version('Gst', '1.0')
gi.require_version('GstRtspServer', '1.0')
@ceshine
ceshine / birnn.ipynb
Created November 12, 2017 08:52
Figuring How Bidirectional RNN works in Pytorch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkjung-avt
jkjung-avt / tegra-cam.py
Last active November 7, 2024 11:55
Capture and display video from either IP CAM, USB webcam, or the Tegra X2/X1 onboard camera.
# --------------------------------------------------------
# Camera sample code for Tegra X2/X1
#
# This program could capture and display video from
# IP CAM, USB webcam, or the Tegra onboard camera.
# Refer to the following blog post for how to set up
# and run the code:
# https://jkjung-avt.github.io/tx2-camera-with-python/
#
# Written by JK Jung <[email protected]>
@avijit9
avijit9 / finetune.py
Created July 7, 2017 06:52
Pytorch example on Fintetuning
from __future__ import print_function
import argparse
import os
import time
import pdb
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "3"
import random
import torch
import torch.nn as nn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xyfeng
xyfeng / gif.py
Last active January 19, 2022 15:55
python script turn images into gif
# From https://github.com/wnyc/PIL/blob/master/Scripts/gifmaker.py
#
# The Python Imaging Library
# $Id$
#
# convert sequence format to GIF animation
#
# history:
# 97-01-03 fl created
#
@bogger
bogger / deploy.prototxt
Last active January 20, 2025 06:23
GoogLeNet_cars
name: "GoogleNet"
input: "data"
input_dim: 10
input_dim: 3
input_dim: 224
input_dim: 224
# hierarchy 1
# conv -> relu -> pool -> lrn