ausearch -c '<service>' --raw | audit2allow -M <name>
semodule -i <name>.pp
This file contains hidden or 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
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
# 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 ) |
This file contains hidden or 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
#set-option -g mouse-select-pane on | |
#set-option -g mouse-select-window on | |
#set-window-option -g mode-mouse on | |
set -g default-terminal "screen-256color" | |
set -g mouse on | |
# enable activity alerts | |
setw -g monitor-activity on | |
set -g visual-activity on |
This file contains hidden or 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
FORTIDATE %{YEAR:year}\-%{MONTHNUM:month}\-%{MONTHDAY:day} |
This file contains hidden or 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
image: golang:latest | |
cache: | |
paths: | |
- /go/pkg/mod | |
before_script: | |
- go version | |
- gofmt -w main.go | |
- go env |
git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %h %ad | %s %d [%an]' --date=short | grep -v 'Merge pull request'
This file contains hidden or 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
func CountReader1(r io.Reader) (count int, err error) { | |
rd := bufio.NewReader(r) | |
for { | |
_, err = rd.ReadString('\n') | |
if err != nil { | |
if err == io.EOF { | |
break | |
} | |
if err != io.EOF { | |
return |
This file contains hidden or 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 | |
# | |
# Startup sript for service call recorder | |
# | |
# chkconfig: - 80 20 | |
# description: service call recorder | |
# processname: service | |
# config: /usr/local/xconsole/web/service/config.yaml | |
# | |
NAME=service |
gmail
1 .Login gmail
2. Security
3. Less secure app access [default: ***off***, action: ***on***]
4. https://accounts.google.com/DisplayUnlockCaptcha
NewerOlder