Create the container and attach to it:
docker run -itd --name=client_setup ubuntu /bin/bash
docker attach client_setup
Then, inside the container, run:
Portainer runs as a lightweight Docker container (the Docker image weights less than 4MB) on a Docker engine or Swarm cluster.
$ docker volume create portainer_data
$ docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
Then, connect to http://localhost:9000/
from __future__ import print_function | |
import argparse | |
import numpy as np | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import torch.optim as optim | |
from torchvision import datasets, transforms |
# remove docker containers from specific image | |
docker rm -f $(docker ps -a -f "ancestor=activeeon/visdom_server" -q) | |
# run in background | |
nohup command &>/dev/null & |
#import os | |
import socket | |
import platform | |
print('-------------------------------------------------------------') | |
print('Interpreter') | |
print('platform.python_version: ', platform.python_version()) | |
print('platform.python_compiler: ', platform.python_compiler()) | |
print('platform.python_build: ', platform.python_build()) | |
print() | |
print('Platform') |
## Sublime Text 3 Serial key build is 3103 | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 | |
B085E65E 2F5F5360 8489D422 FB8FC1AA |
These licenses will be valid after sublime_text
patching:
- BEGIN License -
Love
Unlimited user license
EA7E-8441
918381ACA844A0379CCAC729059720A4
BC9D409098618744BB45FF23E67568DB
82B926D92157127DB3B4054834D0477F
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}'
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:
/* | |
Example code for displaying gstreamer video from the CSI port of the Nvidia Jetson in OpenCV. | |
Created by Peter Moran on 7/29/17. | |
https://gist.github.com/peter-moran/742998d893cd013edf6d0c86cc86ff7f | |
*/ | |
#include <opencv2/opencv.hpp> | |
std::string get_tegra_pipeline(int width, int height, int fps) { | |
return "nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)" + std::to_string(width) + ", height=(int)" + |