Skip to content

Instantly share code, notes, and snippets.

@whoisryosuke
whoisryosuke / Update-branch.md
Created September 17, 2019 17:38 — forked from santisbon/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

#!/usr/bin/env python3
"""
quicky script that compares two conda environments
can be handy for debugging differences between two environments
This could be made much cleaner and more flexible -- but it does the job.
Please let me know if you extend or improve it.
@georgwiese
georgwiese / universal_sentence_encoder_featurizer.py
Last active September 6, 2022 15:37
Universal Sentence Encoder Featurizer
""" Enhancing Intent Classification with the Universal Sentence Encoder:
https://medium.com/scalableminds/enhancing-intent-classification-with-the-universal-sentence-encoder-ecbcd7a3005c
"""
from rasa_nlu.featurizers import Featurizer
import tensorflow_hub as hub
import tensorflow as tf
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

<head>
<title>subscribe-example</title>
</head>
<body ng-app="myApp">
<div ng-controller="MyCtrl">
</div>
</body>
@mollyporph
mollyporph / Update-DnsName.ps1
Last active March 31, 2017 05:22
A script to update dns-records at name.com
#---------STUFF THAT YOU SHOULD EDIT--
$username = "yourusername"
$apitoken = "yourapitoken" #Get an api-token at https://www.name.com/reseller usually doesn't take long
$domain = "yourdomain" #e.g example.com
$hostname = "yourhostname" #The hostname that you want to update, for mail.example.com the hostname should be "mail"
#
#------------------------------------
$headers = @{"Api-Username"= $username;"Api-Token" = $apitoken}
$listUrl = "https://api.name.com/api/dns/list/$domain"