Extract the downloaded drivers
sudo tar -xvjf r8152.53.56-2.15.0.tar.bz2 -C /usr/src/Create a DKMS.conf file
Extract the downloaded drivers
sudo tar -xvjf r8152.53.56-2.15.0.tar.bz2 -C /usr/src/Create a DKMS.conf file
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
If you're deploying your app to somewhere where you can't be sure to have reliable disk read/write access, the normal strategy of writing to a temp-file doesn't work.
Instead we can open a pipe to the Phantom.js process, and then pass in the HTML via stdin, and then have the rasterize.js script write out the resulting PDF to stdout, which we can then capture.
Any log messages from the Phantom.js process can be passed via stderr if we want.
| #/bin/bash | |
| # Run only on even weeks | |
| if [[ $DATE == "" ]]; then | |
| echo "Using today's date" | |
| today=`date +%Y%m%d` | |
| else | |
| echo "Using $DATE date" | |
| today=$DATE | |
| fi |
| :) CREATE TABLE test.nested (EventDate Date, UserID UInt64, Attrs Nested(Key String, Value String)) ENGINE = MergeTree(EventDate, UserID, 8192) | |
| CREATE TABLE test.nested | |
| ( | |
| EventDate Date, | |
| UserID UInt64, | |
| Attrs Nested( | |
| Key String, | |
| Value String) | |
| ) ENGINE = MergeTree(EventDate, UserID, 8192) |
#Стратегии деплоймента в Capistrano Стратегии деплоймента в Rails настраиваются в файле config/deploy.rb. Сама настройка сводится к установке нескольких встроенных переменных в определённые значения.
# эта стратегия используется по умолчанию. Сводится она к тому,
# что на :app сервере запускается приложение svn которое обращается
# к удалённому репозиторию и делает checkout указанного проекта.
set :deploy_via, :checkout| require 'bundler/setup' | |
| require 'active_record' | |
| include ActiveRecord::Tasks | |
| db_dir = File.expand_path('../db', __FILE__) | |
| config_dir = File.expand_path('../config', __FILE__) | |
| DatabaseTasks.env = ENV['ENV'] || 'development' |