What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-29 01:34:01
number of files in directory ubuntu
# To count files (even files without an extension) at the root of the current directory, use: ls -l | grep ^- | wc -l # To count files (even files without an extension) recursively from the root of the current directory, use: ls -lR | grep ^- | wc -l Add solution -
Shell/Bash 2021-08-28 17:47:02
create user ubuntu command line
sudo adduser USERNAME # choose password # other fields can be left empty sudo usermod -aG sudo USERNAME # change user to check if everything is ok su - USERNAME whoami # output > USERNAME sudo whoami # output > root or an error # if error switch ... Add solution -
C# 2021-08-28 13:14:01
C# read GroupComponent Or PartComponent using regex
cimv2:(?<operclass>[\w_]+).((?<name>[\w_]+)=\\\"(?<value>[\w_]*)\\\"([.,])*)* "GroupComponent": "\\\\PMS\\root\\cimv2:Win32_Group.Domain=\"PMS\",Name=\"Administrators\"" "PartCompon... Add solution -
Shell/Bash 2021-08-28 10:14:02
installing helm and tiller on minikube
#installing helm curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > install-helm.sh bash install-helm.sh #Create the Tiller service account kubectl create serviceaccount tiller --namespace kube-system #Bind the Tiller service ... Add solution -
Shell/Bash 2021-08-28 09:26:02
raspberry pi set wifi headless
crate a file in the root folder of the sd card ("boot") called wpa_supplicant.conf ===========contents of file:================= ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=<Insert 2 letter ISO 3166-1 coun... Add solution