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
| [ | |
| { | |
| "ALL": { | |
| "favorite": "favourite", | |
| "color": "colour" | |
| } | |
| }, | |
| { | |
| "AU": { | |
| "personalized": "personalised", |
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
| sudo chown apache /ivy/gamedevlou/wp-content/ |
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
| log into mysql | |
| ################################# | |
| $ mysql -u root -p | |
| list all databses | |
| ################################# | |
| mysql> show databases; | |
| list all users | |
| ################################# |
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
| if you don't have Gnu copy: | |
| brew install coreutils | |
| Flatten: | |
| Specific file type only | |
| find SOURCE -name '*.mp3' -exec gcp -v --backup=numbered {} DESTINATION \; | |
| All files | |
| find SOURCE -type f -exec gcp -v --backup=numbered {} DESTINATION \; |
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
| exiftool '-FileName<DateTimeOriginal' -d "%Y-%m-%d %H.%M.%S%%-c.%%e" /dir/ |
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/sh | |
| SERVER="servername" | |
| USER="username" | |
| PASSWORD="password" | |
| NOW=$(date +"%m-%d-%Y %r") | |
| DB="databasname" | |
| COMMITMSG="mysql dump" | |
| ssh $SERVER "mysqldump --verbose -u $USER --pass=$PASSWORD $DB" > $DB.sql |
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
| Apache config: | |
| <VirtualHost *:80> | |
| ProxyPreserveHost On | |
| ProxyRequests Off | |
| ServerAlias [your domain or subdomain here] | |
| ProxyPass / http://localhost:2368/ | |
| ProxyPassReverse / http://localhost:2368/ | |
| </VirtualHost> |
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 postJSONtoURL($data, $url, $v=false){ | |
| $content = json_encode($data); | |
| if($v){ echo "<script>console.log('JSON you are posting:\\n ".$content."\\n');</script>"; } | |
| if($v){ echo "<script>console.log('URL you are posting to\\n ".$url."\\n');</script>"; } | |
| $curl = curl_init($url); | |
| curl_setopt($curl, CURLOPT_HEADER, false); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-type: application/json")); | |
| curl_setopt($curl, CURLOPT_POST, true); | |
| curl_setopt($curl, CURLOPT_POSTFIELDS, $content); |
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
| { | |
| "email": null, | |
| "stripeToken": "1413rffqe3f1e1fwefwert1t1we", | |
| "stripeShippingName": "A Test User", | |
| "stripeShippingAddressLine1": "1we2e12", | |
| "stripeShippingAddressZip": "62650", | |
| "stripeShippingAddressState": "IL", | |
| "stripeShippingAddressCity": "Jacksonville", | |
| "stripeShippingAddressCountry": "United States", | |
| "products": [ |
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
| /* | |
| zk | |
| bschk | |
| pv | |
| bk | |
| tk |