Skip to content

Instantly share code, notes, and snippets.

@lazidoca
lazidoca / list_users.sh
Created October 31, 2021 08:32
list all users linux
cut -d: -f1 /etc/passwd
https://askubuntu.com/questions/410244/is-there-a-command-to-list-all-users-also-to-add-delete-modify-users-in-the
@lazidoca
lazidoca / cheatsheet.md
Created September 15, 2021 03:15
Windows xcopy cheatsheets

Windows xcopy cheatsheets

Copy the file(s) to the specified destination:

xcopy {{path/to/file_or_directory}} {{path/to/destination}}

List files that will be copied before copying:

xcopy {{path/to/file_or_directory}} {{path/to/destination}} /p
@lazidoca
lazidoca / symbol.yml
Created April 24, 2021 09:25
Symbols
Classic:
- AAPL|hppl://sdfs|hahaha
- AAPL|hppl://sdfs|hahaha
Elliot wave:
- AAPL|hppl://sdfs|hahaha

Privacy Policy for TEXTKOOL

At TEXTKOOL, accessible from https://textkool.com/, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by TEXTKOOL and how we use it.

If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.

This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in TEXTKOOL. This policy is not applicable to any information collected offline or via channels other than this website.

Consent

By using our website, you hereby consent to our Privacy Policy and agree to its terms.

Privacy Policy for LIPSPY

At LIPSPY, accessible from https://lipspy.com/, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by LIPSPY and how we use it.

If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.

This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in LIPSPY. This policy is not applicable to any information collected offline or via channels other than this website.

Consent

By using our website, you hereby consent to our Privacy Policy and agree to its terms.

@lazidoca
lazidoca / bash.sh
Created February 22, 2020 03:03
Save multiple docker images
IDS=$(docker images | awk '{if ($1 ~ /^(debian|centos)/) print $3}')
docker save $IDS -o /path/to/save/somedockersimages.tar
@lazidoca
lazidoca / install.sh
Last active October 1, 2021 11:31 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
# sudo apt-get update
# sudo apt-get install lxc-docker -y
# Alternatively you can use the official docker install script
@lazidoca
lazidoca / cpu.sh
Created December 10, 2019 00:05
View CPU percentage usage
awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' \
<(grep 'cpu ' /proc/stat) <(sleep 1;grep 'cpu ' /proc/stat)
#!/bin/bash -i
curl https://pyenv.run | bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
echo 'export PATH="/root/.pyenv/bin:$PATH"' >> .bashrc
echo 'eval "$(pyenv init -)"' >> .bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> .bashrc
sudo apt update

Keybase proof

I hereby claim:

  • I am lazidoca on github.
  • I am lajikoa (https://keybase.io/lajikoa) on keybase.
  • I have a public key ASCiYbDQZjyCzJ2MO6SFDfki-kMzJKuq57ty3eLFMgrU4Qo

To claim this, I am signing this object: