All of the following information is based on go version go1.17.1 darwin/amd64
.
GOOS | Out of the Box |
---|---|
aix |
✅ |
android |
✅ |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
# PS : ChatGPT makes mistakes, consider "trust but verify" principle | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
#Events to Monitor | |
https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/appendix-l--events-to-monitor | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
#run | |
eventvwr.msc Event viewer | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
Event Viewer(Local)-Windows Logs (shutdown / restart ) |
NOTE: Given its current state, I've given up on tigervnc and now rely on "ssh -X" to execute remote gui apps. As a result I won't be updating this gist any more, but will leave it up as a reference for others.
This is for Ubuntu 18.04 LTS. TigerVNC is a remote desktop session server and viewer solution sponsored by Red Hat that is still in active development. While I recently tested under Ubuntu 19.10, I have no plans to test non-LTS versions in the future.
There are packages for TigerVNC in the repositories of the major distributions, but the latest versions for Ubuntu are broken. My workaround is to use the latest stable version from the TigerVNC project Github release page, where generic binaries for 32 and 64-bit Linux are distributed as tarballs (dmg and exe installers for Mac and Windows are also available).
NOTE: A key file is missing from the latest offici
#!/usr/bin/python | |
import pwd | |
import os | |
import re | |
import glob | |
PROC_TCP = "/proc/net/tcp" | |
STATE = { | |
'01':'ESTABLISHED', |
-- 取倒数第二位 | |
select to_number(substr('12345', -2, 1)) from dual; | |
-- 正规匹配尾数为2,7的字符串 | |
select example_str from example_table | |
where regexp_like(example_str, '.*[27]$'); | |
-- 取日期(年-月-日)中的日 | |
select to_number(to_char(sysdate, 'dd')) from dual; |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\runas] | |
@="获取管理员权限" | |
"NoWorkingDirectory"="" | |
[HKEY_CLASSES_ROOT\*\shell\runas\command] | |
@="cmd.exe /c takeown /f \"%1\" & cacls \"%1\" /t /e /c /g administrators:F" | |
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" & cacls \"%1\" /t /e /c /g administrators:F" | |
[HKEY_CLASSES_ROOT\exefile\shell\runas2] | |
@="获取管理员权限" | |
"NoWorkingDirectory"="" |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\runas] | |
@="获取管理员权限" | |
"NoWorkingDirectory"="" | |
[HKEY_CLASSES_ROOT\*\shell\runas\command] | |
@="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant administrators:F" | |
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant administrators:F" | |
[HKEY_CLASSES_ROOT\exefile\shell\runas2] | |
@="获取管理员权限" | |
"NoWorkingDirectory"="" |
# mac 快捷键 | |
option + space — Alfred | |
control + space — finder | |
command + option + d — hide dock | |
command + ` — switch between the same app’s window | |
command + tab — switch between all the apps | |
command + shift + q — logout current account | |
command + delete — delete file | |
command + delete + shift — empty recycling bin |
# ~/.pythonrc.py | |
# enable syntax completion | |
# add the next line to your .bashrc | |
# export PYTHONSTARTUP=~/.pythonrc.py | |
try: | |
import readline | |
except ImportError: | |
print("Module readline not available.") | |
else: |
#!/bin/sh | |
# 中文编码支持 | |
echo "export LESSCHARSET=utf-8" > $HOME/.profile | |
git config --global gui.encoding utf-8 | |
git config --global i18n.commitencoding utf-8 | |
git config --global i18n.logoutputencoding utf-8 | |
git config --global core.quotepath false | |
# 别名设置 |