start new:
tmux
start new with session name:
tmux new -s myname
| // some debug Macro | |
| // #define DEBUG | |
| #ifndef DEBUG_PRINT | |
| #ifdef DEBUG | |
| #define DEBUG_PRINT(fmt, args...) fprintf(stderr, fmt, ## args) | |
| #else | |
| #define DEBUG_PRINT(fmt, args...) /* Don't do anything in release builds */ | |
| #endif | |
| #endif //DEBUG_PRINT |
| [ | |
| "昔时贤文,诲汝谆谆,集韵增文,多见多闻。", | |
| "观今宜鉴古,无古不成今。", | |
| "知己知彼,将心比心。", | |
| "酒逢知己饮,诗向会人吟。", | |
| "相识满天下,知心能几人。", | |
| "相逢好似初相识,到老终无怨恨心。", | |
| "近水知鱼性,近山识鸟音。", | |
| "易涨易退山溪水,易反易覆小人心。", | |
| "运去金成铁,时来铁似金,读书须用意,一字值千金。", |
| [ | |
| "昔时贤文,诲汝谆谆,集韵增文,多见多闻。", | |
| "观今宜鉴古,无古不成今。", | |
| "知己知彼,将心比心。", | |
| "酒逢知己饮,诗向会人吟。", | |
| "相识满天下,知心能几人。", | |
| "相逢好似初相识,到老终无怨恨心。", | |
| "近水知鱼性,近山识鸟音。", | |
| "易涨易退山溪水,易反易覆小人心。", | |
| "运去金成铁,时来铁似金,读书须用意,一字值千金。", |
| version: "3.6" | |
| services: | |
| ssr: | |
| image: winterssy/shadowsocksr:latest | |
| container_name: ssr | |
| # ports: | |
| # - 8989:8989 | |
| # - 8686:8686 | |
| network_mode: "host" |
| // 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", |
| 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') |
| 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"}) |