Skip to content

Instantly share code, notes, and snippets.

View djuelg's full-sized avatar

Dominik Jülg djuelg

View GitHub Profile
@djuelg
djuelg / mastering-command-line.md
Last active April 27, 2020 13:41
Mastering the Linux Command Line
@djuelg
djuelg / generate_rasa_nlu_training_data_for_custom_entities.py
Last active July 25, 2018 12:18
Generate Rasa NLU training data for custom entities
'''
Utility to create training data samples for custom NER for Rasa NLU, by providing a set of sentences with
a placeholder ($entity). This placeholder will be filled by provided values (dropins).
Tested using ner_crf with ner_regex
See: https://nlu.rasa.com/entities.html
In this sample a custom entity "security_term" is created for the intent "search_confluence"
'''
import random
@djuelg
djuelg / .bashrc_ssh
Created June 29, 2016 10:32 — forked from mzedeler/.bashrc_ssh
bashrc snippet for initializing ssh agent and adding ssh key
#!/bin/bash
# Set up ssh-agent
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initializing new SSH agent..."
touch $SSH_ENV
chmod 600 "${SSH_ENV}"
/usr/bin/ssh-agent | sed 's/^echo/#echo/' >> "${SSH_ENV}"