Management

Project-and-Code-Management-Software

2022-04-16. Category & Tags: Management Project, Code, Management, People, Website, Online, Version

See also BLog & Knowledge Base Comparison

Online Code (& Project) Management Comparison #

updated: 2022-04-16.

ref: secrss 安全内参

github .com #

gitlab .com (not .org) #

gitcode .net (previously code.china.csdn) #

free:

  • based on GitLab.
  • learning lab (discontinued): max 10 courses.
  • no other limits?

more: 企业入驻流程

cloud.baidu.com 智能云/效率云 #

free:

  • people: max 50 (100 during covid-19).
  • repo size: 10GB in total.
  • CI: 1800 min/month.
  • wiki: no ? see ref secrss.

paied:
ref: pricing

...

Windows Management Tools

2022-02-16. Category & Tags: System, Windows, Management, Tools

Windows Task Scheduler (任务计划程序) #

Examples:

$action = New-ScheduledTaskAction -Execute 'pwsh.exe' -Argument '-NonInteractive -NoLogo -NoProfile -File "C:\MyScript.ps1"'
$trigger = New-ScheduledTaskTrigger -Once -At 3am
$settings = New-ScheduledTaskSettingsSet
$task = New-ScheduledTask -Action $Action -Trigger $Trigger -Settings $Settings
Register-ScheduledTask -TaskName 'MySchedule' -InputObject $task -User 'username' -Password 'passhere'
ScheduledTask -TaskName 'MySchedule'
$action = New-ScheduledTaskAction -Execute 'Powershell.exe' `
  -Argument '-NoProfile -WindowStyle Hidden -command "& {get-eventlog -logname Application -After ((get-date).AddDays(-1)) | Export-Csv -Path c:\fso\applog.csv -Force -NoTypeInformation}"'
$trigger = New-ScheduledTaskTrigger -Daily -At 0am
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "AppLog" -Description "Daily dump of Applog"
$action = New-ScheduledTaskAction -Execute 'C:\FreeFileSync\FreeFileSync.exe' -Argument 'C:\myBackup.ffs_batch'
$trigger = New-ScheduledTaskTrigger -Daily -At 0am
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "dailyBackup" -Description "Daily green & big files backup"

Note (by default):

...

Ansible How To

2017-01-22. Category & Tags: Ansible, Server, Cloud/Cluster, Management, DevOpt, Puppet

A simple video tutorial
OBS: ansible uses py, and py calls /bin/sh, NOT bash !

PRE-CONFIG #

suggested: use ssh-pub-key auth without passphrase.

INSTALL #

Optioanl: add ppa:ansible/ansible
installation:

sudo apt-get update && \
sudo apt-get install ansible

HOSTS #

vim /etc/ansible/hosts

master.ip.1
[slaves]
slave.domain1
slave.ip.addr.2
[slavesGroup2]
slave.domain2
slave.ip.addr.1

(see ref to give hosts’ names individually.)

SLAVE USERNAME #

sudo mkdir /etc/ansible/group_vars && \
sudo echo '---' > /etc/ansible/group_vars/all && \
sudo echo 'ansible_ssh_user: root' >> /etc/ansible/group_vars/all

(see DigitalOcean ref to config hosts individually.)

...