Skip to content

itsmrval/cmds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation


Logo

Commands directory

This repository is a draft of useful commands
Pull request

ZFS

  • Used memory
    awk '/^size/ { print $1 " " $3 / 1048576 }' < /proc/spl/kstat/zfs/arcstats

Docker

  • Setup
    curl -sSL https://get.docker.com/ | CHANNEL=stable bash

Kubernetes

  • Uninstall
    bash <( curl -s https://raw.githubusercontent.com/itsmrval/cmds/main/kubernetes/uninstall.sh )

NodeJS

  • Repo setup (20.X)
    curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
  • Package install
    apt install -y nodejs

Network

  • Display PPS
    cat /sys/class/net/vmbr0/statistics/tx_packets

PHP

  • Repo setup

    For debian:

    curl -sSL https://packages.sury.org/php/README.txt | sudo bash -x

    For ubuntu:

    LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
  • Package install

    apt update
    apt install -y php8.1 php8.1-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip}

GO

  • Compile for linux on darwin

    Install x86 gcc linux

    brew tap SergioBenitez/osxct                                                                                                                            took 53s at 13:59:18
    brew install x86_64-unknown-linux-gnu

    Build

    CC=x86_64-unknown-linux-gnu-gcc CGO_ENABLED=1 GOARCH=amd64 GOOS=linux go build

About

A directory of many useful commands

Topics

Resources

Stars

Watchers

Forks

Languages