Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096| #!/bin/bash | |
| #move all branches from repo1 to repo2 | |
| repo1=origin | |
| repo2=gogs | |
| branches=$(git branch -r | grep -v $repo2 | grep -v $repo1/HEAD) | |
| echo $branches | while read line ; do | |
| branch=${line:${#repo1}+1} | |
| git checkout $branch | 
| Dim serverName | |
| serverName = InputBox("Server name to look sessions in","Server name prompt") | |
| rem MsgBox(serverName) | |
| Set oShell = WScript.CreateObject("WScript.shell") | |
| rem qwinsta /server:server | |
| Set oResult = oShell.Exec ("qwinsta /server:"&serverName) | |
| strText = StrConv(oResult.StdOut.ReadAll(), "ibm866", "windows-1251") | |
| Function StrConv(Text, SourceCharset, DestCharset) | |
| Set Stream = CreateObject("ADODB.Stream") | 
| #!/bin/bash | |
| # download a file https://pritunl-host/key/kUcPewwukHSXxONlf9NJq7KdcUsMuRwR.tar | |
| echo "Enter url to tar with profile:" | |
| read tar_url | |
| mkdir vpn | |
| wget -O- ${tar_url} | tar x -C vpn | |
| docker run -d \ | |
| --net=host \ | 
| kubectl get crd | sed -n '1!p' | awk '{print $1}' | xargs -I {} sh -c 'echo "Saving {}"; kubectl get crd {} -o yaml > {}.yaml' | 
| #[cfg(test)] | |
| mod test { | |
| #[test] | |
| fn word() { | |
| let board = vec![ | |
| vec!['A','B','C','E'], | |
| vec!['S','F','C','S'], | |
| vec!['A','D','E','E'] | |
| ]; | |
| let board2 = vec![ | 
| echo "Input version number to install [e.g. 5.4.23]:" | |
| read version | |
| wget http://dl.ui.com/unifi/$version/unifi_sysvinit_all.deb -O unifi_$version\_sysvinit_all.deb | |
| sudo apt install -f ./unifi_$version\_sysvinit_all.deb | 
| # Generated by Powerlevel10k configuration wizard on 2020-09-04 at 19:59 CEST. | |
| # Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 42402. | |
| # Wizard options: compatible, classic, unicode, dark, flat heads, flat tails, 1 line, | |
| # sparse, fluent, transient_prompt, instant_prompt=verbose. | |
| # Type `p10k configure` to generate another config. | |
| # | |
| # Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate | |
| # your own config based on it. | |
| # | |
| # Tip: Looking for a nice color? Here's a one-liner to print colormap. | 
| dd if=/dev/zero of=test.img bs=4k count=60000 | |
| #240 Mb | |
| mkfs.ext4 test.img | |
| tune2fs -c0 -i0 test.img | |
| mount -o loop test.img /mnt/ | 
| #FIND | |
| apt-show-versions | grep newer | awk '{ print $1 }' | xargs -I {} apt-show-versions -a {} | grep $(lsb_release -sc) > repo_versions.log | |
| #DOWNGRADE | |
| cat repo_versions.log | awk '{ print $1 "=" $2 }' | xargs -I {} sudo DEBIAN_FRONTEND=noninteractive apt install --reinstall {} -y --allow-downgrades | |
| #CHECK | |
| apt-show-versions | grep newer |