Set-Date -Date (Get-Date).AddDays(-365)
wsl -e date
W32tm /resync /force
Run wsl
to continue working on the Linux subsystem
#!/bin/bash | |
id="" | |
secretKey="" | |
appid="" | |
java -jar vosp-api-wrappers-java-22.3.9.4.jar -action uploadandscan -vid $id -vkey $secretKey -appname MDM_UMPI -createprofile true -version 19.6.5.21 -filepath mdm_umpi-tst.zip > analyzeResults | |
cat analyzeResults | |
java -jar vosp-api-wrappers-java-22.3.9.4.jar -vid $id -vkey $secretKey -appid $appid -action GetBuildInfo > buildResults |
==== Install Step/Step-ca Binaries ====
wget -O step.tar.gz https://dl.step.sm/gh-release/cli/docs-ca-install/v0.18.0/step_linux_0.18.0_amd64.tar.gz
tar -xf step.tar.gz
sudo cp step_0.18.0/bin/step /usr/bin
wget -O step-ca.tar.gz https://dl.step.sm/gh-release/certificates/docs-ca-install/v0.18.0/step-ca_linux_0.18.0_amd64.tar.gz
tar -xf step-ca.tar.gz
# Source: https://gist.github.com/38fe5617f9c38125f0213d442d9ab4c9 | |
############################################################# | |
# How To Secure Kubernetes Clusters With Kubescape And Armo # | |
# https://youtu.be/ZATGiDIDBQk # | |
############################################################# | |
# Additional Info: | |
# - Kubescape: https://hub.armo.cloud |
sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get install golang | |
# Usually this is good to install golang, but alas the apt-get repo is usually out of sync with the latest. |
from paramiko import SSHClient | |
from scp import SCPClient, SCPException | |
ssh = SSHClient() | |
ssh.load_system_host_keys() | |
ssh.connect('172.31.144.1', port=2250, username='kk') | |
with SCPClient(ssh.get_transport(), sanitize=lambda x: x) as scp: | |
try: | |
scp.get(remote_path='/home/kk/*', local_path='.', recursive=False) |
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |
#!/bin/bash | |
# | |
while getopts u:p:j:d: flag | |
do | |
case "${flag}" in | |
u) user=${OPTARG};; | |
p) pass=${OPTARG};; | |
j) url=${OPTARG};; | |
d) daystobuild=${OPTARG};; |
--- | |
- hosts: all | |
become: true | |
handlers: | |
- name: restart ssh | |
service: name=sshd state=restarted | |
tasks: | |
# Use secure and encrypted communication. |