-
Install http://tmate.io
-
Configure
~/.tmux.conf
curl -sSL -o ~/.tmux.conf https://gist.github.com/gullitmiranda/e631f14a66a8ff658eb7/raw/fc3cfb7cd2ef1cc6e5d0de66b1e93b68652de866/tmux.conf
-
Start
tmate
server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PySide2 import QtWidgets, QtGui | |
from PySide2 import QtCore | |
import sys | |
import imageio | |
import numpy as np | |
from PIL import Image, ImageQt | |
imgpath = 'myhdri.hdr' | |
imageio.plugins.freeimage.download() | |
img = imageio.imread(imgpath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extra commandline utils | |
scoop install imagemagick python python2 bat caddy cmder dos2unix ffmpeg jq php sed | |
# extra GUI apps | |
scoop install jetbrains-toolbox gitkraken gimp atom sharex vlc autohotkey | |
# manually install whatever you need (e.g. Android Studio, IntelliJ, PHP-Storm) | |
jetbrains-toolbox | |
# install more programs using Chocolatey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Launch a Pod ab-using a hostPath mount to land on a Kubernetes node cluster as root | |
# without requiring `privileged: true`, in particular can abuse `DenyExecOnPrivileged` | |
# admission controller. | |
# Pod command in turn runs a privileged container using node's /var/run/docker.sock. | |
node=${1} | |
case "${node}" in | |
"") | |
nodeSelector='' | |
podName=${USER+${USER}-}docker-any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
' uncomment the line below if you're using computer with a retina display | |
' skinparam dpi 300 | |
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >> | |
' we use bold for primary key | |
' green color for unique | |
' and underscore for not_null | |
!define primary_key(x) <b>x</b> | |
!define unique(x) <color:green>x</color> | |
!define not_null(x) <u>x</u> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask_admin.form import FormOpts | |
from flask_admin.contrib.sqla.form import InlineModelFormList, \ | |
InlineModelConverter, \ | |
get_form | |
from flask_admin.contrib.sqla.tools import get_primary_key | |
from flask_admin.contrib.sqla import ModelView | |
from flask_admin.model.fields import InlineModelFormField | |
from flask_admin.model.form import InlineFormAdmin | |
from flask_admin._compat import iteritems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Demonstrate how to pass IPC handles to GPU data between processes in Python. | |
""" | |
import ctypes | |
import numpy as np | |
import multiprocessing as mp | |
import zmq |
This is an opinionated step-by-step guide for how to not screw up working with Gerrit as a code review tool.
This presumes a setup where you're working on a forked copy of the repository and have created an "upstream" remote repository which points to the original.