Save yourself a few keystrokes. Follow the steps below:
-
Run this Bash script on your laptop:
#!/usr/bin/env bash
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
/* * | |
* Arduino Telnet Server * | |
* 7 July 2010 * | |
* Basic Arduino I/O via * | |
* a command line interface * | |
* by Steve Lentz * | |
* stlentz[at]gmail[dot]com * | |
Quick Start Instructions: | |
1) Set Ethernet address in code below. |
from kivy.logger import Logger | |
import logging | |
Logger.setLevel(logging.TRACE) | |
from kivy.app import App | |
import kivy | |
from kivy.lang import Builder | |
from kivy.uix.widget import Widget | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.uix.camera import Camera |
# coding:utf-8 | |
from kivy.app import App | |
from kivy.uix.image import Image | |
from kivy.clock import Clock | |
from kivy.graphics.texture import Texture | |
import cv2 | |
class KivyCamera(Image): | |
def __init__(self, capture, fps, **kwargs): |
action | sysvinit | systemd |
---|---|---|
start service | service foo start | systemctl start foo[.service] |
stop service | service foo stop | systemctl stop foo[.service] |
restart service | service foo restart | systemctl restart foo[.service] |
reload service | service foo reload | systemctl reload foo[.service] |
service status | service foo status | systemctl status foo[.service] |
restart if running | service foo condrestart | systemctl condrestart foo[.service] |
__author__ = 'tom' | |
import sys | |
from PyQt5.QtWidgets import QWidget, QDesktopWidget, QApplication | |
class Example(QWidget): | |
def __init__(self): | |
super().__init__() | |
self.init_ui() |
#!/usr/bin/env python | |
import numpy as np | |
import cv2 | |
from time import sleep | |
# create blank image - y, x | |
img = np.zeros((600, 1000, 3), np.uint8) | |
# setup text |
import cv2 | |
from sklearn.cluster import KMeans | |
class DominantColors: | |
CLUSTERS = None | |
IMAGE = None | |
COLORS = None | |
LABELS = None | |
package your.package; | |
import android.content.Context; | |
import javax.net.ssl.SSLContext; | |
import javax.net.ssl.TrustManagerFactory; | |
import java.io.BufferedInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.security.KeyManagementException; |