-
- Always look for the official documentation, this tutorial may not suit you as there are new updates to the installation process.
- References are at the end of the document.
-
- Windows 11 (
x64
) - WSL 2 (
Ubuntu 22.04.2 LTS
)
- Windows 11 (
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
# Context: Given a GCP organisation node (the organisation itself or one of its subfolder) I need to get all the gcp project ids under this node, flattened in a single list. | |
# Terraform lacks of support to run trough graph structures like a tree. | |
# The below code is a breadth first search run. Depth first search would require recursivity, smthg that I didn't find on HCL. | |
# Last but not least, once I managed to get a working code after one hour of several tries I found the terraform resource which encapsulate what I needed first. | |
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/cloud_asset_resources_search_all#argument-reference | |
provider "google" { | |
user_project_override = true | |
billing_project = <TO-REPLACE> | |
} |
As configured in my dotfiles.
start new:
tmux
start new with session name:
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
package com.ihommani.dataflow.starter; | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.beam.sdk.Pipeline; | |
import org.apache.beam.sdk.PipelineResult; | |
import org.apache.beam.sdk.io.gcp.pubsub.PubsubIO; | |
import org.apache.beam.sdk.io.gcp.pubsub.PubsubMessage; | |
import org.apache.beam.sdk.io.gcp.pubsub.PubsubOptions; | |
import org.apache.beam.sdk.options.Default; | |
import org.apache.beam.sdk.options.Description; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.ihommani</groupId> | |
<artifactId>presentation-maven</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
</project> |
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
function json_structure_test(){ | |
var json = { | |
'toto':{ | |
'titi':{ | |
'tata': 'Hello World', | |
'lala': 'lulu' | |
} | |
}, | |
'cucu':'coco'}; |
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
public class WrapperUser extends AbstractEndpoint{ | |
public doWrappedOperation(){ | |
return wrap(user, appUser -> new ApiUpdateList(updateService.list(appUser, exportId, limit, pageToken))); | |
} | |
} | |
public class AbstractEndpoint { //should be abstract, but prevents discovery generation if not |
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
public MappedField getMappedField(final String storedName) { | |
for (final MappedField mf : persistenceFields) { | |
for (final String n : mf.getLoadNames()) { | |
if (storedName.equals(n)) { | |
return mf; | |
} | |
} | |
} | |
return null; | |
} |
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
The best (permanent) solution I could find was to edit /usr/share/X11/xorg.conf.d/10-evdev.conf | |
>> Add Option "Ignore" "on" to the touchscreen section so it looks like this: | |
Section "InputClass" | |
Identifier "evdev touchscreen catchall" | |
MatchIsTouchscreen "on" | |
MatchDevicePath "/dev/input/event*" | |
Driver "evdev" | |
Option "Ignore" "on" |
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
# Updapte components | |
gcloud components update | |
# Display local configuration folder | |
gcloud info --format='get(config.paths.global_config_dir)' | |
# display help | |
gcloud [command] -h | |
# Create a configuration (project + profile) |
NewerOlder