What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-18 18:37:22
malware with python
$ xxd hello.cpython-38.pyc 00000000: 550d 0d0a 0000 0000 16f3 075f 1700 0000 U.........._.... 00000010: e300 0000 0000 0000 0000 0000 0000 0000 ................ 00000020: 0002 0000 0040 0000 0073 0c00 0000 6500 [email protected]. 00000030: 6400 8301 010... Add solution -
Shell/Bash 2021-11-17 12:09:24
grep first match
# Basic syntax: grep -m 1 "pattern" input_file.txt # Where -m is the maximum number of matching lines to return, i.e. stop # reading the file after m matches # Note, this is more efficient than piping to head because there you # always read the ... Add solution -
Other 2021-11-16 22:40:13
Curl Shell Script To Purge Cache From Stackpath CDN
#!/usr/bin/env bash # Usage: # A simple shell script to purge Stackpath cdn cache using API and curl # command line. Tested on Ubuntu/Debian/RHEL/Fedora Linux and FreeBSD/macOS Unix # Syntax: # /path/to/stackpath.purge.sh https://your-domain/url # -----... Add solution -
-
Other 2021-11-16 11:35:18
Tomcat Shutdown Script
#Finds the tomcat process id ps aux | grep tomcat | grep JavaVirtualMachines | awk -F " " '{print $2}' > tomcatProcessID #Kills the process id returned from above mentioned command. kill -9 `cat tomcatProcessID` && tput setaf 3 &... Add solution
Best helpers
Ranking is empty