ID NAME PARENT_ID CHILDS LEVEL
1 COMPANY NULL [{"id": 2, "name": "PROJECT", "level": 2}, {"id": 3, "name": "BRANCH", "level": 3}] 1
2 PROJECT 1 [{"id": 3, "name": "BRANCH", "level": 3}] 2
3 BRANCH 2 [] 3
First identify your image.
$ docker ps --format "{{.ID}}: {{.Image}} {{.Names}}"
3d2fb2ab2ca5: jenkins-docker jenkins-docker_1Then login into the image as root.
$ docker container exec -u 0 -it jenkins-docker_1 /bin/bash
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
| use flate2::write::GzEncoder; | |
| use flate2::Compression; | |
| use log::info; | |
| use std::fs::File; | |
| use std::io::{copy, Error}; | |
| use std::io::BufReader; | |
| use std::time::Instant; | |
| use std::fs::File; | |
| use std::io::{BufReader, Cursor, Read, Write}; | |
| use flate2::Compression; |
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
| use std::path::Path; | |
| use turbojpeg::image::EncodableLayout; | |
| use crate::api::convert; | |
| pub async fn compress(image_path: String) -> Result<Vec<u8>, anyhow::Error> { | |
| let path = Path::new(image_path.as_str()); | |
| let ext = path.extension().and_then(|ext| ext.to_str()).unwrap_or(""); | |
| let jpeg_data: Vec<u8>; | |
| if ext != "jpg" && ext != "jpeg" { |
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
| import 'package:google_api_availability/google_api_availability.dart'; | |
| enum ServicesAvailability { | |
| success, | |
| serviceMissing, | |
| serviceUpdating, | |
| serviceVersionUpdateRequired, | |
| serviceDisabled, | |
| serviceInvalid, | |
| notAvailableOnPlatform, |
https://github.com/settings/tokens
read:packages
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
| # Using Namespaces | |
| https://docs.rafay.co/learn/quickstart/kubernetes/namespaces/ | |
| - List Namespace | |
| ```shell | |
| microk8s kubectl get namespaces | |
| ``` |
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
| # Create a MicroK8s cluster | |
| https://microk8s.io/docs/clustering | |
| ## Example | |
| - Adding a node | |
| ```shell | |
| microk8s add-node |
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 tokenx | |
| import ( | |
| "encoding/hex" | |
| "github.com/go-jose/go-jose/v4" | |
| "github.com/goccy/go-json" | |
| ) | |
| type JWXToken Token |
NewerOlder