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
| // ==UserScript== | |
| // @name Expandrive Sales Killer | |
| // @version 0.1 | |
| // @description Auto Closes the new Pop generated by Expandrive | |
| // @author SmugZombie | |
| // @match https://www.expandrive.com/desktop/buy/ | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=expandrive.com | |
| // @grant none | |
| // ==/UserScript== |
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
| const fs = require('fs'); | |
| fs.readFile('path/to/your/har/file.har', 'utf8', (err, data) => { | |
| if (err) throw err; | |
| let har; | |
| try { | |
| har = JSON.parse(data); | |
| } catch (e) { | |
| console.error('Error parsing the input file as JSON:', e.message); |
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
| // ==UserScript== | |
| // @name Jira - External Links Fixer | |
| // @namespace https://github.com/smugzombie | |
| // @version 0.1.0 | |
| // @description Jira is dumb and opens all links in the same tab as the issue you are viewing.. causing you to lose the issue. This forces external links to open seperately | |
| // @author SmugZombie (github.com/smugzombie | |
| // @match https://*.atlassian.net/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=atlassian.net | |
| // @grant none | |
| // @downloadURL https://put.wtf/media/scripts/JiraLinks.js?version=0.1.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
| function toISO(date) { | |
| // If the date is already an ISO string, return it as-is | |
| if (typeof date === 'string' && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(date)) { | |
| return date; | |
| } | |
| // If the date is a number, assume it's a timestamp and convert it to a Date object | |
| if (typeof date === 'number') { | |
| date = new Date(date); | |
| } |
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
| <?php | |
| function defangPayload($payload){ | |
| $re = '/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w\-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/im'; | |
| preg_match_all($re, $payload, $matches, PREG_SET_ORDER, 0); | |
| foreach ($matches as $key => $value) { | |
| $payload = str_replace($value[0], preg_replace('/\./', "[.]", $value[0]), $payload); | |
| } | |
| return $payload; | |
| } |
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 defangPayload(payload){ | |
| const re = /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w\-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/img; | |
| const array = [...str.matchAll(re)]; | |
| for (let index = 0; index < array.length; index++) { | |
| payload = payload.replace(array[index][0], array[index][0].replace(/\./g, "[.]")); | |
| } | |
| return payload; | |
| } |
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
| #!/bin/bash | |
| # Docker Monitor v1.3 | |
| # Simple cron script to check to see if a docker container is runnign or not and restarts it if not. | |
| # Ron Egli <[email protected]> | |
| # Grab the container name from cli argument | |
| CONTAINER_NAME=$1 | |
| if [ -z "$CONTAINER_NAME" ] | |
| then |
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
| for i in {1..30} | |
| do | |
| domain="ww$i.propodsmax.co" | |
| dns=$(curl -s "https://beta.digdns.com/api/1.0/getDNS.json?type=1&query=$domain" | awk -F "ip" {'print $2'} | awk -F '"' {'print $3'}) | |
| echo $domain - $dns | |
| done |
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
| licenseKey=$1 | |
| string="not validate your key" | |
| response=$(curl --location --request POST -s 'https://offlineupdate.alienvault.com/cgi-bin/auth' \ | |
| --header 'Content-Type: application/x-www-form-urlencoded' \ | |
| --data-urlencode 'next=/files/md5.txt' \ | |
| --data-urlencode 'key='$licenseKey) | |
| #echo $response | |
| #echo $string | |
| if [[ "$response" == *"$string"* ]]; then | |
| echo "INVALID" |
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
| #SingleInstance, Force | |
| Screen_X := Floor(A_ScreenWidth / 3) ;- 2 | |
| Screen_Y := Floor(A_ScreenHeight / 3) | |
| ;Msgbox % Screen_X | |
| GUI1_X := 0 | |
| GUI1_Y := 0 | |
| GUI1_H := Screen_Y |