start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# PROT=18080 | |
# CMD="uptime" | |
while true; do response=$($CMD); length=$(echo -n "$response" | wc -c); echo -e "HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: ${#response}\r\n\r\n$response" | nc -l -p $PORT; done |
// ==UserScript== | |
// @name GitHub Issues Editor Full Screen | |
// @namespace https://greasyfork.org/en/scripts/467156-github-issues-editor-full-screen/code | |
// @version 0.1 | |
// @description Add a full screen button in the right-top of the github issue editor. | |
// @match https://github.com/*/issues/* | |
// @grant none | |
// @author m2kar (m2kar.cn#gmail.com) | |
// @origin-url https://gist.github.com/m2kar/a9beddbd946dada991e87ed366b9b24e | |
// @license MIT |
import gitlab | |
gl=gitlab.Gitlab(gitlab_url,gitlab_token) | |
project=gl.projects.get(149) | |
issue=project.issues.get(1) | |
note=issue.notes.create(data={"body":"text"}) |
import logging | |
import const | |
#DEBUG级别的错误,输出到 const.LOGFILE | |
logging.basicConfig(level=logging.DEBUG, | |
format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s', # 输出格式 | |
datefmt='%a, %d %b %Y %H:%M:%S', | |
filename=const.LOGFILE, | |
filemode='a') |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"profiles": [ | |
{ | |
// Make changes here to the powershell.exe profile | |
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"name": "Windows PowerShell", |
version: "3.6" | |
services: | |
ssr: | |
image: winterssy/shadowsocksr:latest | |
container_name: ssr | |
# ports: | |
# - 8989:8989 | |
# - 8686:8686 | |
network_mode: "host" |