This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-Process -Id (Get-NetTCPConnection -LocalPort 8080).OwningProcess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # IDE/Settings related stuff | |
| .idea | |
| .project | |
| .settings | |
| .vscode | |
| .history | |
| *.metadata/ | |
| *.springBeans | |
| *.iml | |
| venv/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hashlib | |
| import os | |
| import sys | |
| def generate_md5(file_path): | |
| with open(file_path.strip(), "rb") as f: | |
| v = f.read() | |
| x = hashlib.new("md5", v) | |
| return x.hexdigest() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| from os import path | |
| parameters = sys.argv[1:] | |
| if len(parameters) == 0: | |
| print(f"usage: {sys.argv[0]} <startswith-string>") | |
| sys.exit(0) | |
| if len(parameters) > 0: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gsettings set org.gnome.desktop.background picture-uri "" | |
| gsettings set org.gnome.desktop.background picture-uri-dark "" | |
| gsettings set org.gnome.desktop.background primary-color '#3B6EA5' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // removeEmptyStrings - Use this to remove empty string values inside an array. | |
| // This happens when allocation is bigger and empty | |
| func removeEmptyStrings(s []string) []string { | |
| var r []string | |
| for _, str := range s { | |
| if str != "" { | |
| r = append(r, str) | |
| } | |
| } | |
| return r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var config = {}; | |
| config.headers = {}; | |
| config.headers[document.querySelector('meta[name="_csrf_header"]').content] = document.querySelector('meta[name="_csrf"]').content; | |
| this.form.submit("post", "https://url.test.com", config); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .metadata/ | |
| .idea/ | |
| .classpath | |
| .project | |
| .springBeans | |
| .settings/ | |
| .iml | |
| /target/ | |
| /bin/ | |
| src/main/webapp/WEB-INF/lib/plugin-entities.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function extractDistinctObjects(key, items) { | |
| var tmp = []; | |
| items.filter(function(item){ | |
| if(tmp.findIndex(x => x[key] == item[key]) <= -1) { | |
| tmp.push(item); | |
| } | |
| }); | |
| return tmp; | |
| } |