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
db.tollbooth.find().forEach(function (item) { | |
name = item.name | |
mysplit = name.split(" - ") | |
item.route = mysplit[0] | |
db.tollbooth.save(item) | |
}) |
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
db.tollbooth.find().forEach(function (item) { | |
loc = [item.lng, item.lat] | |
// print(loc) | |
item.loc= loc | |
print(item) | |
db.tollbooth.save(item) | |
}) |
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
<IfModule mod_expires.c> | |
ExpiresActive on | |
# Your document html | |
ExpiresByType text/html "access plus 1 month" | |
# Media: images, video, audio | |
ExpiresByType audio/ogg "access plus 1 month" | |
ExpiresByType image/gif "access plus 1 month" | |
ExpiresByType image/jpeg "access plus 1 month" |
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 | |
$endpoint_url="your_url_here"; | |
$string_json = "your_json_string"; | |
$username="username"; | |
$password ="password"; | |
$client = new Client(); | |
$options= array( | |
'auth' => [ | |
$username, |
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 | |
$endpoint_url="your_url_here"; | |
$string_json = "your_json_string"; | |
$username="username"; | |
$password ="password"; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $endpoint_url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
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
convert images_*.png -layers flatten image.png ; convert image.png -quality 50 image.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
{ | |
"Chrome 47.0": "23.69", | |
"Chrome for Android": "16.39", | |
"Safari iPhone": "7.03", | |
"IE 11.0": "6.23", | |
"Firefox 43.0": "5.76", | |
"Android 0": "4.83", | |
"Opera 0": "4.04", | |
"Safari iPad": "3.22", | |
"Chrome 48.0": "2.41", |
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
COUNTER=1 | |
for currentfile in $(ls Productname*.png); do | |
if [ $COUNTER == 1 ]; then | |
cp $currentfile prova_$COUNTER.png | |
else | |
composite $currentfile prova_$(expr $COUNTER - 1).png prova_$COUNTER.png | |
fi | |
COUNTER=$(expr $COUNTER + 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
#!/bin/bash | |
#update ports index | |
sudo port selfupdate | |
# install php version 7.0 :) | |
sudo port install php70 | |
# install php 7 as apache module | |
sudo port install php70-apache2handler | |
cd /opt/local/apache2/modules | |
sudo /opt/local/apache2/bin/apxs -a -e -n php7 mod_php70.so | |
cd |
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
Show hidden characters
{ | |
"auto_indent": true, | |
"detect_indentation": true, | |
"font_size": 14, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"indent_to_bracket": false, | |
"smart_indent": true, |