Skip to content

Instantly share code, notes, and snippets.

######################
# panes
set -g pane-border-fg black
set -g pane-active-border-fg brightred
## Status bar design
# status line
set -g status-justify left
set -g status-bg default
docker service scale SERVICE_NAME=0
docker service scale SERVICE_NAME=1
docker stats --all --format "table {{.Container}}\t {{.Name}}\t {{.CPUPerc}}\t{{.MemUsage}}"
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
@ck196
ck196 / kmskeys10.txt
Created January 15, 2018 05:10 — forked from CHEF-KOCH/kmskeys10.txt
Windows 10 KMS Keys
Windows.10.and.Office.2016.gVLK
#####################################################################
# Install/Uninstall keys #
#####################################################################
1.) Uninstall the current product by entering the “uninstall product key” extension:
slmgr.vbs /upk
2.) Install the key that you obtained above for “Windows Srv 2012R2 DataCtr/Std KMS for Windows 10”
@ck196
ck196 / opencv_install_failed.txt
Last active April 18, 2018 06:14
opencvinstall
Update: the options to turn off are: WITH_CUDA WITH_CUBLAS WITH_CUFFT WITH_NVCUVID WITH_OPENCL WITH_OPENCLAMDBLAS WITH_OPENCLAMDFFT WITH_OPENCL_SVM
docker pull ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
@ck196
ck196 / send_an_email.py
Created May 16, 2018 03:14 — forked from yzhong52/send_an_email.py
Send an email with a gmail account using python 3
# smtplib module send mail
import smtplib
TO = '[email protected]'
SUBJECT = 'TEST MAIL'
TEXT = 'Here is a message from python.'
# Gmail Sign In
gmail_sender = '[email protected]'
docker run --name some-mysql -v /my/own/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag
@ck196
ck196 / nvidia-docker-compose.yml
Created June 1, 2018 08:56
nvidia-docker-compose.yml
version: '2.0'
services:
kirin-yolo-filter:
image: kirin-yolo-filter:latest
build:
context: .
dockerfile: Dockerfile
volumes:
- nvidia_driver_384.111:/usr/local/nvidia:ro
devices:
@ck196
ck196 / Dockerfile
Created June 1, 2018 08:57
docker-file gpu
FROM gcr.io/tensorflow/tensorflow:latest-gpu-py3
ENV HOME_PATH=/home/ubuntu \
APP_PATH=/home/ubuntu/recognizer
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
build-essential git
RUN pip install jwcrypto==0.4.2
RUN pip install cython
@ck196
ck196 / gwall.py
Created September 14, 2020 14:41 — forked from longjie/gwall.py
This is a simple python file for the demo "gWall: gWall: LCD+RasPi+Google Assistant" (https://www.youtube.com/watch?v=Y-H_3o7vKcc)
#!/usr/bin/env python
# Copyright (C) 2017 Google Inc.
# Copyright (C) 2017 Ryosuke Tajima
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0