adonis js make seeder
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.
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.
adonis make:migration Here is what the above code is Doing: 1. We are importing the Schema class from the @adonisjs/lucid/build/src/Schema file. 2. We are creating a new class called UserSchema that extends the Schema class. 3. We are defining the up method, which is used to make changes to the database. 4. We are defining…
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…
git clone https://github.com/foo/repo_name.git new_directory_name Here is what the above code is Doing: 1. git clone: This is the command to clone a repository. 2. https://github.com/foo/repo_name.git: This is the URL of the repository you want to clone. 3. new_directory_name: This is the name of the directory you want to clone the repository into.
tar xf file.tar.gz -C /root/Desktop/folder Here is what the above code is Doing: 1. The tar command is used to create a tar file. 2. The -c option is used to create a new tar file. 3. The -v option is used to display the progress of the tar file creation. 4. The -f option…
touch test.txt // this creates a file called test.txt Here is what the above code is Doing: 1. We’re creating a new file called test.txt 2. We’re writing the string “Hello World” to the file 3. We’re closing the file 4. We’re opening the file again 5. We’re reading the file and printing it to…
sudo apt-get purge nginx nginx-common Here is what the above code is Doing: 1. Install the nginx package. 2. Remove the nginx package. 3. Purge the nginx package. The first command installs the nginx package. The second command removes the nginx package, but leaves the configuration files intact. The third command purges the nginx package,…