https://www.google.com/chrome/
https://chrome.google.com/webstore/detail/web-scraper/jnhgnonknehpejjnehehllkliplmbmhn
More tutorials: https://www.webscraper.io/
#!/usr/bin/env bash | |
# Credits (based on): J. Elliot Taylor https://gist.github.com/jaytaylor/86d5efaddda926a25fa68c263830dac1 | |
# Changes: | |
# - iterate over tag list instead of using only first one | |
# - optional: basic auth | |
set -e | |
set -o pipefail | |
readonly VER=1.0.0 |
/** | |
* extract rar or zip file | |
* | |
* @since [1.0] | |
* @author Richard | |
* @date 2015-05-05 | |
* | |
* @param [string] $file_path ["D:\file\path\a.rar"] | |
* @param [string] $to_path ["D:\extract\to\path"] | |
* @return [boolean] |
server { | |
listen 80; | |
listen [::]:80; | |
server_name domain.com; | |
autoindex off; | |
index index.php index.html; | |
root /srv/www/domain.com/public; |
sudo su | |
//Setup Hostname | |
hostnamectl set-hostname subdomain.domain.tld | |
## Basic | |
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get autoremove -y && sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php -y && add-apt-repository ppa:nginx/stable -y | |
//Setup SWAP | |
sudo fallocate -l 1G /swapfile; |
[data-theme="dark"] { | |
background-color: #111 !important; | |
color: #eee; | |
} | |
[data-theme="dark"] .bg-light { | |
background-color: #333 !important; | |
} | |
[data-theme="dark"] .bg-white { |
#!/bin/bash | |
#============================================================================== | |
#TITLE: mysql_backup.sh | |
#DESCRIPTION: script for automating the daily mysql backups on development computer | |
#AUTHOR: tleish | |
#DATE: 2013-12-20 | |
#VERSION: 0.4 | |
#USAGE: ./mysql_backup.sh | |
#CRON: | |
# example cron for daily db backup @ 9:15 am |
rs.slaveOk(); | |
db.getCollectionNames().forEach(function(coll) { | |
db[coll].getIndexes().forEach(function(index) { | |
if ("_id_" !== index.name) { | |
print("db." + coll + ".ensureIndex(" + tojson(index.key) + ")"); | |
} | |
}); | |
}); |
# load dynamic modules | |
load_module /etc/nginx/modules/ngx_http_geoip_module.so; | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log info; | |
pid /var/run/nginx.pid; | |
events { worker_connections 1024; } | |
http { |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm