Skip to content

Instantly share code, notes, and snippets.

View erroring_tf_log.txt
Terraform v1.1.5
on linux_amd64
Initializing plugins and modules...
{"@level":"info","@message":"Terraform 1.1.5","@module":"terraform.ui","@timestamp":"2022-03-16T16:22:52.985423Z","terraform":"1.1.5","type":"version","ui":"1.0"}
{"@level":"info","@message":"module.gcloud.null_resource.gcloud_init: Plan to replace","@module":"terraform.ui","@timestamp":"2022-03-16T16:22:59.765190Z","change":{"resource":{"addr":"module.gcloud.null_resource.gcloud_init","module":"module.gcloud","resource":"null_resource.gcloud_init","implied_provider":"null","resource_type":"null_resource","resource_name":"gcloud_init","resource_key":null},"action":"replace","reason":"cannot_update"},"type":"planned_change"}
{"@level":"info","@message":"module.monitoring.module.stackdriver-alerting.google_monitoring_metric_descriptor.with_alert: Plan to replace","@module":"terraform.ui","@timestamp":"2022-03-16T16:22:59.766321Z","change":{"resource":{"addr":"module.monitoring.module.stackdriver-alerting.google_monitoring_metric_descriptor.with
# from
# Run the following command:
git config --global filter.gitignore.clean "sed '/#gitignore$/d'"
# Now, either add a local file in .git/info/attributes
echo "*.extension_to_be_ignored filter=gitignore" > ./.git/info/attributes
# or write into a file that will be part of your code
echo "path_to_file_with_the_ignore_directive filter=gitignore" > ./.gitattributes
# From
#A stash entry is a special ref that points to a commit. So you can simply tag the commit.
git stash push -m "debug"
# after "git stash", tag the last entry
git tag debug stash@{0}
# later use the tag name
git stash apply debug
gnthibault /
Created November 14, 2021 23:19
Find all files recursively that have been modified after a certain date
# From
find . -newermt '2021-11-14T23:00:00'
gnthibault /
Created December 13, 2020 14:31
Compress pdf
# use with
#chmod +x ./
# ./ ./testin.pdf ./testout.pdf
# Licensed under the 3-clause BSD license:
# Copyright (c) 2014-2019, Alfred Klomp
# All rights reserved.
gnthibault /
Created December 1, 2020 18:28 — forked from taoyuan/
Force git to use https:// instead of git://
# npm using https for git
git config --global url."".insteadOf
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."".insteadOf
git config --global url."git://".insteadOf https://
gnthibault / gist:970d0d30644a5162cd4e9068f49151ef
Last active December 1, 2020 20:26
Safe access for multiple user on the same account on a linux machine
View gist:970d0d30644a5162cd4e9068f49151ef
First task is to create your own token (generate new token):
you can test it with
curl -u <token>:x-oauth-basic
Then write it down to a specific file in home/user/subuser/.netrc , where you just created your directory
content of the file:
gnthibault / git-credential-netrc
Created December 1, 2020 17:31
git-credential-netrc to be used to allow for multiple git user to safely log to machine with password (most idiots will never use the clean method and just override whatever you have done though)
View git-credential-netrc
use strict;
use warnings;
use Getopt::Long;
use File::Basename;
my $VERSION = "0.1";
gnthibault /
Last active March 25, 2020 08:51
Create python project from start
# Go one level up your git repo directory called project_name
pip install pyscaffold pyscaffoldext-markdown pyscaffoldext-dsproject python-sphinx
putup project_name --markdown --dsproject --force
cd project_name
wget ",python,pycharm,jupyternotebooks" -O .gitignore
# Put you requirements inside requirements.txt, example: matplotlib==3.1.0
gnthibault /
Created March 16, 2020 23:04 — forked from Sklavit/
Tornado HTTP web page with embedded Bokeh widget which communicates with other page of the same application

Tornado HTTP web page with embedded Bokeh widget which communicates with other page of the same application

Tornado HTTP web page with embedded Bokeh widget which communicates with other page of the same application.


  • Full Tornado server
  • Bokeh server is started from Tornado server and is executed in the same ioloop
  • Embedded Bohek widget by autoload_server
  • 2 web page communication: