$ terraform workspace new staging
Created and switched to workspace "staging"!
You're now on a new, empty workspace. Workspaces isolate their state,
so if you run "terraform plan" Terraform will not see any existing state
for this configuration.
This file contains hidden or 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
resource "google_compute_network" "nat" { | |
project = var.gcp_project_id | |
name = "nat" | |
} | |
resource "google_compute_router" "nat" { | |
project = var.gcp_project_id | |
name = "nat" | |
network = google_compute_network.nat.self_link | |
} |
This file contains hidden or 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
I built a HEDT Windows PC late 2019 and wanted to start using it as a development environment in addition to games. It's got a Threadripper 2950X, Nvidia 2080 Ti, 64 GB memory, and 2 x Samsung 970 Pro NVMe SSDs (one dedicated to Windows 10, one to Ubuntu). These are my notes after week one of installation and usage as a work environment (Python development, DevOps, remote administration, and hopefully some video / media transcoding and manipulation). I come from a Macbook Pro as my primary work / development machine. | |
• No LVM in normal ISO? Had to use alternative "netinstall" ISO...OK. | |
• Can't click dismiss on initial WiFi notification... dismiss button broken? | |
• Change time from 24 hour to AM/PM. Status bar shows AM/PM but desktop still shows 24 hour... | |
• Xorg Nvidia driver by default, terrible resolution. Use nvidia proprietary. Reboot. | |
• Looks good but refresh rate 60hz? Manually change to 144. | |
• Refresh rate changes back to 60 on logout and back to 144 on login... How to make system wide? | |
• SSH keys not |
These instructions will help you get rid of the Slack quick-switcher on macOS. Slack 4.0.0 introduces a different packing mechanism which adds some steps. But both sets of steps will use the following JavaScript snippet:
document.addEventListener("DOMContentLoaded", function() {
let customCustomCSS = `
div.p-channel_sidebar__navigation_bar {
display: none;
}
`
This file contains hidden or 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
// This #include statement was automatically added by the Particle IDE. | |
#include <blynk.h> | |
// This #include statement was automatically added by the Particle IDE. | |
#include <RelayShield.h> | |
RelayShield myRelays; | |
LEDStatus blinkRed(RGB_COLOR_RED, LED_PATTERN_BLINK); | |
char auth[] = "e2f9e87c65c04d9f8ae6c05c46af0271"; |
This file contains hidden or 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
from datadog_checks.utils.subprocess_output import get_subprocess_output | |
from datadog_checks.checks import AgentCheck | |
class AptCheck(AgentCheck): | |
def check(self, instance): | |
metric_prefix = 'package.updates' | |
package_updates = self.get_update_count() | |
self.gauge('%s.security' % metric_prefix, package_updates['security']) | |
self.gauge('%s.regular' % metric_prefix, package_updates['regular']) |
This file contains hidden or 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
1540503241102 geckodriver INFO geckodriver 0.19.1 | |
1540503241106 geckodriver INFO geckodriver 0.19.1 | |
1540503241112 geckodriver INFO Listening on 127.0.0.1:35169 | |
1540503241115 geckodriver INFO Listening on 127.0.0.1:51405 | |
1540503242449 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-headless" "-profile" "/tmp/rust_mozprofile.LuNcVSKdWkZh" | |
1540503242452 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-headless" "-profile" "/tmp/rust_mozprofile.NVkuSVAjuWm4" | |
1540503242453 geckodriver::marionette TRACE connection attempt 0/600 | |
1540503242455 geckodriver::marionette TRACE connection attempt 0/600 | |
*** You are running in headless mode. | |
*** You are running in headless mode. |
This file contains hidden or 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
from datadog import statsd | |
import googleapiclient.discovery | |
PROJECT = 'myproj-153506' | |
SERVICES = [ | |
'internal', | |
'www', | |
'backend' | |
] | |
METRIC = 'gcp.gce.backend.health' |
I hereby claim:
- I am andyshinn on github.
- I am andyshinn (https://keybase.io/andyshinn) on keybase.
- I have a public key whose fingerprint is 45DF 685F CD42 D902 BE71 06E3 05E6 1E54 BDCC 55B0
To claim this, I am signing this object:
This file contains hidden or 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
FROM centos:6 | |
RUN yum -y groupinstall "Development Tools" "Development Libraries" | |
RUN yum -y install wget git rpm-build | |
RUN yum -y install https://packages.erlang-solutions.com/rpm/centos/6/x86_64/esl-erlang-R15B03-2.x86_64.rpm |