Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#!/bin/bash | |
CARD=$(pactl list | grep bluez_card | awk '{print $NF}') | |
BLUETOOTH_DEVICE=$(pacmd list-sinks | grep -o '<bluez_sink[^>]*' | awk -F "<" '{print $2}' | awk -F ">" '{print $1}') | |
PROFILE_A2DP="a2dp_sink" | |
PROFILE_HEADSET_UNIT="handsfree_head_unit" | |
set_profile() { | |
local profile=$1 |
This file contains 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
#!/bin/bash | |
# set -euo pipefail | |
# Check if monitor number was provided as an argument | |
if [[ $# -eq 0 ]]; then | |
echo "Please provide the monitor number as an argument." | |
echo "Usage: $0 <monitor_number>" | |
exit 1 | |
fi |
This file contains 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 os | |
import zlib | |
import zipfile | |
from glob import glob | |
def compress(file_names: list): | |
compression = zipfile.ZIP_STORED | |
store_chunk_limit = 1_000_000_000 # 1 GB |
This file contains 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 python:3.8-slim-buster | |
COPY ./requirements.txt /app/requirements.txt | |
COPY . /app | |
WORKDIR /app | |
#JAVA CONFIG | |
RUN apt-get update | |
RUN apt-get install -y apt-utils \ |
This file contains 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 { Component, OnInit } from '@angular/core'; | |
import { TranslateService } from '@ngx-translate/core'; | |
import { lastValueFrom } from 'rxjs'; | |
import { ApiService } from './api.service'; | |
@Component({ | |
selector: 'app-root', | |
template: ` | |
<div> | |
<h1 translate> mainPhrase </h1> |
This file contains 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 { HttpClient, HttpHeaders } from '@angular/common/http'; | |
import { Injectable } from '@angular/core'; | |
import { Observable, throwError } from 'rxjs'; | |
import { catchError, map } from 'rxjs/operators'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class ApiService { |
This file contains 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
{ | |
"mainPhrase": "Essa é a frase principal.", | |
"subPhrase": "Essa é a subfrase.", | |
"buttonPhrase": "en" | |
} |
This file contains 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
{ | |
"mainPhrase": "This is the main phrase.", | |
"subPhrase": "This is the sub phrase.", | |
"buttonPhrase": "pt-BR" | |
} |
This file contains 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 { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { HttpClientModule, HttpClient } from '@angular/common/http'; | |
import { TranslateLoader, TranslateModule } from '@ngx-translate/core'; | |
import { TranslateHttpLoader } from '@ngx-translate/http-loader'; | |
import { AppComponent } from './app.component'; | |
@NgModule({ |
NewerOlder