The problem is when I enable this setting in my firewall.
I can't connect to internet from my WSL.
I have tried to allow connection to WSL using this guide microsoft/WSL#4585 (comment).
The problem is when I enable this setting in my firewall.
I can't connect to internet from my WSL.
I have tried to allow connection to WSL using this guide microsoft/WSL#4585 (comment).
In this section, I want to copy the cleaned version of Debian distribution. I want to separate the development of my softwares. So, I will create one WSL distribution for one software project.
Look at the name of your distribution you want to export.
wsl -l -v
As you can see in this screenshot, we want to export the clean version of Debian
distribution:
<Configuration ID="f41ae2df-f5bf-4813-a27a-461bcd09d843"> | |
<Add OfficeClientEdition="64" Channel="PerpetualVL2021"> | |
<Product ID="ProPlus2021Volume" PIDKEY="FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH"> | |
<Language ID="en-us" /> | |
<Language ID="id-id" /> | |
<ExcludeApp ID="Lync" /> | |
<ExcludeApp ID="OneDrive" /> | |
<ExcludeApp ID="OneNote" /> | |
<ExcludeApp ID="Outlook" /> | |
<ExcludeApp ID="Publisher" /> |
This command below will set the project ID given in Cloudskillboost Labs. The Project ID got from the project list name start with prefix "qwiklabs-gcp".
NOTE: If there are more than one projects given to you while doing the Cloudskillboost's lab, this command below will not work.
output=$(gcloud projects list | grep "PROJECT_ID: qwiklabs-gcp")
for word in $output
do
if [ $(echo $word | grep "qwiklabs-gcp") ]
then
const AWS = require('aws-sdk'); | |
class StorageService { | |
constructor() { | |
this._S3 = new AWS.S3(); | |
} | |
writeFile(file, meta) { | |
const parameter = { | |
Bucket: process.env.AWS_BUCKET_NAME, // Nama S3 bucket yang ingin digunakan |
commands | description |
---|---|
GRANT ALL PRIVILEGES ON DATABASE <<nama database>> TO <<nama user>>; |
Query to grant All Previledges to a user |
sudo -u postgres psql |
Linux ubuntu login to superadmin |
CREATE USER <<nama user>> WITH ENCRYPTED PASSWORD '<<password>>'; |
Query to create user |
\l |
get database list in the postgres server |
\c database_name |
connect to a database (You need to connect to a database first before you can run the below commands) |
\d table_name |
show table details |
const getDaterangeOneMonth = () => { | |
let date = new Date(); | |
let dateLater = new Date(); | |
dateLater.setDate(date.getDate() + 30); | |
return `${date.toISOString().split("T")[0]} - ${dateLater.toISOString().split("T")[0]}`; | |
} | |
console.log(getDaterangeOneMonth); // 2021-10-25 - 2021-11-24 |