配有英伟达显卡的主机,装完 Ubuntu 16.04 后出现闪屏现象,是由于没有安装显卡驱动。
显卡型号
NVIDIA Corporation GM204 [GeForce GTX 970]
| sudo apt-get install python-software-properties | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
| sudo apt-get update | |
| sudo apt-get install gcc-4.9 | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50 | |
| sudo apt-get install g++-4.9 | |
| sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50 |
| Getting started aws ses | |
| http://codechannels.com/video/amazonwebservices/cloud/getting-started-with-amazon-ses/ | |
| 1. Verify email address | |
| In the sandbox you can send email only from emails yiu have verified. | |
| Go to email AWS SES then on the left clcik on 'verified senders' | |
| to start the verification process: | |
| a. click 'verify a ne sender' | |
| in the dialogue box add your email and click submit. you will receive |
| pragma solidity ^0.4.10; | |
| contract Ownable { | |
| address owner; | |
| function Ownable() public { | |
| owner = msg.sender; | |
| } | |
| modifier Owned { | |
| require(msg.sender == owner); |
| # 1. Clear retry set | |
| Sidekiq::RetrySet.new.clear | |
| # 2. Clear scheduled jobs | |
| Sidekiq::ScheduledSet.new.clear | |
| # 3. Clear 'Processed' and 'Failed' jobs |
| # First the end result of what we want: | |
| class Foo | |
| before_hook :whoa | |
| before_hook :amazing | |
| def test | |
| puts "This is kinda cool!" | |
| end |
git clone https://github.com/owner/git.git
git clone git@github.com:owner/git.git
| class DirtyPipeline::Action | |
| module WrappedCall | |
| def call | |
| Events.publish! Event.generate(self) | |
| super | |
| end | |
| end | |
| class << self | |
| attr_accessor :attempted_event_klass, :pipeline, :timeout |