This file contains 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 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 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 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 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 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
const path = require('path'); | |
const webpack = require('webpack'); | |
module.exports = { | |
context: path.resolve(__dirname, 'src'), | |
entry: { | |
app: './app.js', | |
}, | |
output: { | |
path: path.resolve(__dirname, 'dist'), | |
publicPath: '/dist/', |
This file contains 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
#replace sdX with your device. THIS COMMAND WILL DESTROY THE CONTENT OF YOUR DEVICE (/dev/sdX) | |
sudo umount /dev/sdX1 | |
sudo dd if=ubuntu-17.04-desktop-amd64.iso of=/dev/sdX bs=4M | |
sync | |
This file contains 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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /var/www/example.com/htdocs/public; | |
index index.php index.html index.htm index.nginx-debian.html; | |
server_name example.com www.example.com; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} |
This file contains 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 | |
return array( | |
'title' => 'Users', | |
'single' => 'user', | |
'model' => 'App\User', | |
/** | |
* The display columns | |
*/ | |
'columns' => array( |
This file contains 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
// VUE-LOADER: loading module Vue | |
const vue = require('vue-loader'); | |
const path = require('path'); | |
const webpack = require('webpack'); | |
module.exports = { | |
context: path.resolve(__dirname, 'src'), | |
entry: { | |
app: './app.js', | |
}, | |
output: { |