getting started with sanity
npm install -g @sanity/cli && sanity init
Here is what the above code is Doing:
1. Install the Sanity CLI globally
2. Initialize a new Sanity project
npm install -g @sanity/cli && sanity init
Here is what the above code is Doing:
1. Install the Sanity CLI globally
2. Initialize a new Sanity project
netsh wlan show profiles Here is what the above code is Doing: 1. We are using the subprocess module to run the command “netsh wlan show profiles” 2. The output of the command is stored in the variable “results” 3. We are using the split() method to split the output of the command by the…
#you must use an absolute path to your image gsettings set org.gnome.desktop.background picture-uri file:////path/to/your/image Here is what the above code is Doing: 1. It’s setting the background to be a solid color. 2. It’s setting the background to be a picture. 3. It’s setting the background to be a slideshow.
docker exec -it nginx /bin/bash Here is what the above code is Doing: 1. Create a new container named nginx from the nginx image. 2. Run the container in the background. 3. Map port 80 on the host to port 80 on the container. 4. Mount the current directory on the host to /usr/share/nginx/html on…
sed ‘1!d’ filename.type Here is what the above code is Doing: 1. sed is a stream editor. 2. 1!d means print only the first line. 3. filename.type is the file you want to print the first line of.
node ace make:seeder User node ace db:seed Here is what the above code is Doing: 1. We’re creating a new seeder file called User. 2. We’re running the seeder file.
sk@sk:~$ ip route show default via 192.168.1.1 dev eth1 proto static 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.100 metric 1 Here is what the above code is Doing: 1. We are creating a new network namespace called “ns1” 2. We are creating a new veth pair called “veth1” and “veth2” 3. We are…