What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-24 12:58:10
vault Key-value insert from CLI
/*Put the value in the Vault from Powershell/CLI:- I have put secret name second-secret and user and password as Ankit1 this would be by default referred as Version 1*/ vault kv put secret/second-secret user=Ankit1 //Get or read the secret kv's this wi... Add solution -
Python 2021-10-23 05:29:08
on_delete options django
There are seven possible actions to take when such event occurs: CASCADE: When the referenced object is deleted, also delete the objects that have references to it (when you remove a blog post for instance, you might want to delete comments as well). ... Add solution -
Other 2021-10-22 18:45:07
priority queue using array in c
#include<stdio.h> #define N 20 int Q[N],Pr[N]; int r = -1,f = -1; void enqueue(int data,int p)//Enqueue function to insert data and its priority in queue { int i; if((f==0)&&(r==N-1)) //Check if Queue is full printf("Queue is full&q... Add solution -
SQL 2021-10-21 10:59:10
truncate delete and drop in sql
DELETE - -DML COMMAND -Delete Rows from the table one by one -We can use where clause with Delete to delete single row -Delete is slower than truncate -ROLLBACK is possible with DELETE DROP- -DDL COMMAND -Delete the entire structure or schema -We can't u... Add solution -
Shell/Bash 2021-10-21 06:45:13
vault hashicorp cheat sheet
#Enabling and Disabling Auth Methods $ vault auth enable userpass $ vault auth list $ vault auth list -detailed $ vault auth enable -path=my-login userpass $ vault write sys/auth/my-auth type=userpass #Check $ vault read sys/auth/ $ vault r... Add solution -
Shell/Bash 2021-10-20 10:52:04
git Automatic merge failed; fix conflicts and then commit the result
# Step 1: # Navigate into the local Git repository that has the merge conflict. cd REPOSITORY-NAME # Step 2: # Generate a list of the files affected by the merge conflict. # In this example, the file styleguide.md has a merge conflict. git status ... Add solution -
Python 2021-10-20 07:30:06
on_delete=models.cascade
There are seven possible actions to take when such event occurs: CASCADE: When the referenced object is deleted, also delete the objects that have references to it (when you remove a blog post for instance, you might want to delete comments as well). ... Add solution -
Other 2021-10-18 20:47:03
linkedin entrepreneur messages scam
If you believe you have been scammed, you should do the following: Send the suspicious email to [email protected]. Delete the email from your account. If you clicked any of the links in the email, run your antivirus and spyware software to find and re... Add solution