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
| #example: ./site_scooper.sh asdf.com | |
| #if it doesn't work, check your url, and see if it redirects from asdf.com to www.asdf.com, and retry with www.asdf.com | |
| SITE=$1 | |
| URLS="$1_urls.txt" | |
| echo -e "Starting Sitemap Generation===============================================\n" | |
| echo "" > site_url_list_raw.txt |
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
| #example: ./site_map.sh asdf.com | |
| SITE=$1 | |
| URLS="$1_urls.txt" | |
| echo -e "Starting Sitemap Generation===============================================\n" | |
| echo "" > site_url_list_raw.txt |
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 | |
| $data = "\n---------------------------------------------------------------------\nRaw Input:\n" . file_get_contents("php://input"); | |
| $data .= "\n\nGet:\n". print_r($_GET,true); | |
| $data .= "\nPost:\n". print_r($_POST,true); | |
| file_put_contents( "log-output-test.txt", $data , FILE_APPEND | LOCK_EX ); |
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
| rename "s/[\s()]/_/g" *; rename "s/_+/_/g" * ; find *.pdf -exec convert -colorspace sRGB -density 150 {} -background white -alpha remove -alpha off -resize 1600x1600 -quality 100 {}.jpg \; |
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
| <pre> | |
| <?php | |
| //built to generate a json file for https://wordpress.org/plugins/redirection/ | |
| //might want to run this through a json validator before uploading. there isnt any checking to make sure things worked correctly | |
| //paste two columns from excel here. | |
| //make sure to have trailing slashes | |
| $data = "/thing/asdf/ /other-thing/qwerty/ | |
| /ideas/ /better-ideas/"; |
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
| find *.xml -exec xmllint --schema Schema.xsd --noout {} \; |
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
| background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><rect style='fill:rgb(41,114,183);' width='100%' height='100%' opacity='0.75' /></svg>"), url('img/background.jpg'); |
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
| <script> | |
| function equalHeight(group) { | |
| var tallest = 0; | |
| group.each(function() { | |
| var thisHeight = $(this).height(); | |
| if(thisHeight > tallest) { | |
| tallest = thisHeight; | |
| } | |
| }); | |
| group.height(tallest); |
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
| FILENAME="domains.txt" | |
| LINES=$(cat $FILENAME) | |
| echo "Domain, Version" > domains_with_versions.csv | |
| for LINE in $LINES | |
| do | |
| CHECKLOCATION="${LINE}/feed/" |
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 | |
| #place in a folder with gear 360 images, and it'll split them into the two images. | |
| if [ ! -d "split" ] | |
| then | |
| mkdir split | |
| fi | |
| for i in * |