To remotely control AD add/delete user via Powershell: ssh -i lab.key -o StrictHostKeyChecking=No [email protected] "powershell New-ADUser -Server -Enabled \$True -SAMAccountName $newaccount -DisplayName $newaccount -Givenname $givenname -Surname $surname -Name '$givenname $surname' -UserPrincipalName [email protected] -HomeDirectory \\\\xxx\\userdata\$\\$newaccount -AccountPassword (ConvertTo-SecureString "password" -AsPlainText -force) -PassThru" Note: the \ mark needs to be escaped in regular ssh session, that’s why I use \\\\ to express \\, but if we use this on Spinnaker, the Java interpretor will automatically add escape mark, so \ is not required.

Continue reading

Gitlab Hint

gitlab.yml sample config Gitlab Helm install needs to work with certmanager, if you are not using it at all, you can manually bind your certs with nginx, just create secret with tls.crt and tls.key, Where tls.crt would need to include the entire bundle from root CA all the way to your Cert, otherwise you may face weird errors, such as: x509: certificate signed by unknown authority and error authorizing context: authorization token required.

Continue reading

Git Hints

Add your Git username and set your email It is important to configure your Git username and email address, since every Git commit will use this information to identify you as the author. git config --global "YOUR_USERNAME" git config --global "[email protected]" Create and Switch to a new branch git checkout -b NAME-OF-BRANCH Download the latest changes in the project To sync with other users’ changes on the branch, while keep what you have changed locally, use:

Continue reading

Author's picture


Love coding and new technologies

Cloud Solution Consultant