Skip to content

Instantly share code, notes, and snippets.

View create_user.sh
#! /usr/bin/env bash
# normally first char of prename + surname
users="${@:-jsmith}"
# normally users
group="users"
# normally adm and/or sudo
groups="adm,sudo"
View hashicorp_23869
2020-01-15T18:02:39.472+0100 [DEBUG] plugin.terraform-provider-aws_v2.41.0_x4: -----------------------------------------------------
2020-01-15T18:02:40.138+0100 [DEBUG] plugin.terraform-provider-aws_v2.41.0_x4: 2020/01/15 18:02:40 [DEBUG] [aws-sdk-go] DEBUG: Response acm/ImportCertificate Details:
2020-01-15T18:02:40.138+0100 [DEBUG] plugin.terraform-provider-aws_v2.41.0_x4: ---[ RESPONSE ]--------------------------------------
2020-01-15T18:02:40.138+0100 [DEBUG] plugin.terraform-provider-aws_v2.41.0_x4: HTTP/1.1 400 Bad Request
2020-01-15T18:02:40.138+0100 [DEBUG] plugin.terraform-provider-aws_v2.41.0_x4: Connection: close
2020-01-15T18:02:40.138+0100 [DEBUG] plugin.terraform-provider-aws_v2.41.0_x4: Content-Length: 154
2020-01-15T18:02:40.138+0100 [DEBUG] plugin.terraform-provider-aws_v2.41.0_x4: Content-Type: application/x-amz-json-1.1
2020-01-15T18:02:40.138+0100 [DEBUG] plugin.terraform-provider-aws_v2.41.0_x4: Date: Wed, 15 Jan 2020 17:02:39 GMT
2020-01-15T18:02:40.138+0100 [DEBUG] plugin.terraform-pr
@zioalex
zioalex / configure_cuda_p70.md
Created Aug 26, 2019 — forked from alexlee-gk/configure_cuda_p70.md
Use integrated graphics for display and NVIDIA GPU for CUDA on Ubuntu 14.04
View configure_cuda_p70.md

This was tested on a ThinkPad P70 laptop with an Intel integrated graphics and an NVIDIA GPU:

lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204GLM [Quadro M3000M] (rev a1)

A reason to use the integrated graphics for display is if installing the NVIDIA drivers causes the display to stop working properly. In my case, Ubuntu would get stuck in a login loop after installing the NVIDIA drivers. This happened regardless if I installed the drivers from the "Additional Drivers" tab in "System Settings" or the ppa:graphics-drivers/ppa in the command-line.

View ethereum_gitst
0x10f1fea2636780BA882F518ca075dA90FE209210