In your command-line run the following commands:
brew doctor
brew update
In your command-line run the following commands:
brew doctor
brew update
""" | |
This module is contains a handy tool to bulk delete DNS records from Cloudflare DNS via API | |
Usage: | |
```bash | |
git clone https://gist.github.com/bb15b3fc54ec6cbe7476b52c49e7c4aa.git | |
cd bb15b3fc54ec6cbe7476b52c49e7c4aa | |
python3 ./cloudflare_bulk_delete_dns.py your_api_token zone_id | |
``` | |
""" |
<?php | |
$a=['Automattia','WordPresq','Jetpaci','WooCommercc']; | |
$data = array_map(function($value) { | |
$r = ['a'=>'c', 'q'=>'s', 'i'=>'k', 'c'=>'e']; | |
return substr($value, 0, strlen($value)-1).$r[$value[-1]]; | |
}, $a); | |
var_dump($data); |
.SILENT: | |
revbump: | |
set -e ;\ | |
git tag --sort=v:refname | tail -1 | |
NEW_VERSION=$$( git tag --sort=v:refname | tail -1 | awk 'BEGIN{FS=OFS="."}{print $$1,$$2,$$3+1}' ) ;\ | |
echo "unstable release $$NEW_VERSION" ;\ | |
git tag $$NEW_VERSION | |
git push --tags |
#!/bin/bash | |
#Convert all jpeg files in current dir to PNG in new folder Converted | |
sips -s format png *.jpeg –out Converted | |
#Convert all tiff files in current dir to jpeg in new folder Converted | |
sips -s format jpeg *.tiff –out Converted |
<?php | |
echo date('c'); | |
?> |
<!DOCTYPE html> | |
<html> | |
<body> | |
<?php | |
echo "This is a very simple php example."; | |
?> | |
</body> | |
</html> |
<!DOCTYPE html> | |
<html> | |
<body> | |
<?php | |
echo "This is a very simple php example."; | |
?> | |
</body> | |
</html> |
convert *.png -set filename:base "%[basename]" -crop 2048x2048+0+0 -resize 640x640 -sharpen 0x1 res/"%[filename:base].png" |