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 | |
############################################################################### | |
# | |
# Script accepts a csv of sites by named key. | |
# | |
# Usage | |
# | |
# ./benchmark-curl.sh 'group1,https://whatever,https://that,https://this | |
# group2,https://whatever,https://that,https://this' |
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 | |
I=1 | |
while [ $I -le 500 ] | |
do | |
echo $I | |
curl -I -S https://www.google.com | |
I=$(( $I + 1 )) | |
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
# Install datadog apm | |
curl -LO https://github.com/DataDog/dd-trace-php/releases/latest/download/datadog-setup.php | |
php datadog-setup.php --php-bin=all |
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
/** | |
* Run this in your browser console and it will delete all of your facebook photos | |
* one after another. | |
* | |
* You will most likely need to fiddle with the css selectors but its basically: | |
* 1. Click edit of first photo | |
* 2. Click delete in dropdown menu | |
* 3. Click confirm in dialog | |
*/ | |
setInterval(() => { |
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 | |
if(isset($argv[1])) { | |
class Xml { | |
public $url; | |
} | |
class Url { | |
public $loc; | |
} |
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
# Certificates commands | |
# 1) List all valid certificates | |
# 2) List all G5 certificates | |
# | |
# RedHat(because they want to be different): ca-bundle.crt | |
# Everyone else: ca-certificates.crt | |
awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-bundle.crt | |
awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-bundle.crt | grep "G5" |
NewerOlder